Free Hosting Online for WorkStations

< Previous | Contents | Next >

2.1. Installation


First, on server01 install the nagios package. In a terminal enter:


sudo apt install nagios3 nagios-nrpe-plugin


You will be asked to enter a password for the nagiosadmin user. The user's credentials are stored in /etc/ nagios3/htpasswd.users. To change the nagiosadmin password, or add additional users to the Nagios CGI scripts, use the htpasswd that is part of the apache2-utils package.


For example, to change the password for the nagiosadmin user enter:


sudo htpasswd /etc/nagios3/htpasswd.users nagiosadmin


To add a user:


sudo htpasswd /etc/nagios3/htpasswd.users steve


Next, on server02 install the nagios-nrpe-server package. From a terminal on server02 enter:


sudo apt install nagios-nrpe-server


NRPE allows you to execute local checks on remote hosts. There are other ways of accomplishing this through other Nagios plugins as well as other checks.


Top OS Cloud Computing at OnWorks: