Sunday, July 19, 2009

Nagios Installation in Ubuntu

Download the latest version 3.1.2.

Add new users nagios and nagiosadmin
> sudo adduser nagios
> sudo adduser nagiosadmin


Configure and install Nagios
> tar xvfz nagios-3.1.2.tar.gz
> cd nagios-3.1.2
> ./configure --with-nagios-user=nagios --with-nagios-group=nagios
> make all
> make fullinstall
> htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
> /etc/init.d/apache2 reload


Get the server to start the nagios when reboot
> sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios


Install the plugin.
Download the Plugin 1.4.13
> ./configure
> make
> sudo make install
> sudo chown nagios:nagios /usr/local/nagios -R


  • Start FireFox
  • http://localhost/nagios
  • Enter nagiosadmin and the password

No comments:

Post a Comment