Showing posts with label nagios. Show all posts
Showing posts with label nagios. Show all posts

Configuring proxy on Nagios Linux CentOS

source link

Problems Using Nagios XI With Proxies
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 used. 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, which would result in a non-functional Nagios XI installation.

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.

In /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
 
In /etc/wgetrc :
 http_proxy=http://myname:mypass@someproxyserver:port/ # All in one string this time
 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
 
If you are using an https proxy:
 https_proxy=https://myname:mypass@someproxyserver:port/ 
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.

Nagios XI "NSP: Sorry Dave, I can't let you do that" Errors

This is usually related to time out of sync.
Update the time manually.

Error:
NSP: Sorry Dave, I can't let you do that

Solution:
date MMDDhhmmCCYY
(where MM is month, DD is day, hh is hour, mm is minute, and CCYY is the year)

Reference acticles:
http://assets.nagios.com/downloads/nagiosxi/docs/Changing_The_XI_System_Time.pdf
http://support.nagios.com/wiki/index.php/Nagios_XI:FAQs#Resolving_.22NSP:_Sorry_Dave.2C_I_can.27t_let_you_do_that.22_Errors

Nagios XI SQL Error


Error:
SQL: SQL Error [ndoutils]:Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired

Solution:

Repairing MySQL Tables
First, login to your Nagios XI server as the
root user.
Next, stop the MySQL database server with the following command:
service mysqld stop
Run the Nagios XI database repair script with the following command:
/usr/local/nagiosxi/scripts/repairmysql.sh nagios
The script will check and repair all tables in the nagios MySQL database. This process may take several minutes to complete, depending on the size of your database.
Once the script has completed, start the MySQL database server with the following command: