-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_snmp_process.pl hangs until ALARM with -A (arguments) #47
Comments
I can confirm it is hanging at get_table on line 531:
|
The snmpd service puts out the following in the log when check_snmp_process.pl ran with the -A flag
Coincidentally i also have a java process with a a long list off arguments. in my case the longest path + argument is 784 characters long. Increasing the octet length with parameter "-o 4096" from default 1472 to 4096 removes the error message from snmpd logs but check_snmp_process.pl still fails with no aswer from host. |
Ok i done some more testing. It works if you change the code the user posted above, if you change it to add maxrepetitions to the get_table requets it works. example:
According to Net::SNMP maxrepetitions is automatically calculated if not present. And if I understand correctly it is how many rows NET::SNMP gets per request. I did some testing to see how long it took with different maxrepetitions. and this is the real execution time accourding to time. I used a 60 timeout on check_snmp_process.pl
|
I have not yet identified what is causing this but on a specific server the -A causes it to hang and not match any processes. The same check against other servers works fine. We have some java processes on this server with a very long list of arguments and I wonder if that could be to blame.
I'll continue to try to debug further.
The text was updated successfully, but these errors were encountered: