Page 4 of 4
Re: Linux SNMP: Process name table No response from remote h
Posted: Thu Oct 17, 2013 8:35 am
by msbensonstk
Ok, I see what you mean.
So, no I have to use the full path as the application that gets run is a java app with about 12 lines of arguments. So the only way I can see if the java process is running is to look for the presence of the applications path in the object table.
That said, I went ahead and ran the modified command with the same result:
Thu Oct 17 08:34:10 CDT 2013
ERROR: Process name table : No response from remote host '<host>'.
Thu Oct 17 08:34:21 CDT 2013
Re: Linux SNMP: Process name table No response from remote h
Posted: Thu Oct 17, 2013 4:16 pm
by abrist
Alright, this script is odd. Try changing:
To:
And then pass in your desired timeout with:
It looks like either the script is doubling the timeout (I looked and could not see where it would be doing it - so the above timeout will be approx 40 seconds), or there is a bug with Net::SNMP.
Let us know how it goes.
Re: Linux SNMP: Process name table No response from remote h
Posted: Fri Oct 18, 2013 8:59 am
by msbensonstk
Well, that definitely did something:
date; /usr/local/nagios/libexec/check_snmp_process_wizard.pl -t 20 -H <host> --login=nagiosxi --passwd=<pass> --privpass=<pass> --protocols=sha,aes -n 'ContegoSPOP' -f -w '0,1' -c '0,1'; date
Fri Oct 18 08:45:49 CDT 2013
ERROR: Process name table : No response from remote host '<host>'.
Fri Oct 18 08:46:29 CDT 2013
It took the longer timeout (20) and doubled it. So, that fixed the timeout issue, however it doesn't seem to have helped the issue with the host not sending an SNMP response.
Re: Linux SNMP: Process name table No response from remote h
Posted: Fri Oct 18, 2013 10:16 am
by abrist
This behavior is rather odd as I can test the plugin against an snmpv3 (aes,sha) box here just fine. You did declare a full path (-f) but then did not use the full path in your command (-n), though I don't think that would effect the device responding.
Re: Linux SNMP: Process name table No response from remote h
Posted: Fri Oct 18, 2013 2:47 pm
by msbensonstk
That's why the check is coded as
-n 'ProcessName' -f
-n causes the name to be used as a regex against the -f table. It works great on 95% of our systems. It's just a couple that are having problems.
Re: Linux SNMP: Process name table No response from remote h
Posted: Mon Oct 21, 2013 9:48 am
by abrist
Is there any differences worth mention between the functioning checks and the non functioning checks? I tried full path checks this and full regex matches against different processes this morning on my test box without issue.
Re: Linux SNMP: Process name table No response from remote h
Posted: Mon Oct 21, 2013 9:55 am
by msbensonstk
No. They are the same check (I have it defined in 1 place and assigned to multiple hosts through group inheritance). Some systems process the check correctly, some do not.
Re: Linux SNMP: Process name table No response from remote h
Posted: Mon Oct 21, 2013 11:30 am
by abrist
Are both servers in the scenario using the same shell, environment, etc?