Nagios

From CLONWiki
Revision as of 16:21, 2 January 2007 by Boiarino (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Nagios is main monitoring tool for CLON cluster.

Download from web following files and place them to '/usr/local/downloads':

 nagios-2.6.tar.gz
 nagios-images_0.3.tar.gz
 nagios-plugins-1.4.5.tar.gz
 nagiosmib-1.0.0.tar.gz (?????????)
 create user 'nagios', private group 'nagios'
 mkdir /www/nagios2.6
 chown nagios.nagios /www/nagios2.6

Add command file group and put appropriate users in (we assume that apache is running as user 'apache'):

 /usr/sbin/groupadd nagcmd
 /usr/sbin/usermod -G nagcmd apache
 /usr/sbin/usermod -G nagcmd nagios
 to check, see file /etc/group

Build and install:

 cp /usr/local/downloads/nagios-2.6.tar.gz /usr/local/src
 cd /usr/local/src
 gunzip nagios-2.6.tar.gz
 tar xvf nagios-2.6.tar
 cd '/usr/local/src/nagios-2.6'
 su nagios
 ./configure --prefix=/www/nagios2.6 --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagcmd
 make all
 make install
 #to install init script /etc/rc.d/init.d/nagios:
 make install-init
 #to install sample /etc directory
 make install-config
 #???This installs and configures permissions on the
 #???directory for holding the external command file
 make install-commandmode
  1. plugins

cd '/usr/local/src/nagios-plugins-1.4.5' su nagios

./configure --prefix=/apps/nagios2.6 make make install

  1. configure apache

add contents of /usr/local/src/nagios-2.6/sample-config/httpd.conf to /apps/apache2.2.3/conf/httpd.conf