Install Nagios 4.0.4 on Debian Ubuntu

Overview

Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes. The latest nagios release is 4.0.4. This release contains bug fixes and updates related to downtimes, restarts, and to the way non-ASCII characters are handled. This release includes an application binary interface (ABI) update; existing modules will need to be recompiled in order to work with this release.

Install Nagios 4.0.4 on Debian Ubuntu

This installation was tested on Debian, Ubuntu.

First lets install some prerequisites

Next create nagios user account and nagcmd group. Also add nagios and apache user to nagcmd group

Now download nagios and untar it.

Lets configure nagios

Now lets add the email addresses of all the users who would get alert notifications on their emails.

Find the line root@localhost and replace it with the email addresses. For more then one recipients seperate the emails with a comma.

Since nagios does not have an authentication method of its own, we need to rely on htaccess provided by apache. Create an account for logging into the Nagios web interface. Enter the password when prompted

Restart httpd server

Next download and install nagios plugins

Make sure nagios start automatically after a server reboot

Verify if your config is good

Make sure your config is passed without any errors. If it does pass start the service

Now open the browser and head over to

nagios01 300x176 Install Nagios 4.0.4 on Debian Ubuntu