diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-10-12 10:14:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 10:14:59 +0300 |
commit | 414bc49d7efc188bb0217c646a8969114dc28fc4 (patch) | |
tree | 604f886067369cb83a90c5e6bbb51c4b84565927 /health | |
parent | 62e79d9b939d0ce7a4edd3e3a86b43c45989090b (diff) |
bump go.d.plugin v0.40.4 (#13808)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.d/dns_query.conf | 17 | ||||
-rw-r--r-- | health/health.d/pihole.conf | 20 |
2 files changed, 18 insertions, 19 deletions
diff --git a/health/health.d/dns_query.conf b/health/health.d/dns_query.conf index ec4937c0a8..b9d6c2374b 100644 --- a/health/health.d/dns_query.conf +++ b/health/health.d/dns_query.conf @@ -1,15 +1,14 @@ - # detect dns query failure - template: dns_query_time_query_time - on: dns_query_time.query_time - class: Latency + template: dns_query_query_status + on: dns_query.query_status + class: Errors type: DNS component: DNS - lookup: average -10s unaligned foreach * - units: ms + calc: $success + units: status every: 10s - warn: $this == nan - delay: up 20s down 5m multiplier 1.5 max 1h - info: average DNS query round trip time over the last 10 seconds + warn: $this != nan && $this != 1 + delay: up 30s down 5m multiplier 1.5 max 1h + info: DNS request type $label:record_type to server $label:server is unsuccessful to: sysadmin diff --git a/health/health.d/pihole.conf b/health/health.d/pihole.conf index 2e5c1cbfd5..2d5491add1 100644 --- a/health/health.d/pihole.conf +++ b/health/health.d/pihole.conf @@ -17,17 +17,17 @@ component: Pi-hole # Gravity file check (gravity.list). - template: pihole_blocklist_gravity_file - on: pihole.blocklist_last_update + template: pihole_blocklist_gravity_file_existence_state + on: pihole.blocklist_file_existence_state class: Errors type: Ad Filtering component: Pi-hole every: 10s - units: boolean - calc: $file_exists - crit: $this != 1 + units: state + calc: $not_exists + crit: $this != nan AND $this == 1 delay: up 2m down 5m - info: gravity.list (blocklist) file existence state (0: not-exists, 1: exists) + info: gravity.list (blocklist) file does not exist to: sysadmin # Pi-hole's ability to block unwanted domains. @@ -39,9 +39,9 @@ component: Pi-hole type: Ad Filtering component: Pi-hole every: 10s - units: boolean - calc: $enabled - warn: $this != 1 + units: status + calc: $disabled + warn: $this != nan AND $this == 1 delay: up 2m down 5m - info: unwanted domains blocking status (0: disabled, 1: enabled) + info: unwanted domains blocking is disabled to: sysadmin |