How To Install Nagios on Ubuntu 13.04

Nagios is the most widely used open source monitoring tools which help us to monitor the services and application that run’s on Windows,Linux,Routers and other network devices. With the help of Nagios you can monitor basic services and attributes. We can access the Nagios using web interface coming with the bundle and configuration need to be done on the file level.

Services List:

This Tutorial describes how can you monitor “private” services and attributes of Linux/UNIX servers, such as:


  • CPU load
  • Memory usage
  • Disk usage
  • Logged in users
  • Running processes
  • etc.

Private Services:

  • HTTP
  • FTP
  • SSH
  • SMTP
  • etc

Install Nagios:

Nagios3 is available on Ubuntu repository, just issue the command to install

sudo apt-get install nagios3

Follow the on screen instruction, it would ask you to setup mail configuration of an account; from where you want to send a notification mail.

Ubuntu Nagios Mail Setup

You can choose an option based on your need.

Ubuntu Nagios Server Mail

Enter the secure password for the user “nagiosadmin”, it is required to access web administration console.

Ubuntu Nagios AdminPass

Re-enter the same password.

Ubuntu Nagios Re Pass

Configure Nagios:

Nagios does not accept the eternal commands, it has to be enabled for adding comments, scheduling the checkups, disabling the notification,etc.,. Open up nagios.conf file under /etc/nagios3 and Change check_external_commands=0 to check_external_commands=1

 sudo gedit /etc/nagios3/nagios.conf

Add nagios user to www-data group.

sudo usermod -G nagios www-data

Add the group executable permission to the nagios directory

chmod g+x /var/lib/nagios3/rw
chmod g+x /var/lib/nagios3

Access Web Interface:

Restart Nagios and Apache web server.

sudo /etc/init.d/nagios3 restart && sudo /etc/init.d/apache2 restart

Now access the Nagios web interface using the following URL. You’ll be prompted for the username (nagiosadmin) and password you specified earlier.


Ubuntu Nagios Login

You will redirect to the home page, Click on the Services to view Status of Hosts.

Ubuntu Nagios Home

That’s All.


Share This Post

  • Daniel

    You save my life men!!!, thx!!

  • Nuevo