Install and configure Nagios monitoring in Linux
Nagios installation Configuration:
Nagios http://www.nagios.org
Environment setup:
CentOS6.6 192.168.11.30 serves as the server.
Centos6.6 192.168.11.100 as the client
1. Install Nagios-server (192.168.11.30)
Centos6's default yum source does not contain the nagios-related rpm package, but we can install an epel extension Source:
Yum install-y epel-release
Install nagios-related packages
Yum install-y httpd nagios-plugins-all nrpe nagios-plugins-nrpe
Set the user and password for logging on to the nagios Background:
Htpasswd-c/etc/nagios/passwd nagiosadmin
Nagios-v/etc/nagios. cfg check for configuration file errors
Start the service:
Service httpd start
Service nagios start
Browser access: http: // 192.168.11.30/nagios/
In the pop-up authentication dialog box, enter the nagiosadmin and password to log on to the nagios page;
List servers or monitoring hosts on the left side;
Services lists the eight monitored service items (system load, user, HTTP, ping, disk partition, SSH, swap partition, and system process)
-------------------------------------- Split line --------------------------------------
Configure Mrtg in Ubuntu to monitor Nginx and server system resources
Use snmp + Mrtg to monitor Linux systems
Mrtg server construction (Network Traffic Monitoring)
Network Monitor Nagios Overview
Nagios construction and Configuration
Build a Nagios monitoring platform in the Nginx Environment
Configure the basic Nagios System on RHEL5.3 (using Nagios-3.1.2)
CentOS 5.5 + Nginx + Nagios monitoring and control terminal installation and Configuration Guide
Install Nagios Core for Ubuntu 13.10 Server
-------------------------------------- Split line --------------------------------------
2. Install Nagios-client (192.168.11.100)
On the client machine
Yum install-y epel-release
Yum install-y nagios-plugins-all nrpe nagios-plugins-nrpe
Edit the configuration file:
Vim/etc/nagios/nrpe. cfg
Find "allowed_hosts = 127.0.0.1" and change "allowed_hosts = 127.0.0.1, 192.168.11.30" to the server ip address.
Change "dont_blame_nrpe = 0" to "dont_blame_nrpe = 1"
Start the client
/Etc/init. d/nrpe start
For more details, please continue to read the highlights on the next page: