Nagios: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
make install | make install | ||
Install init script /etc/rc.d/init.d/nagios: | |||
make install-init | |||
make install-init (as 'root' !!!) | |||
#to install sample /etc directory | #to install sample /etc directory | ||
Line 41: | Line 42: | ||
make install-commandmode | make install-commandmode | ||
cd | Plugins: | ||
cd /usr/local/src/nagios-plugins-1.4.5 | |||
su nagios | |||
./configure --prefix=/www/nagios2.6 | |||
make | |||
make install | |||
Fix apache configuration file: | |||
add contents of /usr/local/src/nagios-2.6/sample-config/httpd.conf | |||
to /www/apache2.2.3/conf/httpd.conf | |||
Copy 'etc' directory from old Nagios (if any) to /www/nagios2.6. Go through files cgi.cfg, nagios.cfg and private/* | |||
and fix pathes making them point to /www/nagios2.6. | |||
Add several directories for output files: | |||
mkdir /www/nagios2.6/var/log | |||
mkdir /www/nagios2.6/var/run | |||
mkdir /www/nagios2.6/var/rw (?????) | |||
Install icons: | |||
cd /usr/local/src/nagios-images-0.3/base | |||
cp * /www/nagios2.6/share/images/logos | |||
To check configuration run following commands: | |||
./ | /apps/nagios2.6/bin/nagios -v /apps/nagios2.6/etc/nagios.cfg | ||
To start/stop | |||
/etc/init.d/nagios start/stop/restart | |||
Revision as of 16:58, 2 January 2007
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
Install init script /etc/rc.d/init.d/nagios:
make install-init (as 'root' !!!)
#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
Plugins:
cd /usr/local/src/nagios-plugins-1.4.5 su nagios ./configure --prefix=/www/nagios2.6 make make install
Fix apache configuration file:
add contents of /usr/local/src/nagios-2.6/sample-config/httpd.conf to /www/apache2.2.3/conf/httpd.conf
Copy 'etc' directory from old Nagios (if any) to /www/nagios2.6. Go through files cgi.cfg, nagios.cfg and private/* and fix pathes making them point to /www/nagios2.6.
Add several directories for output files:
mkdir /www/nagios2.6/var/log mkdir /www/nagios2.6/var/run mkdir /www/nagios2.6/var/rw (?????)
Install icons:
cd /usr/local/src/nagios-images-0.3/base cp * /www/nagios2.6/share/images/logos
To check configuration run following commands:
/apps/nagios2.6/bin/nagios -v /apps/nagios2.6/etc/nagios.cfg
To start/stop
/etc/init.d/nagios start/stop/restart