Ubuntu 16.04: Install Nagios

This article will describe installing Nagios which is a web-base system monitor tool.

1 Before installing Nagios

Install Postfix with this script.

2 Install Nagios

NAGIOS_PASSWD will be used for Basic authentication password of nagiosadmin user.

$ NAGIOS_PASSWD=nagios
$ cat <<EOF | sudo debconf-set-selections
nagios3-cgi nagios3/adminpassword-repeat password ${NAGIOS_PASSWD}
nagios3-cgi nagios3/adminpassword password ${NAGIOS_PASSWD}
nagios3-cgi nagios3/adminpassword-mismatch note
EOF
$ sudo apt install -y nagios3

Nagios configuration to Apache2 is written in the following file. You can change Nagios configuration like Digest authentication.

/etc/apache2/conf-available/nagios3.conf

3 Access to Nagios

Access to Nagios via the following URL.

http://<server>/nagios3

Input nagiosadmin user and NAGIOS_PASSWD.

0001_BasicAuth.png

Nagios is displayed.

0002_Nagios.png