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.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Fri Dec 11, 2015 10:05 am
Hello Guys,
I am running into a problem with Checking the
Uptime from the switch.
while i am running the
Check_snmp Plugin from nagios i get
plugin timed out Error.
i have tried both command to resolve the Problem but still it doesnt change the status.
CODE:
Code: Select all
./check_snmp -H 10.30.4.23 -C media -o sysUpTime.o
./check_snmp -H 10.30.4.23 -C media -t 180 -o sysUpTime.o
any Help Please thanks.
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 11, 2015 10:39 am
Can you post what it actually says on the command line when you run the commands? That would help us determine what is failing.
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Fri Dec 11, 2015 10:42 am
hsmith wrote: Can you post what it actually says on the command line when you run the commands? That would help us determine what is failing.
Hi hsmith
this is the Output:
CRITICAL - Plugin timed out while executing system call
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 11, 2015 10:52 am
Can you snmpwalk the device?
Code: Select all
snmpwalk <IP> -c <COUMMUNITY> -<VERSION(v2c)> | grep sysUpTime.o
Mine for example:
Code: Select all
snmpwalk 172.16.0.200 -c holden -v2c | grep sysUpTime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (24376103) 2 days, 19:42:41.03
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Fri Dec 11, 2015 10:57 am
hsmith wrote: Can you snmpwalk the device?
Code: Select all
snmpwalk <IP> -c <COUMMUNITY> -<VERSION(v2c)> | grep sysUpTime.o
Mine for example:
Code: Select all
snmpwalk 172.16.0.200 -c holden -v2c | grep sysUpTime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (24376103) 2 days, 19:42:41.03
Code: Select all
snmpwalk 10.30.4.23 -c media -<VERSION(v2c)> | grep sysUpTime.o
i run this command but get some syntax error and i think i am doing someting wrong with Version argument .
which version i need here?
thanks
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 11, 2015 10:58 am
Try -v2c, I just made it that way in case you were using a different version. See my example I edited in my post above.
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Fri Dec 11, 2015 11:04 am
it just stucked and no result. i wait for the Result.
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 11, 2015 11:07 am
Not being able to SNMPWalk the device means the check is going to fail. Can you try it without the grep command?
Former Nagios Employee.
me.
SJ04
Posts: 42 Joined: Sat Oct 17, 2015 3:14 pm
Post
by SJ04 » Fri Dec 11, 2015 11:14 am
Without Grep Command it give the longest list of SNMP Entires.
Please check the Attachment., i cut some running LInes from output.
Attachments
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 11, 2015 11:17 am
That verifies that they can talk. Do you know the OID of sysUpTime.o? That could be another way to check.
Former Nagios Employee.
me.