Configuration notes for nagios deployment (1)

Source: Internet
Author: User

DeploymentNagiosTo monitor network information, first configure.

It took several days to complete the nagios monitoring deployment for nearly 500 servers and multiple nodes. nagios clearly shows the topology, host status, and service status of the entire monitoring network. however, I will not post any information about the real network here, because this will have a lot of adverse effects. however, the mass production tools I used in the actual production process will be provided (that is, the shell for not playing the keyboard ).

System Environment: centos5.5 x86_64

Web: apache + php (yum installation)

Nagios: nagios 3.2.1

Nagios-plugins: 1.4.15

No remote host monitoring is involved, so the nrpe module is not involved.

Because the nagios page is generated using cgi, apache must support cgi first, as long as it is in httpd. add the following content after the conf file. However, if you have customized the nagios installation path, the actual content will prevail.

Let apache support cgi first

Remove the # Before the following line

# AddHandler cgi-script. cgi

Add directory

Scriptalias/nagios/cgi-bin/usr/local/nagios/sbin

Options ExecCGI

AllowOverride None

Order allow, deny

Allow from all

AuthName "nagios access"

AuthType Basic

AuthUserFile/usr/local/nagios/etc/htpasswd

Require valid-user

Alias/nagios/usr/local/nagios/share

Options None

AllowOverride None

Order allow, deny

Allow from all

AuthName "nagios access"

AuthType Basic

AuthUserFile/usr/local/nagios/etc/htpasswd

Require valid-user


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.