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

Looking at the results, can you try this?

Code: Select all

snmpwalk 10.30.4.23 -c media -v2c | grep sysUpTimeInstance
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:Looking at the results, can you try this?

Code: Select all

snmpwalk 10.30.4.23 -c media -v2c | grep sysUpTimeInstance
Hi Hsmith,

this was the OutPut for it.

Code: Select all

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (268866336) 31 days, 2:51:03.36
and then the Console Stuck at one point.

Any Help ?

thanks

SJ
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's the uptime, correct?

What do you mean the console stuck?

It takes awhile to run the SNMPWalk, but the grep is only making it show results that have sysUpTimeInstance, so it doesn't look like it is doing anything.
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:That's the uptime, correct?

What do you mean the console stuck?

It takes awhile to run the SNMPWalk, but the grep is only making it show results that have sysUpTimeInstance, so it doesn't look like it is doing anything.
So snmpwalk command I got the switch uptime but with ./check _snmp it still didn't work.
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 show me the check_snmp command you're running and the output?
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 show me the check_snmp command you're running and the output?

Code: Select all

./check_snmp -H 10.30.4.23 -c Media -o sysUpTimeInstance

./check_snmp -H 10.30.4.23 -c Media -o sysUpTimeInstance.0
And the output is plug in timed out as the heading of my thread
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 try -c media instead of -c Media? I don't know if it's case sensitive, but I wouldn't be surprised.
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 try -c media instead of -c Media? I don't know if it's case sensitive, but I wouldn't be surprised.

Hi Hsmith,

I have used both Capital and Small Case but it didnt give me the Uptime of switch.

i am only having problem to get the Value of Uptime,.

rest of the service like, free memory , cpu and ram usage i can get with OID's of all Hp switches.

please Help

SJ
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 »

Code: Select all

./check_snmp -H 10.30.4.23 -c media -P 2c -o sysUpTimeInstance
How about this one?
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:

Code: Select all

./check_snmp -H 10.30.4.23 -c media -P 2c -o sysUpTimeInstance
How about this one?

HI Hsmith,

My Problem is Finally Solved out. and i want to brief here , how it works.

STEPs:
  • Extract the MIB on the Nagios Server in /usr/share/snmp/mib
  • Define the Service like this.
# Monitor uptime via SNMP

Code: Select all

define service{
	use			            generic-service
	hostgroup_name			HP-SWITCHES
	service_description	    Uptime
	check_command		    check_snmp!-C media -o sysUpTime.0 -m all
	}

Thanks Hsmith and everyone who replied to this Thread, Truley speaking without your help, i will not be able to solve this out.


thanks
Locked