I'm having this issue on a Nagios XI installation. I've run the monitor wizard. I have the agent on the Ubunut servers running. I went into /etc/init.d/hosts.allow and changed the ip address to the ip of my nagios server. I'v done:
/directory of nagios plugins/check_nrpe -H host.IP.of.remote.NRPE.client
What does it output? Do you have port 5666 open on the remote Ubuntu server? What else do you have in /etc/init.d/hosts.allow? You should also have a nrpe.cfg file, can you post the contents of it?
/directory of nagios plugins/check_nrpe -H host.IP.of.remote.NRPE.client
What does it output? Do you have port 5666 open on the remote Ubuntu server? What else do you have in /etc/init.d/hosts.allow?
I'm not using any plugins. I installed Nagios XI on a VM, then I put the agent on the remote Ubuntu servers. That's it. There is nothing else in the /etc/init.d/hosts.allows on the remote machines except the <ip address>to the Nagios server.
What guide did you follow for installing the NRPE agent? Ours or a packaged distro version? If so you should have a nrpe.cfg file like noted above. This file will contain handlers for your remote plugins and a definition to allow the Nagios server to communicate with NRPE on the remote host.
slansing wrote:What guide did you follow for installing the NRPE agent? Ours or a packaged distro version? If so you should have a nrpe.cfg file like noted above. This file will contain handlers for your remote plugins and a definition to allow the Nagios server to communicate with NRPE on the remote host.
I look under /usr/local/nagios/etc/objects and there is not nrpe.cfg. I looked under /usr/local and there is no actual nagios folder which is how I got everything when I used core.
I did look in /usr/lib/nagios/libexec and saw there is not check_nrpe command executable so I copied it over from the Nagios server.