Page 1 of 1

Check Updates fails

Posted: Thu Mar 11, 2010 2:48 pm
by qcmonitor
Hi,

I would like to use the check updates functionality in Nagios XI.
We are connected to the Internet through a proxy server which requires domain authentication.

I did not find where to enter any proxy settings in the Nagios XI GUI.
I'm using XI because it is more easy to deploy Nagios without Linux knowledge.

Can someone helps me to configure XI in order to use the update behind a proxy?

Thanks

Chris

Re: Check Updates fails

Posted: Thu Mar 11, 2010 3:52 pm
by mmestnik
I may.
Is there no possibility to allow the address of the NagiosXI server?

You may be able to set the http_proxy environment variable.
/etc/httpd/conf.d/nagios.conf
after line 23, just b4 "</Directory>"
Add something like:

Code: Select all

  SetEnv http_proxy http://<user>:<pass>@<server>:<port>/

Re: Check Updates fails

Posted: Thu Mar 11, 2010 4:49 pm
by qcmonitor
Hi

For the moment I do not have access to the proxy management console.

I tried to add the line in the nagios.conf, but still check failed.

I need to specify a domain user DOMAIN\USER:PASSWORD
I tried with single or double \ ( SetEnv http_proxy http://<domain\user>:<pass>@<server>:<port>/ and SetEnv http_proxy http://<domain\\user>:<pass>@<server>:<port>/

Do I also need modify a setting in CentOS, as the yum command is not working also (maybe for the same reason: the proxy).

Thanks

Chris

Re: Check Updates fails

Posted: Thu Mar 11, 2010 6:14 pm
by mmestnik
Correct, on the command line you can set this via:

Code: Select all

export http_proxy='http://<domain\user>:<pass>@<server>:<port>/'
You can set this as part of your profile, usually in /etc/profile.

Each application can also have proxy settings in it's config file.