Page 1 of 1

'Check_ping' returns /usr/sbin/ping6 -n -U -w 10 -c 5 localh

Posted: Thu Dec 12, 2013 2:25 pm
by and1100
Hi,

I a host that has a fresh install of NRPE, I am receiving the following issue with check_ping on our Nagios gui (status shows as 'unknown'): /usr/sbin/ping6 -n -U -w 10 -c 5 localhost

I've installed the following rpms:

fping-3.8-1.el6.rf.x86_64.rpm
nagios-nrpe-2.14-1.el6.rf.x86_64.rpm
nagios-plugins-1.4.16-1.el6.rf.x86_64
nagios-plugins-nrpe-2.14-1.el6.rf.x86
perl-Crypt-DES-2.05-3.2.el6.rf.x86_64
perl-Digest-HMAC-1.01-22.el6.noarch.r
perl-Digest-SHA1-2.12-2.el6.x86_64.rp
perl-Net-SNMP-5.2.0-1.2.el6.rf.noarch
perl-Socket6-0.23-1.el6.rfx.x86_64.rp

and yum installed:
lm_sensors-3.1.1-17.el6.x86_64
net-snmp-5.5-44.el6.x86_64
net-snmp-perl.x86_64 1:5.5-44.el6
net-snmp-utils.x86_64 1:5.5-44.el6

Every other check is working fine. Any ideas? Did I miss an rpm/package?

Thank you.

Re: 'Check_ping' returns /usr/sbin/ping6 -n -U -w 10 -c 5 lo

Posted: Thu Dec 12, 2013 3:55 pm
by sreinhardt
Can you show your command definition on the remote nrpe system? Also are you able to run the command from the cli as definied in the command on the remote system?

Re: 'Check_ping' returns /usr/sbin/ping6 -n -U -w 10 -c 5 lo

Posted: Thu Dec 12, 2013 4:34 pm
by and1100
Hi,

Please see below:

Code: Select all

command[check_ping]=/usr/lib64/nagios/plugins/check_ping -H localhost -w 100.0,5% -c 500.0,10%

Code: Select all

[root@eqpct-jisu7 plugins]# ./check_ping -H localhost -w 100.0,5% -c 500.0,10%
/usr/sbin/ping6 -n -U -w 10 -c 5 localhost
CRITICAL - Could not interpret output from ping command
[root@eqpct-jisu7 plugins]#
Thank you.

Re: 'Check_ping' returns /usr/sbin/ping6 -n -U -w 10 -c 5 lo

Posted: Thu Dec 12, 2013 4:51 pm
by lmiltchev
Run the following commands and show us the output:

Code: Select all

ls -la /usr/sbin/ping6
which ping
./check_ping -V

Re: 'Check_ping' returns /usr/sbin/ping6 -n -U -w 10 -c 5 lo

Posted: Fri Dec 13, 2013 7:55 am
by and1100

Code: Select all

# ls -la /usr/sbin/ping6
lrwxrwxrwx 1 root root 10 Dec  2 12:57 /usr/sbin/ping6 -> /bin/ping6

# which ping
/bin/ping

# ./check_ping -V
check_ping v1.4.16 (nagios-plugins 1.4.16)
Thank you.

Re: 'Check_ping' returns /usr/sbin/ping6 -n -U -w 10 -c 5 lo

Posted: Fri Dec 13, 2013 12:26 pm
by lmiltchev
Run the following command and show the output:

Code: Select all

 ls -la /bin/ping
Is SELinux enabled on this box?

Code: Select all

sestatus