Debian Etch - Nagios 3.1

From Skytech
Revision as of 07:51, 26 January 2009 by 212.37.141.188 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Install nagios 3.1.0 on Debian Etch

Grab various sources etc from nagios.org

You need Nagios-3.1.0 and also the plugins (1.4.13 as of current writing).

We'll install them under /usr/local/nagios

Unpack, compile and install

## Nagios-3.1.0
./configure --with-command-group=nagcmd
make all 
make install
make install-init
make install-config
make install-commandmode
make install-webconf
## Check generic config
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


## Nagios-plugins
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
## Add to startup 
update-rc.d nagios defaults
## Recheck generic setup
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios start

Setup web frontend

apt-get install php5 apache2
cp -p sample-config/httpd.conf /etc/apache2/conf.d/nagios.conf
## Change/update sample config as needed
/etc/init.d/apache2 restart

Edit/add/modify nagios options/checks

These can all be found under /usr/local/nagios/etc