Nagios XI NRPE Agent calls to use FQDN vs IP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Nagios XI NRPE Agent calls to use FQDN vs IP

Post 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

}

slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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."
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

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

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

This is probably a dns issue. What happens when you run dig or nslookup on that FQDN?
Former Nagios employee
Locked