CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CALL

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

CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CALL

Post by SJ04 »

Hello Guys,

I am running into a problem with Checking the Uptime from the switch.

while i am running theCheck_snmp Plugin from nagios i getplugin 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by hsmith »

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

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by SJ04 »

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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by hsmith »

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

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by SJ04 »

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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by hsmith »

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

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by SJ04 »

it just stucked and no result. i wait for the Result.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by hsmith »

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

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by SJ04 »

Without Grep Command it give the longest list of SNMP Entires.

Please check the Attachment., i cut some running LInes from output.
Attachments
snmpwalk.PNG
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: CRITICAL -PLUGIN TIMED OUT WHILE EXECUTING THE SYSTEM CA

Post by hsmith »

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.
Locked