Hi All
We are using Nagios XI (5.3.1) VM appliance.
I'm trying to query our NetApp Storage aboard with SNMP using the pluging "check_netapp3.pl".
The timeout of 60 seconds is not enough, but the Plugins does not let me to increase this value.
If I try I "./check_netapp3.pl -H IP -v PERINODE -t 120", I get "UNKNOWN:Invalid timeout value [120], range 1.0 - 60.0 seconds"
An other strange thing is that only requests for "PERINODE - percentage inode space avail" and "PERUSED - percentage space used" are timing out.
Can anybody help?
UNKNOWN:Invalid timeout value [120], range 1.0 - 60.0 second
UNKNOWN:Invalid timeout value [120], range 1.0 - 60.0 second
Last edited by comfone on Tue Dec 20, 2016 5:44 am, edited 2 times in total.
Re: UNKNOWN:Invalid timeout value [120], range 1.0 - 60.0 se
That plugin uses the NET::SNMP perl module and it has a default maximum timeout set to 60. Follow these steps to increase that to 120 seconds.
Edit this file
Fine this line
and change it to
That will set the max timeout to 120 seconds.
If you update the NET:SNMP perl modules in the future on your server, you will have to change this again.
Edit this file
Code: Select all
/usr/share/perl5/Net/SNMP/Transport.pmCode: Select all
sub TIMEOUT_MAXIMUM() { 60.0 }Code: Select all
sub TIMEOUT_MAXIMUM() { 120.0 }If you update the NET:SNMP perl modules in the future on your server, you will have to change this again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: UNKNOWN:Invalid timeout value [120], range 1.0 - 60.0 se
Worked. Thank you.
Re: UNKNOWN:Invalid timeout value [120], range 1.0 - 60.0 se
Hi All
I tried to set the timeout in "/usr/share/perl5/Net/SNMP/Transport.pm" to 480 seconds.
But I still get the message:
SERVICE ALERT: hostname;NetApp percentage space used;CRITICAL;SOFT;1;(Service check timed out after 120.01 seconds)
Why does the setting not take effect?
I tried to set the timeout in "/usr/share/perl5/Net/SNMP/Transport.pm" to 480 seconds.
But I still get the message:
SERVICE ALERT: hostname;NetApp percentage space used;CRITICAL;SOFT;1;(Service check timed out after 120.01 seconds)
Why does the setting not take effect?
Re: UNKNOWN:Invalid timeout value [120], range 1.0 - 60.0 se
The timeout setting in the nagios.cfg file has to be increased to the same timeout value you need for your check or it will timeout the check as well.
Edit the following file
Change this from
to
Save the file and restart the nagios processes by running
Edit the following file
Code: Select all
/use/local/nagios/etc/nagios.cfgCode: Select all
service_check_timeout=120Code: Select all
service_check_timeout=480Code: Select all
service nagios restartBe sure to check out our Knowledgebase for helpful articles and solutions!