As a monitoring system,NagiosIt is outstanding in all aspects, especially inLinuxWhen running, you can monitor and collect information for operations.
Nagios runs on a Linux or Unix operating system. Before installation, make sure that the operating system supports the TCP/IP protocol and has a C-language compiler (such as gcc ). If you do not have a web server such as apache, install it in advance. Download the main Nagios program, plug-in, and installation documents from the official Nagois website. The latest version is Nagios 3.0rc2. Nagios is an open-source project, and its installation is relatively simple. It can be completed step by step according to the document.
If Nagios is installed in the/usr/local directory, run the following command:
- /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
-
This operation is used to check whether the nagios configuration is correct in advance. If no error occurs, run Nagios.
Service nagios start (which can be followed by restart, stop, reload.). You can also start it like this:
- /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
-
After Nagios starts normally, log on to nagios CGIs and open the browser. Enter http: // host IP Address/nagios/. If the configuration is correct, the nagios monitoring interface is displayed, then, you can view the detailed data of the host being monitored when no one is found. If "Internal Server Error" is displayed, it may be that the system is installed on the local machine and is running Redhat Linux. first, check whether Linux is in the Enforcing mode getenforce. Then, set Linux to the permissive mode setenforce 0 and re-open the browser to see the services monitored by Nagios.
Visit the Server web interface of nagios, as shown in figure 2.
Access interface 2
As described above, you have learned how to run Nagios on Linux. I hope you can master and apply Nagios!
Edit recommendations]
- Monitoring windows Local Information Using Nagios
- Acceptance of Nagios Configuration
- Preparations for Nagios Configuration
- Nagios Configuration Guide
- Nagios installation Trilogy
- How Nagios network monitoring works
- Nagios introduction and functions