Content Overview: concept, composition and working principle of 1.Nagios2. Installing and configuring the Nagios monitoring SystemDaily maintenance and management of 3.Nagios4. Use plugins to extend Nagios's monitoring capabilities
1 The concept, composition and working principle of Nagios
1.1 Necessity of using Nagios
Extensive IT infrastructure system management is cumbersome and complex
Reduce management and maintenance costs
Optimizing system and utilizing service resources rationally
Monitoring Software Limitations:
There is no software that can monitor all of the content.
Make the tools fully adaptable to your needs and customize the work you need to do
1.2 What is Nagios[nagios Ain ' t gonnalnsist on sainthood]
Program body is compiled with ANSI C
Nagios is an open source, free network monitoring tool. Ability to monitor Windows\liunx\unix's host status. Switches, routers and other network equipment, printers and so on. When the system or service problems, the first time in the mail \ SMS notify operations personnel. After the recovery can also be sent by mail \ SMS notification.
Structure of the 1.3Nagios
Nagios Branch [core] and [plugin] two parts
The core of Nagios only provides very little monitoring. To build a sound monitoring management system. You also need to install the appropriate plugin for Nagios. Plugins can be downloaded from the website. You can also write your own
Nagios must be running under the Linux/unix platform. GCC compiler support is required. Nagios also provides a web monitoring interface. [apache\php]
1.4Nagios achievable features
1.4.1: monitoring local or remote host resources (memory \ process \ disk, etc.)
1.4.2: Monitoring Network Service resources (HTTP\PING\FTP\SMTP\POP3, etc.)
1.4.3: Allows users to write their own plugins to monitor specific services
1.4.4: When an exception is encountered by the monitored object. You can notify the manager by mail \ SMS, etc.
1.4.5: Event handlers can be defined beforehand. Automatically invoke the specified handler when a host or service fails
1.4.6: Monitoring the running state of individual hosts or services through a web interface
1.5 Nagios Monitoring Implementation principle
Nagios software needs to be installed on a separate server to run. This machine is called the "Monitoring Center". Linux and Unix are available. Hosts that need to be monitored run a background run of the Nagios software that communicates with the monitoring Center. The Monitoring Center server communicates with the remote daemon based on the instructions in the read configuration file. and instructs the remote daemon to perform the necessary checks.
The monitored machine can be any host that can communicate with the host. "Nrpe Daemon"
Basic concepts of NAGIOS_ monitoring