Page 1 of 2

Issue with Linux Server Monitoring

Posted: Mon Aug 10, 2015 2:34 pm
by Berto
Hello,

Over the weekend I built and installed Nagios XI on a RHEL 6.6 server. I wanted to start testing it and decided to use the Linux Server Monitoring wizard. I followed the wizard and the documentation for the NRPE plugin and when I clicked the finish button I got an error. I uploaded a screenshot of the wizard displaying the errors.

--Berto

Re: Issue with Linux Server Monitoring

Posted: Mon Aug 10, 2015 2:49 pm
by hsmith
Berto wrote:Hello,

Over the weekend I built and installed Nagios XI on a RHEL 6.6 server. I wanted to start testing it and decided to use the Linux Server Monitoring wizard. I followed the wizard and the documentation for the NRPE plugin and when I clicked the finish button I got an error. I uploaded a screenshot of the wizard displaying the errors.

--Berto
Did you try to repeat this at all?

Are all wizards failing, or just the Linux one?

Re: Issue with Linux Server Monitoring

Posted: Mon Aug 10, 2015 3:47 pm
by Berto
Hello,

I tried it again this afternoon and got the error. I've also tried the Linux NRPE and SNMP wizards and have gotten the same errors.

--Berto

Re: Issue with Linux Server Monitoring

Posted: Mon Aug 10, 2015 4:12 pm
by lmiltchev
Are you using a proxy?

Please, follow the steps, outlined in our FAQ wiki post here:

https://support.nagios.com/wiki/index.p ... n_Problems

and post the "reconfig.txt" and the "cmd.txt" files.

Re: Issue with Linux Server Monitoring

Posted: Tue Aug 11, 2015 7:32 am
by Berto
Hello,

There isn't a proxy between the Nagios XI server and the server I was trying to use. They are both on the same subnet and I have uploaded the requested files.

--Berto

Re: Issue with Linux Server Monitoring

Posted: Tue Aug 11, 2015 9:33 am
by tgriep
In the cmd.txt file, the XI system has en error trying to connect to a proxy server. Here is a link to some instructions on how to enable proxy settings for your system.
https://support.nagios.com/wiki/index.p ... n_Problems
Especially the /etc/wgetrc settings need to be done.

Re: Issue with Linux Server Monitoring

Posted: Tue Aug 11, 2015 10:38 am
by Berto
This is rather interesting. That proxy is no longer in use by corporate (I've confirmed that) but it's still in our DNS. Is there a file/config that Nagios XI uses that would have tried using that proxy server? From the cmd.txt it looks like part of the command that is run seems to be looking local to server, so why would it even go searching for a proxy?


--Berto

Re: Issue with Linux Server Monitoring

Posted: Tue Aug 11, 2015 10:46 am
by lmiltchev
From the cmd.txt it looks like part of the command that is run seems to be looking local to server, so why would it even go searching for a proxy?
This is explained in our FAQ wiki page (the link tgriep posted):
Additionally, the Nagios XI code makes several internal HTTP calls to the local Nagios XI server to import configuration data, apply configuration changes, process AJAX requests, etc.
You need to exclude the localhost in "/etc/wgetrc", i.e.

Code: Select all

no_proxy=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Hosts to exclude from proxying

Re: Issue with Linux Server Monitoring

Posted: Tue Aug 11, 2015 10:50 am
by tgriep
Check the /etc/wgetrc file for any proxy settings. Upload it if you are unsure.
In the XI gui, go to Admin > Proxy Configuration and make sure those settings are correct.

Re: Issue with Linux Server Monitoring

Posted: Tue Aug 11, 2015 5:58 pm
by Berto
Hello,

After adding to the /etc/wgetrc file for excluding the the localhost it worked! Thanks a lot.

--Berto