deploy: f90703d865
This commit is contained in:
1 parent
7f92d72207
commit
8bef77b82b
160 files changed
+217
-217
No files matched your search
@@ -8,7 +8,7 @@
|
||||
<link rel="stylesheet" href="/assets/style.0b9f658b.css">
|
||||
<link rel="modulepreload" href="/assets/chunks/AlgoliaSearchBox.98396bc7.js">
|
||||
<link rel="modulepreload" href="/assets/app.3817bf4e.js">
|
||||
<link rel="modulepreload" href="/assets/en_US_guide_notifications.md.53b16ea3.lean.js">
|
||||
<link rel="modulepreload" href="/assets/en_US_guide_notifications.md.769485c3.lean.js">
|
||||
|
||||
<meta name="twitter:title" content="Flexible notification methods | Nezha Monitoring">
|
||||
<meta property="og:title" content="Flexible notification methods | Nezha Monitoring">
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
}
|
||||
</code></pre></div><ul><li>Notes for this method: This method requires calling Microsoft Graph V1.0, you need to go to Microsoft Graph and create your own application, give <code>Mail.Send</code> permission and get the Token, or you can go <a href="https://developer.microsoft.com/en-us/graph/graph-explorer" target="_blank" rel="noopener noreferrer">Microsoft Graph Explorer</a> directly to give permission and get the Token, just replace the Token in the Header with the actual Token.</li></ul><br><br><h2 id="description-of-notification-rules" tabindex="-1">Description of notification rules <a class="header-anchor" href="#description-of-notification-rules" aria-hidden="true">#</a></h2><h3 id="basic-rules" tabindex="-1">Basic Rules <a class="header-anchor" href="#basic-rules" aria-hidden="true">#</a></h3><ul><li>Type: one or more types can be selected, such as in a rule to select more than one type, you need to <strong>meet all the selected types at the same time</strong> to trigger the notification (see the example later) <ul><li><code>cpu</code>、<code>memory</code>、<code>swap</code>、<code>disk</code></li><li><code>net_in_speed</code> Inbound speed, <code>net_out_speed</code> Outbound speed, <code>net_all_speed</code> Inbound + Outbound speed, <code>transfer_in</code> Inbound Transfer, <code>transfer_out</code> Outbound Transfer, <code>transfer_all</code> Total Transfer</li><li><code>offline</code> Offline monitoring</li><li><code>load1</code>、<code>load5</code>、<code>load15</code> Load</li><li><code>process_count</code> Number of processes <em>Currently, counting the number of processes takes up too many resources and is not supported at the moment</em></li><li><code>tcp_conn_count</code>、<code>udp_conn_count</code> Number of connections</li></ul></li><li>duration:Lasting for a few seconds, the notification will only be triggered when the sampling record reaches 30% or more within a few seconds</li><li>min/max <ul><li>Transfer, network speed, and other values of the same type. Unit is byte (1KB=1024B,1MB = 1024*1024B)</li><li>Memory, hard disk, CPU. units are usage percentages</li><li>No setup required for offline monitoring</li></ul></li><li>cover <code>[{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]</code><ul><li><code>0</code> Cover all, use <code>ignore</code> to ignore specific servers</li><li><code>1</code> Ignore all, use <code>ignore</code> to monitoring specific servers<br> For example: <code>[{"type":"offline","duration":10, "cover":0, "ignore":{"5": true}}]</code></li></ul></li><li>ignore: Select to ignore specific servers, use with <code>cover</code> with server id and boolean, e.g.: <code>{"1": true, "2":false}</code></li></ul><p><strong>Complete examples:</strong></p><blockquote><blockquote><p>Add an offline notification</p></blockquote><ul><li>Name: Offline notification</li><li>Rules: <code>[{"Type":"offline","Duration":10}]</code></li><li>Enable: √</li></ul></blockquote><blockquote><blockquote><p>Add an notification when the CPU exceeds 50% for 10s <strong>but</strong> the memory usage is below 20% for 20s</p></blockquote><ul><li>Name: CPU and RAM</li><li>Rules: <code>[{"Type":"cpu","Min":0,"Max":50,"Duration":10},{"Type":"memory","Min":20,"Max":0,"Duration":20}]</code></li><li>Enable: √</li></ul></blockquote><blockquote><blockquote><p>Send specific server notifications to specific notification groups</p></blockquote><p>Case:<br> You have four servers, 1, 2, 3, 4, and two different notification groups, A and B<br> 1, 2 The two servers are down for 10 minutes and send a notification to Notification Group A<br> 3, 4 These two servers are down for ten minutes and then send a notification to Notification Group B</p><p>First you need to set up two notification groups, A and B, and then add two alarm rules:</p><p><strong>Rule I:</strong></p><ul><li>Name: 1, 2 Off-line, send notification to group A</li><li>Rules:<code>[{"type":"offline","duration":600,"cover":1,"ignore":{"1":true,"2":true}}]</code></li><li>Notification group: A</li><li>Enable: √</li></ul><p><strong>Rule II:</strong></p><ul><li>Name: 3, 4 Off-line, send notification to group B</li><li>Rules:<code>[{"type":"offline","duration":600,"cover":1,"ignore":{"3":true,"4":true}}]</code></li><li>Notification group: B</li><li>Enable: √</li></ul></blockquote><p><strong>Using these rules flexibly will help you to make full use of the notification function</strong></p><br><h3 id="special-any-cycle-transfer-notification" tabindex="-1">Special: Any-cycle transfer notification <a class="header-anchor" hrefLine truncated
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"156bad5a\",\"case_case2.md\":\"88e2e545\",\"case_case3.md\":\"497dd618\",\"case_case4.md\":\"5ceebb0d\",\"case_index.md\":\"e0c2cd67\",\"developer_index.md\":\"37f13804\",\"developer_l10n.md\":\"692efc62\",\"developer_theme.md\":\"f90d74ee\",\"en_us_case_case1.md\":\"76f273be\",\"en_us_case_case2.md\":\"32d5407a\",\"en_us_case_case3.md\":\"855223ed\",\"en_us_case_case4.md\":\"84211ada\",\"en_us_case_index.md\":\"f4f0f6ef\",\"en_us_developer_index.md\":\"4ded2e5b\",\"en_us_developer_l10n.md\":\"536e6be2\",\"en_us_developer_theme.md\":\"b6a238cb\",\"en_us_guide_agent.md\":\"fd1f023d\",\"en_us_guide_agentq.md\":\"3ffdef17\",\"en_us_guide_api.md\":\"9f1b4074\",\"en_us_guide_dashboard.md\":\"a9345138\",\"en_us_guide_dashboardq.md\":\"e5e14184\",\"en_us_guide_loginq.md\":\"114cfe40\",\"en_us_guide_notifications.md\":\"53b16ea3\",\"en_us_guide_q2.md\":\"f292ae4e\",\"en_us_guide_q3.md\":\"92830e43\",\"en_us_guide_q4.md\":\"f56c9f7c\",\"en_us_guide_q5.md\":\"7a1a386a\",\"en_us_guide_q6.md\":\"a4fe1065\",\"en_us_guide_q7.md\":\"3ddd9ccd\",\"en_us_guide_servers.md\":\"df734b7e\",\"en_us_guide_services.md\":\"841b59b4\",\"en_us_guide_settings.md\":\"31b8cbed\",\"en_us_guide_tasks.md\":\"26d636e7\",\"en_us_index.md\":\"d8ef25a5\",\"guide_agent.md\":\"aac48439\",\"guide_agentq.md\":\"8b79bd4e\",\"guide_api.md\":\"2062e1db\",\"guide_dashboard.md\":\"722d226d\",\"guide_dashboardq.md\":\"d812986f\",\"guide_loginq.md\":\"d83fa158\",\"guide_notifications.md\":\"21cf55c4\",\"guide_q1.md\":\"8872dad9\",\"guide_q2.md\":\"fac9e2f3\",\"guide_q3.md\":\"f513f12f\",\"guide_q4.md\":\"7cda8f10\",\"guide_q5.md\":\"21145dbb\",\"guide_q6.md\":\"3511ee10\",\"guide_q7.md\":\"fee5ef05\",\"guide_servers.md\":\"1d30e9c4\",\"guide_services.md\":\"27ab8350\",\"guide_settings.md\":\"9b6da8c6\",\"guide_tasks.md\":\"247774a8\",\"index.md\":\"c8d4663d\"}")</script>
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"1cc7e562\",\"case_case2.md\":\"329b256a\",\"case_case3.md\":\"238ee065\",\"case_case4.md\":\"a04de64e\",\"case_index.md\":\"74153ed4\",\"developer_index.md\":\"d7035d29\",\"developer_l10n.md\":\"496dbcc2\",\"developer_theme.md\":\"f7a5ea68\",\"en_us_case_case1.md\":\"bf03afa2\",\"en_us_case_case2.md\":\"be2bbad6\",\"en_us_case_case3.md\":\"cc63cb54\",\"en_us_case_case4.md\":\"71738781\",\"en_us_case_index.md\":\"6d3d2301\",\"en_us_developer_index.md\":\"420c8bf3\",\"en_us_developer_l10n.md\":\"52e4b53d\",\"en_us_developer_theme.md\":\"fa19c679\",\"en_us_guide_agent.md\":\"6cc75d7d\",\"en_us_guide_agentq.md\":\"f8d36b10\",\"en_us_guide_api.md\":\"115fe23d\",\"en_us_guide_dashboard.md\":\"b55b3422\",\"en_us_guide_dashboardq.md\":\"83e6d62c\",\"en_us_guide_loginq.md\":\"dc59f875\",\"en_us_guide_notifications.md\":\"769485c3\",\"en_us_guide_q2.md\":\"ca1c076a\",\"en_us_guide_q3.md\":\"fcc3e07f\",\"en_us_guide_q4.md\":\"80a1758d\",\"en_us_guide_q5.md\":\"c59accfa\",\"en_us_guide_q6.md\":\"248db5d5\",\"en_us_guide_q7.md\":\"cea87834\",\"en_us_guide_servers.md\":\"05a131d0\",\"en_us_guide_services.md\":\"93f48b23\",\"en_us_guide_settings.md\":\"a3f8c99a\",\"en_us_guide_tasks.md\":\"21faa529\",\"en_us_index.md\":\"e76f9b9d\",\"guide_agent.md\":\"b1313252\",\"guide_agentq.md\":\"5460fa48\",\"guide_api.md\":\"d9d45cd4\",\"guide_dashboard.md\":\"87ccecf0\",\"guide_dashboardq.md\":\"de2fd15b\",\"guide_loginq.md\":\"60c36f2b\",\"guide_notifications.md\":\"c2b4b76f\",\"guide_q1.md\":\"fac9b2f7\",\"guide_q2.md\":\"ed6bcb29\",\"guide_q3.md\":\"bd22ca9f\",\"guide_q4.md\":\"9f0e4dc0\",\"guide_q5.md\":\"cc809676\",\"guide_q6.md\":\"1170e75f\",\"guide_q7.md\":\"69615e7b\",\"guide_servers.md\":\"fd129bb3\",\"guide_services.md\":\"c3e0c128\",\"guide_settings.md\":\"a9f1d4a6\",\"guide_tasks.md\":\"8b00d6de\",\"index.md\":\"88042dfc\"}")</script>
|
||||
<script type="module" async src="/assets/app.3817bf4e.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user