Wednesday, June 11, 2008

Nagios for network and service monitoring

Introduction
Nagios is a open source service and network monitoring program.

Installation

Install the following rpms

nagios-2.9-1.el5.rf.i386.rpm
nagios-plugins-1.4.9-1.el5.rf.i386.rpm


Configuration

Add users nagios to cgi.cfg for the following attributes

authorized_for_system_information=nagios
authorized_for_configuration_information=nagios
authorized_for_all_services=nagios
authorized_for_all_hosts=nagios
authorized_for_all_service_commands=nagios
authorized_for_all_host_commands=nagios

Web user setup
Add nagios to /path/to/nagios.htpasswd Add the following to /etc/httpd/conf.d/nagios

Options ExecCGI
AllowOverride None
order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /path/to/nagios.htpasswd
Require valid-user


Alias /nagios/ /usr/share/nagios/

Options None
AllowOverride None
order allow,deny
Allow from all
AuthType Basic
AuthName "Nagios Access"
AuthUserFile /path/to/nagios.htpasswd
Require valid-user

Add Hosts and Services to /etc/nagios/localhost.cgi Follow the example configuration
Any questions or problems put them in the comments, I will try to help

No comments: