Linux SNMP: Process name table No response from remote host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
msbensonstk
Posts: 34
Joined: Wed Apr 11, 2012 1:01 pm

Re: Linux SNMP: Process name table No response from remote h

Post by msbensonstk »

We are having this problem on about 10% of our systems. The rest it works just fine, so I don't believe the plug-in is completely to blame. If we could get the plug-in to respect the extended timeout values I am fairly confident that would fix the issue, but as I demonstrated earlier in the ticket, that part of the script appears to not be working correctly.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Linux SNMP: Process name table No response from remote h

Post by sreinhardt »

On the note of those 10% systems, are they on a separate vlan, another datacenter/location, or anything else of that nature that would introduce latency. Also is this a continual issue with all of those systems or just sporadic? I would tend to agree that the timeout symptoms seem to fit your issue, I will see about that portion of the code and how the flag is handled.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
msbensonstk
Posts: 34
Joined: Wed Apr 11, 2012 1:01 pm

Re: Linux SNMP: Process name table No response from remote h

Post by msbensonstk »

They are in the same VLAN and security zone (and physical switches) as the rest of the servers that are working normally. There is no difference between them security-wise or latency-wise.

The issue on them is sporadic, but down is the 'normal' state. They sporadicly are successful, but never twice in a row.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Linux SNMP: Process name table No response from remote h

Post by abrist »

Have you tried changing the timeout directly in the script?
At line #60, change:

Code: Select all

my $o_timeout=  5;              # Default 5s Timeout
To:

Code: Select all

my $o_timeout=  20;              # Default 5s Timeout
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
msbensonstk
Posts: 34
Joined: Wed Apr 11, 2012 1:01 pm

Re: Linux SNMP: Process name table No response from remote h

Post by msbensonstk »

Setting the timeout in the script appears to have no effect either:

vim /usr/local/nagios/libexec/check_snmp_process_wizard.pl
my $o_timeout = 50

date; /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <host> --login=nagiosxi --passwd=<pass> --privpass=<pass> --protocols=sha,aes -n '/usr/local/contego/ContegoSPOP/' -f -w '0,1' -c '0,1'; date

Tue Oct 15 10:08:29 CDT 2013
ERROR: Alarm signal (Nagios time-out)
Tue Oct 15 10:08:44 CDT 2013

Script still stopping after 15 seconds.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Linux SNMP: Process name table No response from remote h

Post by abrist »

Out of curiosity, have you attempted to run the check without the fullpath?

Code: Select all

date; /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <host> --login=nagiosxi --passwd=<pass> --privpass=<pass> --protocols=sha,aes -n 'ContegoSPOP' -w '0,1' -c '0,1'; date
Is ContegoSPOP the actual process name you wish to monitor?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
msbensonstk
Posts: 34
Joined: Wed Apr 11, 2012 1:01 pm

Re: Linux SNMP: Process name table No response from remote h

Post by msbensonstk »

Yes. It's the process name as reported by the process table (this is the same check that works on other systems).
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Linux SNMP: Process name table No response from remote h

Post by abrist »

Did the command work without the full path switch?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
msbensonstk
Posts: 34
Joined: Wed Apr 11, 2012 1:01 pm

Re: Linux SNMP: Process name table No response from remote h

Post by msbensonstk »

Sorry, you'll have to clarify that a bit. Can you write out the command with the 'switch' you are referring to?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Linux SNMP: Process name table No response from remote h

Post by sreinhardt »

your -n flag is always "-n '/usr/local/contego/ContegoSPOP/'" abrist was asking if you could run it successfully without the full path, like such:

Code: Select all

date; /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <host> --login=nagiosxi --passwd=<pass> --privpass=<pass> --protocols=sha,aes -n 'ContegoSPOP' -w '0,1' -c '0,1'; date
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked