Install Nagios 3.4 on Linux Mint 14

ADVERTISEMENT

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:

ADVERTISEMENT
Article will continue after the ad

Attributes:

  • 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 Linux Mint 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.

You can choose an option based on your need.

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

Re-enter the same password.

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
 
----------------------------------------------
 
check_external_commands=1
 
----------------------------------------------

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.

http://localhost/nagios3/

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

That’s All.

ADVERTISEMENT

POSTS YOU MAY LIKE -:)

Share This Post

Shares