deploy: dafa616636
This commit is contained in:
1 parent
081b5d91fc
commit
430885af5c
162 files changed
+238
-238
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.34aa8b74.lean.js">
|
||||
<link rel="modulepreload" href="/assets/en_US_guide_notifications.md.0737eaae.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\":\"307cf63c\",\"case_case2.md\":\"69236ddc\",\"case_case3.md\":\"368c8995\",\"case_case4.md\":\"c7f1028a\",\"case_index.md\":\"f3043c92\",\"developer_index.md\":\"9f7d41b6\",\"developer_l10n.md\":\"5acd8224\",\"developer_theme.md\":\"a7be7fc4\",\"en_us_case_case1.md\":\"d363e329\",\"en_us_case_case2.md\":\"c08bbeee\",\"en_us_case_case3.md\":\"96d8a4f0\",\"en_us_case_case4.md\":\"b43ce3f0\",\"en_us_case_index.md\":\"4ec65ec4\",\"en_us_developer_index.md\":\"c80035b0\",\"en_us_developer_l10n.md\":\"9f302b86\",\"en_us_developer_theme.md\":\"36e45dbc\",\"en_us_guide_agent.md\":\"13dbfb03\",\"en_us_guide_agentq.md\":\"8004d1c7\",\"en_us_guide_api.md\":\"3b8df475\",\"en_us_guide_dashboard.md\":\"d71ddcaa\",\"en_us_guide_dashboardq.md\":\"2f682559\",\"en_us_guide_loginq.md\":\"bb13c308\",\"en_us_guide_notifications.md\":\"34aa8b74\",\"en_us_guide_q2.md\":\"8a8e525c\",\"en_us_guide_q3.md\":\"9dec917f\",\"en_us_guide_q4.md\":\"43dc60ed\",\"en_us_guide_q5.md\":\"39a24389\",\"en_us_guide_q6.md\":\"9ef0484c\",\"en_us_guide_q7.md\":\"bd89c602\",\"en_us_guide_servers.md\":\"b98b83f7\",\"en_us_guide_services.md\":\"cb5533e9\",\"en_us_guide_settings.md\":\"ebd49bfb\",\"en_us_guide_tasks.md\":\"1c8d2ad0\",\"en_us_index.md\":\"aacc7793\",\"guide_agent.md\":\"6aac146b\",\"guide_agentq.md\":\"4a5fd9ec\",\"guide_api.md\":\"369ef1a4\",\"guide_dashboard.md\":\"4a4a0f5b\",\"guide_dashboardq.md\":\"1ff27f18\",\"guide_loginq.md\":\"67199057\",\"guide_notifications.md\":\"638ff5ef\",\"guide_q1.md\":\"43d76ace\",\"guide_q2.md\":\"49e05df9\",\"guide_q3.md\":\"a037a11c\",\"guide_q4.md\":\"aebc239c\",\"guide_q5.md\":\"3cba632d\",\"guide_q6.md\":\"e5ce2d15\",\"guide_q7.md\":\"4bce9a71\",\"guide_servers.md\":\"85bbeef3\",\"guide_services.md\":\"8d4ecc4d\",\"guide_settings.md\":\"bea3938e\",\"guide_tasks.md\":\"597fa5f0\",\"index.md\":\"5125de42\"}")</script>
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"663a4f57\",\"case_case2.md\":\"e1d29db3\",\"case_case3.md\":\"1c787d1f\",\"case_case4.md\":\"9c9034f4\",\"case_index.md\":\"b0c33278\",\"developer_index.md\":\"f836932c\",\"developer_l10n.md\":\"9a74eb04\",\"developer_theme.md\":\"c264daa1\",\"en_us_case_case1.md\":\"30b2a832\",\"en_us_case_case2.md\":\"1927af1d\",\"en_us_case_case3.md\":\"d18b94fe\",\"en_us_case_case4.md\":\"e60d80a6\",\"en_us_case_index.md\":\"93d49376\",\"en_us_developer_index.md\":\"d22c31b9\",\"en_us_developer_l10n.md\":\"e812fb68\",\"en_us_developer_theme.md\":\"950a5519\",\"en_us_guide_agent.md\":\"a33da99e\",\"en_us_guide_agentq.md\":\"583d3347\",\"en_us_guide_api.md\":\"c5b27fe3\",\"en_us_guide_dashboard.md\":\"79a8132f\",\"en_us_guide_dashboardq.md\":\"ea7e7f3a\",\"en_us_guide_loginq.md\":\"9c0057aa\",\"en_us_guide_notifications.md\":\"0737eaae\",\"en_us_guide_q2.md\":\"fa7b853e\",\"en_us_guide_q3.md\":\"c17bd27b\",\"en_us_guide_q4.md\":\"d4b519f9\",\"en_us_guide_q5.md\":\"9573139f\",\"en_us_guide_q6.md\":\"0797b947\",\"en_us_guide_q7.md\":\"e8ca7675\",\"en_us_guide_servers.md\":\"9d0715b3\",\"en_us_guide_services.md\":\"423a1e11\",\"en_us_guide_settings.md\":\"fdcfed52\",\"en_us_guide_tasks.md\":\"f0679d8e\",\"en_us_index.md\":\"fd6dbaf2\",\"guide_agent.md\":\"87a433c8\",\"guide_agentq.md\":\"3970029d\",\"guide_api.md\":\"d0f5fbee\",\"guide_dashboard.md\":\"e1506424\",\"guide_dashboardq.md\":\"936ec4ab\",\"guide_loginq.md\":\"7b9e96c6\",\"guide_notifications.md\":\"3ba84b10\",\"guide_q1.md\":\"f02c6c65\",\"guide_q2.md\":\"3683fa87\",\"guide_q3.md\":\"8691160c\",\"guide_q4.md\":\"548689a5\",\"guide_q5.md\":\"2da5f3f6\",\"guide_q6.md\":\"146c704a\",\"guide_q7.md\":\"785f1610\",\"guide_servers.md\":\"acfe36f9\",\"guide_services.md\":\"31ca051d\",\"guide_settings.md\":\"51e29ff4\",\"guide_tasks.md\":\"1a7be3bb\",\"index.md\":\"928c21e7\"}")</script>
|
||||
<script type="module" async src="/assets/app.3817bf4e.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user