This is a cache of https://support.nagios.com/kb/article/nagios-xi-problems-using-nagios-xi-with-proxies-147.html. It is a snapshot of the page at 2025-05-12T01:12:05.706+0000.
Nagios <strong>xi</strong> - Problems Using Nagios <strong>xi</strong> With Pro<strong>xi</strong>es
Home » Categories » Products » Nagios xi » Troubleshooting » Common Problems

Nagios xi - Problems Using Nagios xi With Proxies

Overview

We do not officially support Nagios xi when you install and use proxy software that restricts traffic to or from the Nagios xi server. There are several reasons for this. First, Nagios xi requires external access for package installation and updates. Package installation and updates may not work when proxies are configured incorrectly. 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. These functions may not work properly when you deploy a proxy if it is not configured properly, which could result in a non-functional Nagios xi installation.

 

Solutions

There are two things that need to be configured to make xi installation work with a proxy; the yum and wget configurations. Do both of these before starting anything about the installation process. You will need to access the Nagios xi server in an SSH session to update the following files.

/etc/yum.conf

proxy=http://someproxyserver:port/ # Shouldn't need to be quoted, remember the trailing slash
proxy_username=myname  # The username you authenticate to your proxy with, if applicable
proxy_password=mypass  # The password you provide to your proxy, if applicable

 

/etc/wgetrc

http_proxy=http://myname:mypass@someproxyserver:port/ # All in one string this time
https_proxy=https://myname:mypass@someproxyserver:port/ # Only required if you have a HTTPS proxy
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

 

Quoting is not needed (or helpful) in any of these, but if you have special characters in passwords (especially : or @) and are having problems you probably need to escape them with backslashes.

 

Solution Provided By Customer

Here is a proxy install solution reported by forum user TSCAdmin:

  1. Before running any installation script install php-pear package manually
  2. Set proxy for PHP Pear
  3. Run Nagios installation scripts sequentially
  4. Unset system proxy before running E-importnagiosql script
    pear config-set http_proxy 'http://example.com:8080'

 

Update Check Behind A Proxy

Updates checks are known to fail for systems behind a proxy.

We have a proxy component that should allow the update check to work behind most proxies.

Navigate to Admin > Proxy Configuration to configure the proxy settings.

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios xi - How To Delete A Data Source From An RRD File
Viewed 14141 times since Wed, Apr 27, 2016
Disabling Outdated Versions of SSL/TLS
Viewed 8656 times since Thu, Aug 6, 2020
Nagios xi - Event Data Is Stale
Viewed 5978 times since Wed, Jan 27, 2016
OpenSSL causes issue with check_nrpe plugin with NSClient++
Viewed 9377 times since Fri, Apr 30, 2021
Nagios xi - Warning: Duplicate definition found for contact ’xi_default_contact’
Viewed 6677 times since Tue, Jan 26, 2016
Nagios xi - How To Test Check Commands From The Command-line
Viewed 49075 times since Tue, Jan 26, 2016
Nagios xi - Resolving "Cannot connect to database" Error - Core Config Manager
Viewed 8391 times since Mon, Jan 25, 2016
Nagios xi - Schedulded Backups No Longer Working
Viewed 8212 times since Fri, Jun 3, 2016
Nagios xi - Empty Screen for Wizard, Component, Dashlet
Viewed 8065 times since Wed, Jan 27, 2016
Nagios xi - Windows Memory Usage - Physical
Viewed 18519 times since Tue, Jan 26, 2016