How to monitor uptime of a switch in Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

How to monitor uptime of a switch in Nagios

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: How to monitor uptime of a switch in Nagios

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Re: How to monitor uptime of a switch in Nagios

Post by Pratapa »

Thank you. As we don't have credentials, we sent an email to the user. Awaiting reply.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: How to monitor uptime of a switch in Nagios

Post by tgriep »

Just update the post when ready.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked