How to install Nagios Server on Ubuntu 16 Xenial

How to install Nagios Server on Ubuntu 16 Xenial

Nagios Server Ubuntu 12

Nagios is one of the best monitor system. It helps system administrator to monitor, alert, realtime information for all network and server devices.

This guide will help you, how to do the installation for Nagios server in Ubuntu 16.

 Step 1: Install nagios on Ubuntu 16

root@ubuntu:~# sudo apt-get install nagios3 nagios*
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
apache2 apache2-bin apache2-data apache2-utils bsd-mailx javascript-common libapache2-mod-php libapache2-mod-php7.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libdbi1 libjs-jquery liblockfile-bin liblockfile1 liblua5.1-0 libmysqlclient20 libnet-snmp-perl libpq5 libsnmp30 libtirpc1 monitoring-plugins
monitoring-plugins-basic monitoring-plugins-common monitoring-plugins-standard mysql-common nagios-images nagios-plugins nagios-plugins-basic nagios3-cgi nagios3-common
nagios3-core php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline postfix python-crypto python-ldb python-samba python-tdb rpcbind samba-common
samba-common-bin smbclient snmp
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear libcrypt-des-perl nagios-plugins-contrib fping qstat nagios-nrpe-plugin procmail postfix-mysql
postfix-pgsql postfix-ldap postfix-pcre sasl2-bin dovecot-common postfix-cdb postfix-doc python-crypto-dbg python-crypto-doc heimdal-clients cifs-utils
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils bsd-mailx javascript-common libapache2-mod-php libapache2-mod-php7.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libdbi1 libjs-jquery liblockfile-bin liblockfile1 liblua5.1-0 libmysqlclient20 libnet-snmp-perl libpq5 libtirpc1 monitoring-plugins monitoring-plugins-basic
monitoring-plugins-common monitoring-plugins-standard mysql-common nagios-images nagios-plugins nagios-plugins-basic nagios3 nagios3-cgi nagios3-common nagios3-core
php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline postfix python-crypto python-ldb python-samba python-tdb rpcbind samba-common samba-common-bin
smbclient snmp
The following packages will be upgraded:
libsnmp30
1 upgraded, 49 newly installed, 0 to remove and 304 not upgraded.
Need to get 14.4 MB of archives.
After this operation, 58.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libapr1 amd64 1.5.2-3 [86.0 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libaprutil1 amd64 1.5.4-1build1 [77.1 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libaprutil1-dbd-sqlite3 amd64 1.5.4-1build1 [10.6 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libaprutil1-ldap amd64 1.5.4-1build1 [8,720 B]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 liblua5.1-0 amd64 5.1.5-8 [102 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 apache2-bin amd64 2.4.18-2ubuntu1 [918 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 apache2-utils amd64 2.4.18-2ubuntu1 [81.3 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 apache2-data all 2.4.18-2ubuntu1 [162 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 apache2 amd64 2.4.18-2ubuntu1 [86.5 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 liblockfile-bin amd64 1.09-6ubuntu1 [10.8 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 liblockfile1 amd64 1.09-6ubuntu1 [8,056 B]
Get:12 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 samba-common all 2:4.3.6+dfsg-1ubuntu1 [74.5 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 smbclient amd64 2:4.3.6+dfsg-1ubuntu1 [311 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libtirpc1 amd64 0.2.5-1 [75.6 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 postfix amd64 3.0.4-5build1 [1,104 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 bsd-mailx amd64 8.1.2-0.20160123cvs-2 [63.7 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 javascript-common all 11 [6,066 B]
Get:18 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 php-common all 1:35ubuntu6 [10.8 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-common amd64 7.0.4-5ubuntu2 [484 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-json amd64 7.0.4-5ubuntu2 [16.7 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-opcache amd64 7.0.4-5ubuntu2 [75.9 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-readline amd64 7.0.4-5ubuntu2 [12.7 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-cli amd64 7.0.4-5ubuntu2 [1,275 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libapache2-mod-php7.0 amd64 7.0.4-5ubuntu2 [1,218 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libapache2-mod-php all 1:7.0+35ubuntu6 [2,960 B]
Get:26 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libdbi1 amd64 0.9.0-4 [27.8 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libjs-jquery all 1.11.3+dfsg-4 [161 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 mysql-common all 5.7.11-0ubuntu5 [18.3 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libmysqlclient20 amd64 5.7.11-0ubuntu5 [824 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libnet-snmp-perl all 6.0.1-2 [107 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libpq5 amd64 9.5.2-1 [76.9 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libsnmp30 amd64 5.7.3+dfsg-1ubuntu4 [813 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 nagios-images all 0.8 [2,589 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 monitoring-plugins-common amd64 2.1.2-2ubuntu2 [49.1 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 monitoring-plugins-basic amd64 2.1.2-2ubuntu2 [238 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 nagios-plugins-basic all 2.1.2-2ubuntu2 [6,218 B]
Get:37 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 nagios3-common all 3.5.1.dfsg-2.1ubuntu1 [53.2 kB]
Get:38 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 nagios3-cgi amd64 3.5.1.dfsg-2.1ubuntu1 [788 kB]
Get:39 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 nagios3-core amd64 3.5.1.dfsg-2.1ubuntu1 [235 kB]
Get:40 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 nagios3 amd64 3.5.1.dfsg-2.1ubuntu1 [1,542 B]
Get:41 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 python-crypto amd64 2.6.1-6build1 [245 kB]
Get:42 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 python-ldb amd64 2:1.1.24-1ubuntu3 [29.3 kB]
Get:43 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 python-tdb amd64 1.3.8-2 [11.1 kB]
Get:44 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 python-samba amd64 2:4.3.6+dfsg-1ubuntu1 [1,049 kB]
Get:45 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 rpcbind amd64 0.2.3-0.2 [40.3 kB]
Get:46 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 samba-common-bin amd64 2:4.3.6+dfsg-1ubuntu1 [506 kB]
Get:47 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 snmp amd64 5.7.3+dfsg-1ubuntu4 [154 kB]
Get:48 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 monitoring-plugins-standard amd64 2.1.2-2ubuntu2 [124 kB]
Get:49 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 monitoring-plugins all 2.1.2-2ubuntu2 [8,402 B]
Get:50 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 nagios-plugins all 2.1.2-2ubuntu2 [3,900 B]
Fetched 14.4 MB in 12s (1,123 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages …
Selecting previously unselected package libapr1:amd64.
(Reading database … 182661 files and directories currently installed.)
Preparing to unpack …/libapr1_1.5.2-3_amd64.deb …
Unpacking libapr1:amd64 (1.5.2-3) …
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack …/libaprutil1_1.5.4-1build1_amd64.deb …
Unpacking libaprutil1:amd64 (1.5.4-1build1) …
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack …/libaprutil1-dbd-sqlite3_1.5.4-1build1_amd64.deb …
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.4-1build1) …
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack …/libaprutil1-ldap_1.5.4-1build1_amd64.deb …
Unpacking libaprutil1-ldap:amd64 (1.5.4-1build1) …
Selecting previously unselected package liblua5.1-0:amd64.
Preparing to unpack …/liblua5.1-0_5.1.5-8_amd64.deb …
Unpacking liblua5.1-0:amd64 (5.1.5-8) …
Selecting previously unselected package apache2-bin.
Preparing to unpack …/apache2-bin_2.4.18-2ubuntu1_amd64.deb …
Unpacking apache2-bin (2.4.18-2ubuntu1) …
Selecting previously unselected package apache2-utils.
Preparing to unpack …/apache2-utils_2.4.18-2ubuntu1_amd64.deb …
Unpacking apache2-utils (2.4.18-2ubuntu1) …
Selecting previously unselected package apache2-data.
Preparing to unpack …/apache2-data_2.4.18-2ubuntu1_all.deb …
Unpacking apache2-data (2.4.18-2ubuntu1) …
Selecting previously unselected package apache2.
Preparing to unpack …/apache2_2.4.18-2ubuntu1_amd64.deb …
Unpacking apache2 (2.4.18-2ubuntu1) …
Selecting previously unselected package liblockfile-bin.
Preparing to unpack …/liblockfile-bin_1.09-6ubuntu1_amd64.deb …
Unpacking liblockfile-bin (1.09-6ubuntu1) …
Selecting previously unselected package liblockfile1:amd64.
Preparing to unpack …/liblockfile1_1.09-6ubuntu1_amd64.deb …
Unpacking liblockfile1:amd64 (1.09-6ubuntu1) …
Selecting previously unselected package samba-common.
Preparing to unpack …/samba-common_2%3a4.3.6+dfsg-1ubuntu1_all.deb …
Unpacking samba-common (2:4.3.6+dfsg-1ubuntu1) …
Selecting previously unselected package smbclient.
Preparing to unpack …/smbclient_2%3a4.3.6+dfsg-1ubuntu1_amd64.deb …
Unpacking smbclient (2:4.3.6+dfsg-1ubuntu1) …
Selecting previously unselected package libtirpc1:amd64.
Preparing to unpack …/libtirpc1_0.2.5-1_amd64.deb …
Unpacking libtirpc1:amd64 (0.2.5-1) …
Selecting previously unselected package postfix.
Preparing to unpack …/postfix_3.0.4-5build1_amd64.deb …
Unpacking postfix (3.0.4-5build1) …
Selecting previously unselected package bsd-mailx.
Preparing to unpack …/bsd-mailx_8.1.2-0.20160123cvs-2_amd64.deb …
Unpacking bsd-mailx (8.1.2-0.20160123cvs-2) …
Selecting previously unselected package javascript-common.
Preparing to unpack …/javascript-common_11_all.deb …
Unpacking javascript-common (11) …
Selecting previously unselected package php-common.
Preparing to unpack …/php-common_1%3a35ubuntu6_all.deb …
Unpacking php-common (1:35ubuntu6) …
Selecting previously unselected package php7.0-common.
Preparing to unpack …/php7.0-common_7.0.4-5ubuntu2_amd64.deb …
Unpacking php7.0-common (7.0.4-5ubuntu2) …
Selecting previously unselected package php7.0-json.
Preparing to unpack …/php7.0-json_7.0.4-5ubuntu2_amd64.deb …
Unpacking php7.0-json (7.0.4-5ubuntu2) …
Selecting previously unselected package php7.0-opcache.
Preparing to unpack …/php7.0-opcache_7.0.4-5ubuntu2_amd64.deb …
Unpacking php7.0-opcache (7.0.4-5ubuntu2) …
Selecting previously unselected package php7.0-readline.
Preparing to unpack …/php7.0-readline_7.0.4-5ubuntu2_amd64.deb …
Unpacking php7.0-readline (7.0.4-5ubuntu2) …
Selecting previously unselected package php7.0-cli.
Preparing to unpack …/php7.0-cli_7.0.4-5ubuntu2_amd64.deb …
Unpacking php7.0-cli (7.0.4-5ubuntu2) …
Selecting previously unselected package libapache2-mod-php7.0.
Preparing to unpack …/libapache2-mod-php7.0_7.0.4-5ubuntu2_amd64.deb …
Unpacking libapache2-mod-php7.0 (7.0.4-5ubuntu2) …
Selecting previously unselected package libapache2-mod-php.
Preparing to unpack …/libapache2-mod-php_1%3a7.0+35ubuntu6_all.deb …
Unpacking libapache2-mod-php (1:7.0+35ubuntu6) …
Selecting previously unselected package libdbi1:amd64.
Preparing to unpack …/libdbi1_0.9.0-4_amd64.deb …
Unpacking libdbi1:amd64 (0.9.0-4) …
Selecting previously unselected package libjs-jquery.
Preparing to unpack …/libjs-jquery_1.11.3+dfsg-4_all.deb …
Unpacking libjs-jquery (1.11.3+dfsg-4) …
Selecting previously unselected package mysql-common.
Preparing to unpack …/mysql-common_5.7.11-0ubuntu5_all.deb …
Unpacking mysql-common (5.7.11-0ubuntu5) …
Selecting previously unselected package libmysqlclient20:amd64.
Preparing to unpack …/libmysqlclient20_5.7.11-0ubuntu5_amd64.deb …
Unpacking libmysqlclient20:amd64 (5.7.11-0ubuntu5) …
Selecting previously unselected package libnet-snmp-perl.
Preparing to unpack …/libnet-snmp-perl_6.0.1-2_all.deb …
Unpacking libnet-snmp-perl (6.0.1-2) …
Selecting previously unselected package libpq5:amd64.
Preparing to unpack …/libpq5_9.5.2-1_amd64.deb …
Unpacking libpq5:amd64 (9.5.2-1) …
Preparing to unpack …/libsnmp30_5.7.3+dfsg-1ubuntu4_amd64.deb …
Unpacking libsnmp30:amd64 (5.7.3+dfsg-1ubuntu4) over (5.7.3+dfsg-1ubuntu3) …
Selecting previously unselected package nagios-images.
Preparing to unpack …/nagios-images_0.8_all.deb …
Unpacking nagios-images (0.8) …
Selecting previously unselected package monitoring-plugins-common.
Preparing to unpack …/monitoring-plugins-common_2.1.2-2ubuntu2_amd64.deb …
Unpacking monitoring-plugins-common (2.1.2-2ubuntu2) …
Selecting previously unselected package monitoring-plugins-basic.
Preparing to unpack …/monitoring-plugins-basic_2.1.2-2ubuntu2_amd64.deb …
Unpacking monitoring-plugins-basic (2.1.2-2ubuntu2) …
Selecting previously unselected package nagios-plugins-basic.
Preparing to unpack …/nagios-plugins-basic_2.1.2-2ubuntu2_all.deb …
Unpacking nagios-plugins-basic (2.1.2-2ubuntu2) …
Selecting previously unselected package nagios3-common.
Preparing to unpack …/nagios3-common_3.5.1.dfsg-2.1ubuntu1_all.deb …
Unpacking nagios3-common (3.5.1.dfsg-2.1ubuntu1) …
Selecting previously unselected package nagios3-cgi.
Preparing to unpack …/nagios3-cgi_3.5.1.dfsg-2.1ubuntu1_amd64.deb …
Unpacking nagios3-cgi (3.5.1.dfsg-2.1ubuntu1) …
Selecting previously unselected package nagios3-core.
Preparing to unpack …/nagios3-core_3.5.1.dfsg-2.1ubuntu1_amd64.deb …
Unpacking nagios3-core (3.5.1.dfsg-2.1ubuntu1) …
Selecting previously unselected package nagios3.
Preparing to unpack …/nagios3_3.5.1.dfsg-2.1ubuntu1_amd64.deb …
Unpacking nagios3 (3.5.1.dfsg-2.1ubuntu1) …
Selecting previously unselected package python-crypto.
Preparing to unpack …/python-crypto_2.6.1-6build1_amd64.deb …
Unpacking python-crypto (2.6.1-6build1) …
Selecting previously unselected package python-ldb.
Preparing to unpack …/python-ldb_2%3a1.1.24-1ubuntu3_amd64.deb …
Unpacking python-ldb (2:1.1.24-1ubuntu3) …
Selecting previously unselected package python-tdb.
Preparing to unpack …/python-tdb_1.3.8-2_amd64.deb …
Unpacking python-tdb (1.3.8-2) …
Selecting previously unselected package python-samba.
Preparing to unpack …/python-samba_2%3a4.3.6+dfsg-1ubuntu1_amd64.deb …
Unpacking python-samba (2:4.3.6+dfsg-1ubuntu1) …
Selecting previously unselected package rpcbind.
Preparing to unpack …/rpcbind_0.2.3-0.2_amd64.deb …
Unpacking rpcbind (0.2.3-0.2) …
Selecting previously unselected package samba-common-bin.
Preparing to unpack …/samba-common-bin_2%3a4.3.6+dfsg-1ubuntu1_amd64.deb …
Unpacking samba-common-bin (2:4.3.6+dfsg-1ubuntu1) …
Selecting previously unselected package snmp.
Preparing to unpack …/snmp_5.7.3+dfsg-1ubuntu4_amd64.deb …
Unpacking snmp (5.7.3+dfsg-1ubuntu4) …
Selecting previously unselected package monitoring-plugins-standard.
Preparing to unpack …/monitoring-plugins-standard_2.1.2-2ubuntu2_amd64.deb …
Unpacking monitoring-plugins-standard (2.1.2-2ubuntu2) …
Selecting previously unselected package monitoring-plugins.
Preparing to unpack …/monitoring-plugins_2.1.2-2ubuntu2_all.deb …
Unpacking monitoring-plugins (2.1.2-2ubuntu2) …
Selecting previously unselected package nagios-plugins.
Preparing to unpack …/nagios-plugins_2.1.2-2ubuntu2_all.deb …
Unpacking nagios-plugins (2.1.2-2ubuntu2) …
Processing triggers for libc-bin (2.23-0ubuntu2) …
Processing triggers for man-db (2.7.5-1) …
Processing triggers for systemd (229-3ubuntu2) …
Processing triggers for ureadahead (0.100.0-19) …
Processing triggers for ufw (0.35-0ubuntu1) …
Setting up libapr1:amd64 (1.5.2-3) …
Setting up libaprutil1:amd64 (1.5.4-1build1) …
Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.4-1build1) …
Setting up libaprutil1-ldap:amd64 (1.5.4-1build1) …
Setting up liblua5.1-0:amd64 (5.1.5-8) …
Setting up apache2-bin (2.4.18-2ubuntu1) …
Setting up apache2-utils (2.4.18-2ubuntu1) …
Setting up apache2-data (2.4.18-2ubuntu1) …
Setting up apache2 (2.4.18-2ubuntu1) …
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Setting up liblockfile-bin (1.09-6ubuntu1) …
Setting up liblockfile1:amd64 (1.09-6ubuntu1) …
Setting up samba-common (2:4.3.6+dfsg-1ubuntu1) …

Creating config file /etc/samba/smb.conf with new version
Setting up smbclient (2:4.3.6+dfsg-1ubuntu1) …
Setting up libtirpc1:amd64 (0.2.5-1) …
Setting up postfix (3.0.4-5build1) …
Adding group `postfix’ (GID 129) …
Done.
Adding system user `postfix’ (UID 122) …
Adding new user `postfix’ (UID 122) with group `postfix’ …
Not creating home directory `/var/spool/postfix’.
Creating /etc/postfix/dynamicmaps.cf
Adding group `postdrop’ (GID 130) …
Done.
setting myhostname: ubuntu
setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: ubuntu, localhost.localdomain, , localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.

Postfix is now set up with a default configuration. If you need to make
changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run ‘/etc/init.d/postfix reload’.

Running newaliases
Setting up javascript-common (11) …
apache2_invoke: Enable configuration javascript-common
Setting up php-common (1:35ubuntu6) …
Setting up php7.0-common (7.0.4-5ubuntu2) …

Creating config file /etc/php/7.0/mods-available/calendar.ini with new version

Creating config file /etc/php/7.0/mods-available/ctype.ini with new version

Creating config file /etc/php/7.0/mods-available/exif.ini with new version

Creating config file /etc/php/7.0/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.0/mods-available/ftp.ini with new version

Creating config file /etc/php/7.0/mods-available/gettext.ini with new version

Creating config file /etc/php/7.0/mods-available/iconv.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo.ini with new version

Creating config file /etc/php/7.0/mods-available/phar.ini with new version

Creating config file /etc/php/7.0/mods-available/posix.ini with new version

Creating config file /etc/php/7.0/mods-available/shmop.ini with new version

Creating config file /etc/php/7.0/mods-available/sockets.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.0/mods-available/tokenizer.ini with new version
Setting up php7.0-json (7.0.4-5ubuntu2) …

Creating config file /etc/php/7.0/mods-available/json.ini with new version
Setting up php7.0-opcache (7.0.4-5ubuntu2) …

Creating config file /etc/php/7.0/mods-available/opcache.ini with new version
Setting up php7.0-readline (7.0.4-5ubuntu2) …

Creating config file /etc/php/7.0/mods-available/readline.ini with new version
Setting up php7.0-cli (7.0.4-5ubuntu2) …
update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/7.0/cli/php.ini with new version
Setting up libapache2-mod-php7.0 (7.0.4-5ubuntu2) …

Creating config file /etc/php/7.0/apache2/php.ini with new version
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php7.0
Setting up libapache2-mod-php (1:7.0+35ubuntu6) …
Setting up libdbi1:amd64 (0.9.0-4) …
Setting up libjs-jquery (1.11.3+dfsg-4) …
Setting up mysql-common (5.7.11-0ubuntu5) …
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libmysqlclient20:amd64 (5.7.11-0ubuntu5) …
Setting up libnet-snmp-perl (6.0.1-2) …
Setting up libpq5:amd64 (9.5.2-1) …
Setting up libsnmp30:amd64 (5.7.3+dfsg-1ubuntu4) …
Setting up nagios-images (0.8) …
Setting up monitoring-plugins-common (2.1.2-2ubuntu2) …
Setting up monitoring-plugins-basic (2.1.2-2ubuntu2) …

Creating config file /etc/nagios-plugins/config/apt.cfg with new version

Creating config file /etc/nagios-plugins/config/dhcp.cfg with new version

Creating config file /etc/nagios-plugins/config/disk.cfg with new version

Creating config file /etc/nagios-plugins/config/dummy.cfg with new version

Creating config file /etc/nagios-plugins/config/ftp.cfg with new version

Creating config file /etc/nagios-plugins/config/http.cfg with new version

Creating config file /etc/nagios-plugins/config/load.cfg with new version

Creating config file /etc/nagios-plugins/config/mail.cfg with new version

Creating config file /etc/nagios-plugins/config/news.cfg with new version

Creating config file /etc/nagios-plugins/config/ntp.cfg with new version

Creating config file /etc/nagios-plugins/config/ping.cfg with new version

Creating config file /etc/nagios-plugins/config/procs.cfg with new version

Creating config file /etc/nagios-plugins/config/real.cfg with new version

Creating config file /etc/nagios-plugins/config/ssh.cfg with new version

Creating config file /etc/nagios-plugins/config/tcp_udp.cfg with new version

Creating config file /etc/nagios-plugins/config/telnet.cfg with new version

Creating config file /etc/nagios-plugins/config/users.cfg with new version
Setcap for check_icmp and check_dhcp worked!
Setting up nagios-plugins-basic (2.1.2-2ubuntu2) …
Setting up python-crypto (2.6.1-6build1) …
Setting up python-ldb (2:1.1.24-1ubuntu3) …
Setting up python-tdb (1.3.8-2) …
Setting up python-samba (2:4.3.6+dfsg-1ubuntu1) …
Setting up rpcbind (0.2.3-0.2) …
Setting up samba-common-bin (2:4.3.6+dfsg-1ubuntu1) …
Setting up snmp (5.7.3+dfsg-1ubuntu4) …
Setting up monitoring-plugins-standard (2.1.2-2ubuntu2) …

Creating config file /etc/nagios-plugins/config/breeze.cfg with new version

Creating config file /etc/nagios-plugins/config/disk-smb.cfg with new version

Creating config file /etc/nagios-plugins/config/dns.cfg with new version

Creating config file /etc/nagios-plugins/config/flexlm.cfg with new version

Creating config file /etc/nagios-plugins/config/fping.cfg with new version

Creating config file /etc/nagios-plugins/config/games.cfg with new version

Creating config file /etc/nagios-plugins/config/hppjd.cfg with new version

Creating config file /etc/nagios-plugins/config/ifstatus.cfg with new version

Creating config file /etc/nagios-plugins/config/ldap.cfg with new version

Creating config file /etc/nagios-plugins/config/mailq.cfg with new version

Creating config file /etc/nagios-plugins/config/mrtg.cfg with new version

Creating config file /etc/nagios-plugins/config/mysql.cfg with new version

Creating config file /etc/nagios-plugins/config/netware.cfg with new version

Creating config file /etc/nagios-plugins/config/nt.cfg with new version

Creating config file /etc/nagios-plugins/config/pgsql.cfg with new version

Creating config file /etc/nagios-plugins/config/rpc-nfs.cfg with new version

Creating config file /etc/nagios-plugins/config/snmp.cfg with new version
Setting up monitoring-plugins (2.1.2-2ubuntu2) …
Setting up nagios-plugins (2.1.2-2ubuntu2) …
Processing triggers for ufw (0.35-0ubuntu1) …
Setting up bsd-mailx (8.1.2-0.20160123cvs-2) …
update-alternatives: using /usr/bin/bsd-mailx to provide /usr/bin/mailx (mailx) in auto mode
Setting up nagios3-common (3.5.1.dfsg-2.1ubuntu1) …
Adding system-user for nagios
Setting up nagios3-cgi (3.5.1.dfsg-2.1ubuntu1) …

Creating config file /etc/nagios3/apache2.conf with new version
enabling Apache2 config…
apache2_invoke: Enable module cgi
apache2_invoke: Enable configuration nagios3
Setting up nagios3-core (3.5.1.dfsg-2.1ubuntu1) …
Setting up nagios3 (3.5.1.dfsg-2.1ubuntu1) …
Processing triggers for libc-bin (2.23-0ubuntu2) …
Processing triggers for systemd (229-3ubuntu2) …
Processing triggers for ureadahead (0.100.0-19) …
root@ubuntu:~#

Step 2: Start Nagios server and access nagios server via Web interface

root@ubuntu:~# /etc/init.d/nagios3 restart
[ ok ] Restarting nagios3 (via systemctl): nagios3.service.
root@ubuntu:~# /etc/init.d/apache2 restart
[ ok ] Restarting apache2 (via systemctl): apache2.service.
root@ubuntu:~#

Access to Nagios Server via web browser: http://x.x.x.x/nagios3

Username/pass: nagiosadmin/nagiosadmin

Thanks for using Ithelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>