mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-11-09 10:19:16 +00:00
1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
"use strict";(self.webpackChunkrancher_docs=self.webpackChunkrancher_docs||[]).push([[45006],{3905:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>f});var n=r(67294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},p=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),p=c(r),f=a,g=p["".concat(l,".").concat(f)]||p[f]||d[f]||o;return r?n.createElement(g,i(i({ref:t},u),{},{components:r})):n.createElement(g,i({ref:t},u))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=p;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s.mdxType="string"==typeof e?e:a,i[1]=s;for(var c=2;c<o;c++)i[c]=r[c];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}p.displayName="MDXCreateElement"},54564:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>d,frontMatter:()=>o,metadata:()=>s,toc:()=>c});var n=r(87462),a=(r(67294),r(3905));const o={title:"Configure Alerts for Periodic Scan on a Schedule"},i=void 0,s={unversionedId:"how-to-guides/advanced-user-guides/cis-scan-guides/configure-alerts-for-periodic-scan-on-a-schedule",id:"version-2.0-2.4/how-to-guides/advanced-user-guides/cis-scan-guides/configure-alerts-for-periodic-scan-on-a-schedule",title:"Configure Alerts for Periodic Scan on a Schedule",description:"Rancher provides a set of alerts for cluster scans. which are not configured to have notifiers by default:",source:"@site/versioned_docs/version-2.0-2.4/how-to-guides/advanced-user-guides/cis-scan-guides/configure-alerts-for-periodic-scan-on-a-schedule.md",sourceDirName:"how-to-guides/advanced-user-guides/cis-scan-guides",slug:"/how-to-guides/advanced-user-guides/cis-scan-guides/configure-alerts-for-periodic-scan-on-a-schedule",permalink:"/v2.0-v2.4/how-to-guides/advanced-user-guides/cis-scan-guides/configure-alerts-for-periodic-scan-on-a-schedule",draft:!1,editUrl:"https://github.com/rancher/rancher-docs/edit/main/versioned_docs/version-2.0-2.4/how-to-guides/advanced-user-guides/cis-scan-guides/configure-alerts-for-periodic-scan-on-a-schedule.md",tags:[],version:"2.0-2.4",lastUpdatedAt:1662675846,formattedLastUpdatedAt:"Sep 8, 2022",frontMatter:{title:"Configure Alerts for Periodic Scan on a Schedule"},sidebar:"tutorialSidebar",previous:{title:"Skip Tests",permalink:"/v2.0-v2.4/how-to-guides/advanced-user-guides/cis-scan-guides/skip-tests"},next:{title:"Delete a Report",permalink:"/v2.0-v2.4/how-to-guides/advanced-user-guides/cis-scan-guides/delete-a-report"}},l={},c=[],u={toc:c};function d(e){let{components:t,...r}=e;return(0,a.kt)("wrapper",(0,n.Z)({},u,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Rancher provides a set of alerts for cluster scans. which are not configured to have notifiers by default:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"A manual cluster scan was completed"),(0,a.kt)("li",{parentName:"ul"},"A manual cluster scan has failures"),(0,a.kt)("li",{parentName:"ul"},"A scheduled cluster scan was completed"),(0,a.kt)("li",{parentName:"ul"},"A scheduled cluster scan has failures")),(0,a.kt)("admonition",{title:"Prerequisite",type:"note"},(0,a.kt)("p",{parentName:"admonition"},"You need to configure a ",(0,a.kt)("a",{parentName:"p",href:"/v2.0-v2.4/explanations/integrations-in-rancher/notifiers"},"notifier")," before configuring, sending, or receiving alerts.")),(0,a.kt)("p",null,"To activate an existing alert for a CIS scan result,"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"From the cluster view in Rancher, click ",(0,a.kt)("strong",{parentName:"li"},"Tools > Alerts.")),(0,a.kt)("li",{parentName:"ol"},"Go to the section called ",(0,a.kt)("strong",{parentName:"li"},"A set of alerts for cluster scans.")),(0,a.kt)("li",{parentName:"ol"},"Go to the alert you want to activate and click ",(0,a.kt)("strong",{parentName:"li"},"\u22ee > Activate.")),(0,a.kt)("li",{parentName:"ol"},"Go to the alert rule group ",(0,a.kt)("strong",{parentName:"li"},"A set of alerts for cluster scans")," and click ",(0,a.kt)("strong",{parentName:"li"},"\u22ee > Edit.")),(0,a.kt)("li",{parentName:"ol"},"Scroll down to the ",(0,a.kt)("strong",{parentName:"li"},"Alert")," section. In the ",(0,a.kt)("strong",{parentName:"li"},"To")," field, select the notifier that you would like to use for sending alert notifications."),(0,a.kt)("li",{parentName:"ol"},"Optional: To limit the frequency of the notifications, click on ",(0,a.kt)("strong",{parentName:"li"},"Show advanced options")," and configure the time interval of the alerts."),(0,a.kt)("li",{parentName:"ol"},"Click ",(0,a.kt)("strong",{parentName:"li"},"Save."))),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"Result:")," The notifications will be triggered when the a scan is run on a cluster and the active alerts have satisfied conditions."),(0,a.kt)("p",null,"To create a new alert,"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"Go to the cluster view and click ",(0,a.kt)("strong",{parentName:"li"},"Tools > CIS Scans.")),(0,a.kt)("li",{parentName:"ol"},"Click ",(0,a.kt)("strong",{parentName:"li"},"Add Alert.")),(0,a.kt)("li",{parentName:"ol"},"Fill out the form."),(0,a.kt)("li",{parentName:"ol"},"Enter a name for the alert."),(0,a.kt)("li",{parentName:"ol"},"In the ",(0,a.kt)("strong",{parentName:"li"},"Is")," field, set the alert to be triggered when a scan is completed or when a scan has a failure."),(0,a.kt)("li",{parentName:"ol"},"In the ",(0,a.kt)("strong",{parentName:"li"},"Send a")," field, set the alert as a ",(0,a.kt)("strong",{parentName:"li"},"Critical,")," ",(0,a.kt)("strong",{parentName:"li"},"Warning,")," or ",(0,a.kt)("strong",{parentName:"li"},"Info")," alert level."),(0,a.kt)("li",{parentName:"ol"},"Choose a ",(0,a.kt)("a",{parentName:"li",href:"/v2.0-v2.4/explanations/integrations-in-rancher/notifiers"},"notifier")," for the alert.")),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"Result:")," The alert is created and activated. The notifications will be triggered when the a scan is run on a cluster and the active alerts have satisfied conditions."),(0,a.kt)("p",null,"For more information about alerts, refer to ",(0,a.kt)("a",{parentName:"p",href:"/v2.0-v2.4/pages-for-subheaders/cluster-alerts"},"this page.")))}d.isMDXComponent=!0}}]); |