master
conf 98 lines 2.93 KB
Raw
1 # Network device licensing alerts from the SNMP collector.
2
3 template: snmp_license_expiring
4 on: snmp.license.remaining_time
5 class: Errors
6 type: NetworkDevice
7 component: Licensing
8 calc: $remaining_time / 86400
9 units: days
10 every: 60s
11 warn: $this < 30
12 crit: $this < 7
13 summary: SNMP device license expiring soon
14 info: The earliest monitored SNMP license or subscription on this device is close to expiration.
15 to: sysadmin
16
17 template: snmp_license_authorization_expiring
18 on: snmp.license.authorization_remaining_time
19 class: Errors
20 type: NetworkDevice
21 component: Licensing
22 calc: $remaining_time / 86400
23 units: days
24 every: 60s
25 warn: $this < 30
26 crit: $this < 7
27 summary: SNMP device license authorization expiring soon
28 info: The license authorization timer on this device is close to expiration.
29 to: sysadmin
30
31 template: snmp_license_certificate_expiring
32 on: snmp.license.certificate_remaining_time
33 class: Errors
34 type: NetworkDevice
35 component: Licensing
36 calc: $remaining_time / 86400
37 units: days
38 every: 60s
39 warn: $this < 30
40 crit: $this < 7
41 summary: SNMP device licensing certificate expiring soon
42 info: The license certificate timer on this device is close to expiration.
43 to: sysadmin
44
45 template: snmp_license_grace_period_ending
46 on: snmp.license.grace_remaining_time
47 class: Errors
48 type: NetworkDevice
49 component: Licensing
50 calc: $remaining_time / 86400
51 units: days
52 every: 60s
53 warn: $this < 7
54 crit: $this <= 0
55 delay: down 5m multiplier 1.5 max 1h
56 summary: SNMP device licensing grace period ending
57 info: The licensing grace or evaluation period on this device is ending or already expired.
58 to: sysadmin
59
60 template: snmp_license_state_warning
61 on: snmp.license.state
62 class: Errors
63 type: NetworkDevice
64 component: Licensing
65 calc: $degraded
66 units: licenses
67 every: 60s
68 warn: $this > 0
69 summary: SNMP device licensing degraded
70 info: One or more monitored licenses on this device are degraded, in grace, or otherwise in warning state.
71 to: sysadmin
72
73 template: snmp_license_state_critical
74 on: snmp.license.state
75 class: Errors
76 type: NetworkDevice
77 component: Licensing
78 calc: $broken
79 units: licenses
80 every: 60s
81 crit: $this > 0
82 summary: SNMP device licensing broken
83 info: One or more monitored licenses on this device are expired, invalid, unauthorized, or otherwise in critical state.
84 to: sysadmin
85
86 template: snmp_license_usage_high
87 on: snmp.license.usage_percent
88 class: Utilization
89 type: NetworkDevice
90 component: Licensing
91 calc: $usage_percent
92 units: percentage
93 every: 60s
94 warn: $this >= 80
95 crit: $this >= 95
96 summary: SNMP device licensing usage is high
97 info: The most constrained monitored license pool on this device is nearing exhaustion.
98 to: sysadmin