health update isc dhcp alarms (#17634)
Ilya Mashchenko committed
May 10, 2024 at 10:53 UTC
2f352895213687b39971626f405dde245fb7a958
1 file changed
+15
-10
src/health/health.d/isc_dhcpd.conf
+15
-10
@@ -1,10 +1,15 @@
1
-# template: isc_dhcpd_leases_size
2
-# on: isc_dhcpd.leases_total
3
-# units: KB
4
-# every: 60
5
-# calc: $leases_size
6
-# warn: $this > 3072
7
-# crit: $this > 6144
8
-# delay: up 2m down 5m
9
-# info: dhcpd.leases file too big! Module can slow down your server.
10
-# to: sysadmin
1
+# you can disable an alarm notification by setting the 'to' line to: silent
2
+
3
+ template: isc_dhcpd_dhcp_pool_utilization
4
+ on: isc_dhcpd.dhcp_pool_utilization
5
+ class: Utilization
6
+ type: DHCP
7
+component: DHCPd
8
+ every: 10s
9
+ units: %
10
+ calc: $used
11
+ warn: $this > ( ($status >= $WARNING ) ? ( 80 ) : ( 90 ) )
12
+ delay: down 5m
13
+ summary: ISC DHCP pool ${label:dhcp_pool_name} utilization
14
+ info: ISC DHCP pool ${label:dhcp_pool_name} utilization
15
+ to: sysadmin