Tag Archive: nagios


While installing Centreon on RHEL 5.8 server, this message was displayed :

file /etc/fonts/conf.avail/10-autohint.conf from install of fontconfig-2.5.93-7.x86_64 conflicts w ith file from package fontconfig-2.4.1-7.el5.i386

On 64 bit-based system, yum may install 32 bit and 64 bit rpm packages for a given software. This is one of its features.  In that case, an upgrade was available for the fontconfig package in Centreon repositories. Their version was earlier than the one installed on the system. The 32 bit version of this rpm has been removed to solve the rpm dependency problem. Just issue the following command as root :

root@localhost:~# yum remove fontconfig-2.4.1-6.el5.i386

Then, type the following commands to install centreon :

root@localhost:~#yum clean all && yum update && yum install centreon

More information on this issue : Centreon official forum

While using Centreon on top of Nagios core, it is no more necessary to log on to the Nagios web interface to look after the monitoring overview. Centreon does it well even better.

Nevertheless, if you configure the Firefox addon “Nagios checker”, you need to have the right credentials with enough privileges to see all the Nagios monitoring views. Otherwise you can get the following errors :

it appears as though you do not have permission to view information for any of the services you requested…
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.

On RHEL 5.8 with a rpm-based Nagios installation, the  default user account created is nagiosadmin. Its password is located and encrypted in /etc/nagios/passwd. Make sure you did not forget its password or set a new one :

root@localhost:~# cd /etc/nagios

root@localhost:~# htpasswd -c passwd nagiosadmin

All the details concerning access to monitoring and configuration views are in /etc/nagios/cgi.cfg :

root@localhost:~# cat /etc/nagios/cgi.cfg

main_config_file=/etc/nagios/nagios.cfg
physical_html_path=/usr/local/nagios/share
url_html_path=/nagios
nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 ‘/usr/sbin/nagios’
use_authentication=1
default_user_name=nagiosadmin
authorized_for_system_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
statusmap_background_image=logofullsize.jpg
default_statusmap_layout=4
default_statuswrl_layout=4
refresh_rate=90
ping_syntax=/bin/ping -n -c 5 $HOSTADDRESS$

If you have made any modification in the Nagios configuration, make sure the syntax is OK :

root@localhost:~#service nagios checkconfig

Then, reload Nagios configuration :

root@localhost:~# service nagios reload

More information in the official Nagios documentation :
Nagios Core : Authentication And Authorization In The CGIs

Firefox addon “Nagios checker” :

Nagios checker

If you have this error “CHECK_NRPE: Error – Could not complete SSL handshake” while configuring Nagios or Centreon, make sure that your (Nagios|Centreon) poller IP address is allowed in the remote monitored nrpe server configuration file. Just add the IP address :

Debian : cat  /etc/nagios/nrpe.cfg

allowed_hosts=your_ip_here

then, reload the nrpe server configuration file :

root@localhost:~#/etc/init.d/nagios-nrpe-server reload

RedHat : cat  /etc/nagios/nrpe.cfg

allowed_hosts=your_ip_here

Then, restart the nrpe server configuration file (no option for reloading) :

root@localhost:~#service nrpe restart

Checking for any alerts in WARNING status on our Nagios server, I have found the following errors for a couple of Linux servers :

External command error: Timeout: No Response from 192.168.81.245:161

ERROR: Interface Status Request : No response from remote host “192.168.81.245″

ERROR: Description table : No response from remote host “192.168.81.245″

ERROR: hrStorageDescr Table : No response from remote host “192.168.81.245″

ERROR: Description Table hrStorageType : No response from remote host “192.168.81.245″

ERROR: hrStorageDescr Table : No response from remote host “192.168.81.245″

In this particular configuration, Nagios server sends regularly a SNMP request to servers with a running SNMP daemon for server- health status (swap, cpuload) checks. If the SNMPD program is not started, the information requested are not reported as it should be and the error messages above are brought to the sysadmin through Nagios web interface.

In order to remove these errors, SNMP daemon must be started :

root@localhost:~#/etc/init.d/snmpd start

To check the SNMPD status :

root@localhost:~# /etc/init.d/snmpd status

The latest command should print the SNMP daemon PID.

Hope this will help you !

Follow

Get every new post delivered to your Inbox.