Nagios Loading information in Apache

Source: Internet
Author: User

The basic installation is complete and now configures Apacheso that it can be accessed using the Web interface

Vim/usr/local/apache2/conf/httpd.conf

# Add a row

Include conf/extra/nagios.conf

# Modify and group

User Nagios

Group Nagios

then create the nagios.conf file

Vim/usr/local/apache2/conf/extra/nagios.conf

# Add Content

#setting for Nagios

scriptalias/nagios/cgi-bin/"/usr/local/nagios/sbin/"

# Notice The difference between /usr/local/nagios/sbin/ and /usr/local/nagios/sbin

<directory "/usr/local/nagios/sbin" >

# Sslrequiressl

Options execcgi

AllowOverride None

Order Allow,deny

Allow from all

# Order Deny,allow

# Deny from all

# Allow from 127.0.0.1

AuthName "Nagios Access"

AuthType Basic

authuserfile/usr/local/nagios/etc/htpasswd

Require Valid-user

</Directory>

Alias/nagios "/usr/local/nagios/share/"

<directory "/usr/local/nagios/share/" >

# Sslrequiressl

Options None

AllowOverride None

Order Allow,deny

Allow from all

# Order Deny,allow

# Deny from all

# Allow from 127.0.0.1

AuthName "Nagios Access"

AuthType Basic

authuserfile/usr/local/nagios/etc/htpasswd

Require Valid-user

</Directory>

/USR/LOCAL/APACHE2/BIN/HTPASSWD-C/USR/LOCAL/NAGIOS/ETC/HTPASSWD Nagiosadmin # Create a user for background access to Nagios

/usr/local/apache2/bin/apachectl start

/etc/init.d/nagios start

http://192.168.134.141/nagios/# Access nagios via IP


This article is from the "11736718" blog, please be sure to keep this source http://11746718.blog.51cto.com/11736718/1876240

Nagios Loading information in Apache

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.