Nagios ServiceThe configuration is as follows:
Figure-Nagios
Custom Configuration
The configuration file of the sample is installed in the directory/usr/local/nagios/etc by default. You can configure Nagios to run the sample file properly. You only need to make a simple modification...
Use the editor software you are good at to edit this/usr/local/nagios/etc/objects/contacts. in the cfg configuration file, change the email information in the contact definition information of the e-mail address nagiosadmin to your EMail information to receive alerts.
Vi/usr/local/nagios/etc/objects/contacts. cfg
Configure WEB interfaces
Install the Nagios WEB configuration file to the conf. d directory of Apache.
Make install-webconf
Create a nagiosadmin user for logging on to Nagios WEB interface. Write down the logon password you set and you will use it later.
Htpasswd-c/usr/local/nagios/etc/htpasswd. users nagiosadmin
Restart the Apache service to make the settings take effect.
Service httpd restart