How to do it...

Follow these steps to install and configure Nagios on a Debian, Mint, or Ubuntu monitoring server:

  1. Execute these commands as a root-level user to install Nagios and useful plugins:
        sudo apt-get install nagios3 nagios-plugins-extra
        Sudo apt-get install nagios-nrpe-plugin
  1. When prompted, enter a password for the nagiosadmin user.

Follow these steps to install Nagios on a Red Hat, Fedora, CentOS, and Scientific Linux monitoring server:

  1. Open the /etc/selinux/config file and change the SELINUX parameter to match the following:
        SELINUX=permissive 
  1. Execute the following command as a root-level user:
        sudo setenforce 0
  1. Execute this command as a root-level user to install Nagios:
        sudo yum install nagios nagios-plugins-all ...

Get PostgreSQL High Availability Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.