Page 1 of 1
Nagioxi check_snmp: error
Posted: Wed Jun 29, 2016 1:01 am
by ericssonvietnam
I got XI 5.2.9 running on redhat 6 physical server. For Some host we are getting below error while trying to check process on client with "check_snmp_process_wizard.pl "
as :
$USER1$/check_snmp_process_wizard.pl -H $HOSTADDRESS$ $ARG1$ -t 30 -C public --v2c -r -n 'sshd' -w '0,20' -c '0'
ERROR: Alarm signal (Nagios time-out)
ERROR: General time-out (Alarm signal)
For some we are getting:
ERROR: Description/Type table : Requested table is empty or does not exist.
Please suggest a fix.
Re: Nagioxi check_snmp: error
Posted: Wed Jun 29, 2016 10:18 am
by rkennedy
Can you show us the full check_command that the services are using in conjunction with that command definition? We will need to see what $ARG1$ is equal to.
Re: Nagioxi check_snmp: error
Posted: Thu Jun 30, 2016 11:41 pm
by ericssonvietnam
COMMAND: /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H HNRBT10 -C public --v2c -r -n 'sshd' -w '0,20' -c '0' -t 30
OUTPUT: ERROR: Alarm signal (Nagios time-out)
Please keep in mind that..this check is linked with a Hostgroup and that hostgroup has 110 nodes as member. And from most of the nodes response is as per expectation. So we can rule out any issue with command. I am suspecting client snmp settings as issue but not sure what to look at.?
Re: Nagioxi check_snmp: error
Posted: Fri Jul 01, 2016 1:48 am
by Box293
What happens when you execute this at a command line on the Nagios XI server?
Code: Select all
/usr/local/nagios/libexec/check_snmp_process_wizard.pl -H HNRBT10 -C public --v2c -r -n 'sshd' -w '0,20' -c '0' -t 30
Can you make sure that HNRBT10 is resolving to the correct IP address. Also check the HOST object in CCM and make sure it's address is correct (not an incorrect IP address or DNS entry).
Re: Nagioxi check_snmp: error
Posted: Fri Jul 01, 2016 2:12 am
by ericssonvietnam
I agree that host response is bit slow..but settings are correct. below are some test results..
Code: Select all
time ssh HNRBT10 "uname -n"
hnrbt10
real 0m7.865s
user 0m0.009s
sys 0m0.003s
[root@RADI ~]# grep -i hnrbt10 /etc/hosts
10.10.165.17 HNRBT10
You have new mail in /var/spool/mail/root
[root@RADI ~]# /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H HNRBT10 -C public --v2c -r -n 'sshd' -w '0,20' -c '0' -t 30
ERROR: Alarm signal (Nagios time-out)
[root@RADI ~]# time /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H 10.10.165.17 -C public --v2c -r -n 'sshd' -w '0,20' -c '0' -t 60
ERROR: Alarm signal (Nagios time-out)
real 0m15.082s
user 0m0.081s
sys 0m0.009s
Re: Nagioxi check_snmp: error
Posted: Sun Jul 03, 2016 11:14 pm
by Box293
It looks like the plugin has been hard coded for a timeout of 15 seconds.
Edit the plugin and change line
26 from:
my $TIMEOUT = 15;
To:
my $TIMEOUT;
This command will make that change:
Code: Select all
sed -i 's/^my $TIMEOUT.*/my $TIMEOUT;/g' /usr/local/nagios/libexec/check_snmp_process_wizard.pl
Then try the command again.
If it times out again then perhaps your device's SNMP settings are not correct. You can perform an nmap scan to see if that port is open. Run this command on your XI server:
What output do you get?
Re: Nagioxi check_snmp: error
Posted: Thu Jul 07, 2016 5:07 am
by ericssonvietnam
nmap -Pn -sU -p U:161 HNRBT10
Starting Nmap 5.51 (
http://nmap.org ) at 2016-07-07 17:06 ICT
Nmap scan report for HNRBT10 (10.10.165.17)
Host is up.
PORT STATE SERVICE
161/udp open|filtered snmp
Nmap done: 1 IP address (1 host up) scanned in 2.13 seconds
Re: Nagioxi check_snmp: error
Posted: Thu Jul 07, 2016 11:52 am
by rkennedy
It looks like it's filtered, what sort of firewall do you have running between XI and the client machine? This may be preventing it.
Are you able to run a snmpwalk against the machine from the Nagios machine specifically? Is it successful? snmpwalk ip -c public -v 2c (replace ip with the IP of the machine)
Re: Nagioxi check_snmp: error
Posted: Thu Jul 07, 2016 11:44 pm
by ericssonvietnam
[root@RADI snmp]# snmpwalk HNRBT10 -c public -v 2c
No log handling enabled - turning on stderr logging
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
SNMPv2-MIB::sysDescr.0 = STRING: Linux hnrbt10 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64
Timeout: No Response from HNRBT10
Re: Nagioxi check_snmp: error
Posted: Fri Jul 08, 2016 10:57 am
by rkennedy
rkennedy wrote:It looks like it's filtered, what sort of firewall do you have running between XI and the client machine? This may be preventing it.
If you are unable to snmpwalk against the machine, and nmap is showing filtered -- there is definitely something stopping the connection.