Page 1 of 1

/var/log/message:FAIL: nrpe address from=::ffff:192.168.0.92

Posted: Mon Nov 18, 2013 2:51 am
by huanhuan7777
My nagiosxi:xi-2012r2.2.tar
My operating system:Red Hat Enterprise Linux 6.3
My nagiso server IP:192.168.0.92
My nagios remote host:192.168.0.50

Run commend on 92:/usr/local/nagios/libexec/check_nrpe -H 192.168.0.50 -t 30 -c check_log -a '-F /var/log/testnrpe -O ./check_log.AAAAA.old -q "AAAAA"'
An error was happend,like this:OUTPUT: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.


And /var/log/message file appear the messages like this :
Nov 18 16:38:35 test02 xinetd[26115]: START: nrpe pid=3452 from=::ffff:192.168.0.92
Nov 18 16:38:35 test02 xinetd[3452]: FAIL: nrpe address from=::ffff:192.168.0.92
Nov 18 16:38:35 test02 xinetd[26115]: EXIT: nrpe status=0 pid=3452 duration=0(sec)


92:

Code: Select all

(1)cat /usr/local/nagios/etc/nrpe.cfg | grep blame
dont_blame_nrpe=1
(2)cat /usr/local/nagios/etc/nrpe.cfg | grep allowed_hosts
#allowed_hosts=127.0.0.1
allowed_hosts=127.0.0.1,192.168.0.50
(3)cat /etc/xinetd.d/nrpe | grep only_from
only_from       = 127.0.0.1 192.168.0.50
(4)service xinetd status
xinetd (pid  26115) is running...
50:

Code: Select all

(1)cat /usr/local/nagios/etc/nrpe.cfg | grep blame
dont_blame_nrpe=1
(2)cat /usr/local/nagios/etc/nrpe.cfg | grep allowed_hosts
allowed_hosts=127.0.0.1,192.168.0.92
(3)cat /etc/xinetd.d/nrpe | grep only_from
 only_from       = 192.168.0.92 127.0.0.1
(4)service xinetd status
xinetd (pid  23572) is running...

Another thing is:
When I run the commend(/usr/local/nagios/libexec/check_nrpe -H 192.168.0.50 -t 30 -c check_disk -a '-w 20% -c 10% -p /') on 92,it is work!
The result it return like this:OUTPUT: DISK OK - free space: / 44378 MB (92% inode=95%);| /=3458MB;40316;45356;0;50396

Please help me!!!
Thank you vary much~~~

Re: /var/log/message:FAIL: nrpe address from=::ffff:192.168.

Posted: Mon Nov 18, 2013 3:50 am
by huanhuan7777
Thank you!!!

This problem was resolved!!!

The reason is the commend:/usr/local/nagios/libexec/check_nrpe -H 192.168.0.50 -t 30 -c check_log -a '-F /var/log/testnrpe -O ./check_log.AAAAA.old -q "AAAAA"'

Change " to "

So,the correct command is:/usr/local/nagios/libexec/check_nrpe -H 192.168.0.50 -t 30 -c check_log -a '-F /var/log/testnrpe -O ./check_log.AAAAA.old -q 'AAAAA''

Very strange, right?

But it worked with this one!