Code: Select all
check_xi_service_snmp! -o 'sysUpTime.0' -C 'community' -P 2c -l Uptime -w 0:4294607296 -c 25920000:0"Within ~1 hour an SNMP rollover will occur setting this counter to 0 and making it appear as if the device rebooted"
And when uptime is less than 3 days and the service enters a critical state have the email advise
"Uptime is less than 3 days, if there was no preceding email for this device warning of an SNMP rollover please login and check the device"
However I cannot figure out how to create a custom warning/critical alert for my "Uptime" service or what the best way would be to apply that to all of the uptime services on different devices.
Nagios XI Enterprise 5.8.3
Thank you for any help that can be provided.