Page 1 of 1

Nagios XI NRPE Agent calls to use FQDN vs IP

Posted: Fri Mar 28, 2014 9:30 am
by brandon.pal
Hi All,

We are in the process of re IPing our network and when when we changed the Nagios IP all hell broke loose and I have lovely red dots all over my screen.

When I setup NRPE on client machines I allowed FQDN as well as IP's. What I am noticing is that agent is only calling with a weird IP. FF:ip as seen in the following error:

Mar 28 10:21:14 XXXXXX xinetd[11093]: FAIL: nrpe address from=::ffff:192.168.XXX.XXX
Mar 28 10:21:14 XXXXXX xinetd[14425]: EXIT: nrpe status=0 pid=11093 duration=0(sec)

So my question is how do I get it to use the FQDN in the call which I've all ready allowed.

/etc/xined.d/nrpe

Code: Select all

# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
        flags           = REUSE
        socket_type     = stream
        port            = 5666
        wait            = no
        user            = nagios
        group           = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        disable         = no
        only_from       = nagios.XXXXXXXX.com ::ffff:10.XXX.XXX.XXX

}


Re: Nagios XI NRPE Agent calls to use FQDN vs IP

Posted: Fri Mar 28, 2014 12:08 pm
by slansing
I believe you need to comma separate your addresses:

Code: Select all

only_from       = nagios.XXXXXXXX.com,::ffff:10.XXX.XXX.XXX
After changing this be sure to restart either the daemon, or the xinetd service if you are using that "default for xi NRPE agent installs."

Re: Nagios XI NRPE Agent calls to use FQDN vs IP

Posted: Wed Apr 02, 2014 9:12 am
by brandon.pal
From what I've read it's spaces not commas for that file. It can use the IP with the FF just find what I want is for it to use the FQDN.

Re: Nagios XI NRPE Agent calls to use FQDN vs IP

Posted: Wed Apr 02, 2014 9:35 am
by tmcdonald
This is probably a dns issue. What happens when you run dig or nslookup on that FQDN?