Page 1 of 1

How to monitor uptime of a switch in Nagios

Posted: Mon Jan 20, 2020 5:09 am
by Pratapa
Hi,

We have a requirement. We need to set up monitoring for uptime of a switch. We are provided with IP address of the swtich.

What is the check command to check the uptime of a swtich.

We tried the following but did not work.

./check_snmp -H 10.32.234.81 -C public -o sysUpTime.0
CRITICAL - Plugin timed out while executing system call

We could able to ping the IP from Nagios server.

We are using Nagios core.

Re: How to monitor uptime of a switch in Nagios

Posted: Mon Jan 20, 2020 3:10 pm
by tgriep
First, login to the remote device and verify that you have SNMP enabled, that the community string is public and note the SNMP Version.

If the device is using SNMP version 2, change the command to the following.

Code: Select all

./check_snmp -H 10.32.234.81 -C public -P 2c -o sysUpTime.0
-P, --protocol=[1|2c|3]
SNMP protocol version
See if that resolves the issue.

Re: How to monitor uptime of a switch in Nagios

Posted: Tue Jan 21, 2020 2:24 am
by Pratapa
Thank you. As we don't have credentials, we sent an email to the user. Awaiting reply.

Re: How to monitor uptime of a switch in Nagios

Posted: Tue Jan 21, 2020 2:47 pm
by tgriep
Just update the post when ready.