Check Uptime via SNMPv3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Check Uptime via SNMPv3

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check Uptime via SNMPv3

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: Check Uptime via SNMPv3

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check Uptime via SNMPv3

Post by scottwilkerson »

excellent.

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked