Run Nagios on Linux

Source: Internet
Author: User

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:

 
 
  1. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg  
  2.  

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:

 
 
  1. /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg  
  2.  

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

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.