How to install Naemon on Ubuntu
How to install Naemon on Ubuntu
Naemon is a free and open source Network Monitoring tool based on Nagios. Naemon can support protocols like SMTP, POP3, HTTP, NNTP, PING, FTP etc. It monitors network and infrastructure monitoring software application and also offers monitoring and alerting services for servers, switches, application and services. This tutorial explains the installation procedure of Naemon on Ubuntu.
To know more about the installation procedure of Naemon on CentOS 7, visit
https://www.linuxhelp.com/how-to-install-naemon-on-centos-7/
Installation procedure
Before installing the Naemon, the LAMP environment is required on the target server because the Naemon application needs a LAMP environment to work properly. After setting up the LAMP environment use the below command to install the dependent packages required for Naemon.
root@linuxhelp1:~# apt-get install bsd-mailx apache2 apache2-utils libapache2-mod-fcgid libfontconfig1 libjpeg62 libgd3 libxpm4 xvfb libmysqlclient20 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version (2.4.18-2ubuntu3.1).
apache2-utils is already the newest version (2.4.18-2ubuntu3.1).
The following additional packages will be installed:
fontconfig-config liblockfile-bin liblockfile1 postfix xserver-common
Suggested packages:
libgd-tools procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin dovecot-common postfix-cdb postfix-doc
.
.
.
Setting up xvfb (2:1.18.4-0ubuntu0.2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Next step is to add Consol Labs repository to create the apt database by executing the following command.
root@linuxhelp1:~# gpg --keyserver keys.gnupg.net --recv-keys F8C1CA08A57B9ED7 gpg: keyring `/home/user1/.gnupg/secring.gpg' created gpg: keyring `/home/user1/.gnupg/pubring.gpg' created gpg: requesting key A57B9ED7 from hkp server keys.gnupg.net gpg: /home/user1/.gnupg/trustdb.gpg: trustdb created gpg: key A57B9ED7: public key " Sven Nierlein < sven.nierlein@consol.de> " imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) root@linuxhelp1:~# gpg --armor --export F8C1CA08A57B9ED7 | apt-key add - OK root@linuxhelp1:~# echo " deb http://labs.consol.de/repo/stable/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/labs-consol-stable.list
Now update the added repositories by using the apt-get update command.
root@linuxhelp1:~# apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://labs.consol.de/repo/stable/ubuntu xenial InRelease [26.4 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 http://labs.consol.de/repo/stable/ubuntu xenial/main amd64 Packages [7,084 B]
Get:6 http://labs.consol.de/repo/stable/ubuntu xenial/main i386 Packages [6,256 B]
Get:7 http://labs.consol.de/repo/stable/ubuntu xenial/main Translation-en [32 B]
Get:8 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Fetched 346 kB in 2s (129 kB/s)
Reading package lists... Done
To install Naemon application, execute the following command and press y to continue with the installation.
root@linuxhelp1:~# apt-get install naemon -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libdbi1 libnaemon libnet-snmp-perl libpq5 libsmbclient libthruk libtirpc1 libwbclient0 monitoring-plugins monitoring-plugins-basic monitoring-plugins-common
monitoring-plugins-standard naemon-core naemon-livestatus naemon-thruk nagios-plugins python-crypto python-ldb python-samba python-tdb rpcbind samba-common samba-common-bin
samba-libs smbclient snmp thruk thruk-base thruk-plugin-reporting
Suggested packages:
libcrypt-des-perl icinga | icinga | nagios3 nagios-plugins-contrib fping qstat python-crypto-dbg python-crypto-doc heimdal-clients cifs-utils
.
.
.
Setting up monitoring-plugins (2.1.2-2ubuntu2) ...
Setting up nagios-plugins (2.1.2-2ubuntu2) ...
Setting up thruk-plugin-reporting (2.14) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...
Once the installation has been completed, Naemon will have default username and password as “ thrukadmin” . If the user wishes to change the password use the below command and change it to any password.
root@linuxhelp1:~# htpasswd /etc/thruk/htpasswd thrukadmin
New password:
Re-type new password:
Updating password for user thrukadmin
Restart the services for Naemon and apache2 by executing the following command.
root@linuxhelp1:~# systemctl restart naemon
root@linuxhelp1:~# systemctl restart apache2
Now open the web browser and run the link http://192.168.7.234/naemon. The login page of Naemon appears in the screen.
IP address should replaced with your IP address.
Wasn' t that an easy installation procedure? The Naemon is has the ability to define network host hierarchies using ' parent' hosts, allowing the detection of and distinction between hosts that are down or unreachable.
Comments ( 0 )
No comments available