Page 1 of 1

Check Uptime via SNMPv3

Posted: Tue Apr 03, 2018 10:48 pm
by IT-OPS-SYS
Good morning,

What is the correct syntax for checking uptime via SNMPv3? I am trying to create a check to alert if uptime is less than a day using SNMPv3. I can run the check without specifiging values but when trying to add a critical threshold, I receive a critical alerts despite the system being up for a over a day. Could anyone please assist?

08:41:21 up 1 day, 18:34, 1 user, load average: 0.84, 0.80, 0.87

ITOps is the SNMPv3 user name configured.

./check_snmp -H BigFixSISLinux -o sysUpTime.0 -l ITOps -x Password -X Password Uptime -c 8600000:0

SNMP CRITICAL - ITOps *137115* | ITOps=137115;;8600000;
IT-OPS-SYS

Re: Check Uptime via SNMPv3

Posted: Wed Apr 04, 2018 9:41 am
by scottwilkerson
Try this

Code: Select all

./check_snmp -H BigFixSISLinux -o sysUpTime.0 -l ITOps -x Password -X Password Uptime -c 8600000:

This would be critical until over 8600000 which is just under a day and then OK

Re: Check Uptime via SNMPv3

Posted: Fri Apr 06, 2018 11:21 am
by IT-OPS-SYS
Hi Scott,

Thanks for your help. I was able to find a a plugin from the exchange that converts the SNMP timeticks to a more human readable format. You can mark this thread as resolved.

https://exchange.nagios.org/directory/P ... me/details

Re: Check Uptime via SNMPv3

Posted: Fri Apr 06, 2018 11:31 am
by scottwilkerson
excellent.

Locking