Nagios 3 on Ubuntu
Environment
Preparing needed applications
Install Nagios
- Ubuntu 8.04
Preparing needed applications
#apt-get install apache2Add new user account for Nagios
#apt-get install build-essential
#apt-get install libgd2-xpm-dev
#useradd -m nagiosAdd new group for external command
#passwd nagios
#groupadd nagcmdDownload Nagios and Nagios Plugins, just visit www.nagios.org to get the newest one
#usermod -G nagcmd nagios
#usermod -G nagcmd www-data
Install Nagios
#tar zxvf nagios-{version}.tar.gzChange the contact email
#tar zxvf nagios-plugins-{version}.tar.gz
#./nagios-{version}/configure --with-command-group=nagcmd
#./nagios-{version}/make all
#./nagios-{version}/make install
#./nagios-{version}/make install-init
#./nagios-{version}/make install-config
#./nagios-{version}/make install-commandmode
#vim /usr/local/nagios/etc/contacts.cfgInstall web configation to Apache2
#./nagios-{version}/make install-webconfSet password for logging in
#htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadminInstall plugins of Nagios to get more check script
#./nagios-plugins-{version}/configure --with-nagios-user=nagios --with-nagios-group=nagcmd
#make
#make install