Unable to monitor remote Linux server - always get error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mrankin
Posts: 4
Joined: Tue Sep 27, 2011 8:46 pm

Unable to monitor remote Linux server - always get error

Post by mrankin »

I am running Centos 5.x for my main server and it is working perfectly.

I have just attempted (successfully I think) an installation of the Nagios Agent on my Debian 5 server, and have configured it to allow connections from the IP of my main server.

My main server is seeing that my Debian box is up using ping. All other parameters are failing. The errors I get are as follows:


With dont_blame_nrpe=0 I get:
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

With dont_blame_nrpe=1 I get:
NRPE: Command 'check_disk' not defined

I know there is very little documentation around for Debian (including the agent installation process which does not work, so had to rely on a 3rd party website for instructions. Nagios documentation for agent install fails as dependencies are required and NOT installed - another issue).

So, basically I'm currently stuck with either nothing coming back from the remote server or a critical error. Anyone have any ideas on how to get this to work???
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to monitor remote Linux server - always get error

Post by lmiltchev »

Check your SELinux and iptables first. If this is not an issue, run in terminal (as root):

# dpkg-reconfigure nagios-agent

Make sure you Nagios server's IP address is listed there. If it is not listed, enter it and click "OK".
Be sure to check out our Knowledgebase for helpful articles and solutions!
mrankin
Posts: 4
Joined: Tue Sep 27, 2011 8:46 pm

Re: Unable to monitor remote Linux server - always get error

Post by mrankin »

Thanks for your reply. First 2 suggestions aren't an issue for me.

Ran dpkg-reconfigure nagios-agent which gave me an error saying ti wasn't installed.

I think ran apt-get -f install nagios-agent and went through the setup (Hadn't seen this setup before.)

I've still got several critical errors basically saying "NRPE: Unable to read output".

Given the time it takes to configure this application, and that I need to change it for each of my 10 VPS hosts, I will find another tool.

Thanks anyway for you reply.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to monitor remote Linux server - always get error

Post by lmiltchev »

I've used "dpkg-reconfigure nagios-agent" on Ubuntu and it is very easy to use. I haven't used it on Debian, but it should be basically the same. I assumed you followed our documentation on the installing the Nagios Ubuntu and Debian Linux Agent. In case you didn't come across this document, you can read it here:

http://assets.nagios.com/downloads/nagi ... _Agent.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked