summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2019-06-24 11:15:54 +0300
committerGitHub <noreply@github.com>2019-06-24 11:15:54 +0300
commit25dfb0580a2c88c1e24608df332812d2fe2ecb24 (patch)
tree09a7ffa92b60b2bd76ac83248c62757ae981024d /health
parent982c2cf1b065f7de373201700359a4db6c2167ee (diff)
dnsmasq_dhcp: dhcp-range utilization alarm (#6319)
Diffstat (limited to 'health')
-rw-r--r--health/Makefile.am1
-rw-r--r--health/health.d/dnsmasq_dhcp.conf12
2 files changed, 13 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am
index 117e2eecd5..39b6acaa79 100644
--- a/health/Makefile.am
+++ b/health/Makefile.am
@@ -35,6 +35,7 @@ dist_healthconfig_DATA = \
health.d/cpu.conf \
health.d/couchdb.conf \
health.d/disks.conf \
+ health.d/dnsmasq_dhcp.conf \
health.d/dockerd.conf \
health.d/elasticsearch.conf \
health.d/entropy.conf \
diff --git a/health/health.d/dnsmasq_dhcp.conf b/health/health.d/dnsmasq_dhcp.conf
new file mode 100644
index 0000000000..b7eb4e0a3e
--- /dev/null
+++ b/health/health.d/dnsmasq_dhcp.conf
@@ -0,0 +1,12 @@
+ # dhcp-range utilization
+
+ template: dnsmasq_dhcp_dhcp_range_utilization
+ on: dnsmasq_dhcp.dhcp_range_utilization
+ every: 10s
+ units: %
+ calc: $used
+ warn: $this > ( ($status >= $WARNING ) ? ( 80 ) : ( 90 ) )
+ crit: $this > ( ($status >= $CRITICAL) ? ( 90 ) : ( 95 ) )
+ delay: down 5m
+ info: dhcp-range utilization above threshold!
+ to: sysadmin