Issue with Linux Server Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Issue with Linux Server Monitoring

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Issue with Linux Server Monitoring

Post 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?
Former Nagios Employee.
me.
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Issue with Linux Server Monitoring

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with Linux Server Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Issue with Linux Server Monitoring

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue with Linux Server Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Issue with Linux Server Monitoring

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with Linux Server Monitoring

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue with Linux Server Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Issue with Linux Server Monitoring

Post by Berto »

Hello,

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

--Berto
Locked