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
Linux SNMP: Process name table No response from remote host
-
msbensonstk
- Posts: 34
- Joined: Wed Apr 11, 2012 1:01 pm
Re: Linux SNMP: Process name table No response from remote h
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.
Code: Select all
my $TIMEOUT = 15;Code: Select all
my $TIMEOUT = 60;Code: Select all
-t 20Let us know how it goes.
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.
"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
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.
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
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.
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.
"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
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.
-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
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.
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.
"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
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
Are both servers in the scenario using the same shell, environment, etc?
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.
"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.