summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-06-20 23:28:23 +0300
committerGitHub <noreply@github.com>2024-06-20 23:28:23 +0300
commit19ab6abd96be7c9574d331a48893e0a4ff414839 (patch)
tree1caac56e0f87babce8c3f0271a54cf31552fcb59 /src
parent6f76453d76e5f6344d2fc0c364d30894967f3642 (diff)
improve ping_host_reachable alert calc (#17982)
Diffstat (limited to 'src')
-rw-r--r--src/health/health.d/ping.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/health/health.d/ping.conf b/src/health/health.d/ping.conf
index 0e434420dd..a91b231c38 100644
--- a/src/health/health.d/ping.conf
+++ b/src/health/health.d/ping.conf
@@ -6,7 +6,7 @@
type: Other
component: Network
lookup: average -30s unaligned of loss
- calc: $this != nan AND $this < 100
+ calc: ($this == nan) ? (nan) : ($this < 100)
units: up/down
every: 10s
crit: $this == 0