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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

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

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Run the following commands and show us the output:

Code: Select all

ls -la /usr/sbin/ping6
which ping
./check_ping -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked