Nagios Monitoring System under Solaris

Source: Internet
Author: User
Tags install openssl openssl require valid command access

Nagios Monitoring System under Solaris

The article will introduce the installation process of Nagios in Solaris10, including the compilation and installation of source code; Apache installation, Nagios CGI configuration; Nagios monitoring configuration and so on.

The Nagios monitoring system under Solaris is described below:

Figure-nagios

The article will introduce the installation process of Nagios in Solaris10, including the compilation and installation of source code; Apache installation, Nagios CGI configuration; Nagios monitoring configuration and so on.

Environment, resource preparation

Gcc-3.4.6-sol10-x86-local.gz

Libiconv-1.11-sol10-x86-local.gz

Libintl-3.4.0-sol10-x86-local.gz

Make-3.81-sol10-x86-local.gz

Openssl-0.9.8h-sol10-x86-local.gz

Gd-2.0.35-sol10-x86-local.gz

Httpd-2.2.4.tar.gz

Nagios-3.0.3.tar.gz

Nagios-plugins-1.4.11.tar.gz

Nrpe-2.12.tar.gz

1. Install Nagios

# groupadd Nagios # useradd-g nagios-d/usr/local/nagios Nagios # gunzip # tar/nagios-3.0.6.tar.gz. xvf. tar.gz # CD./nagios-3.0.6.tar.gz #/configure--prefix=/usr/local/nagios--with-nagios-user=nagios

--with-nagios-group=nagios--with-gd-lib=/usr/sfw/lib

--with-gd-inc=/usr/sfw/include

# make all # make Fullinstall # make Install-config

2. Install OpenSSL

# gunzip/openssl-0.9.8j-sol10-sparc-local.gz # pkgadd-d/openssl-0.9.8j-sol10-sparc-local # Export LD_LIBRARY_PATH= /usr/local/ssl/lib: $LD _library_path

3. Installation of Nagios Plugins

# gunzip./nagios-plugins-1.4.13.tar.gz # tar xvf./nagios-plugins-1.4.13.tar # cd nagios-plugins-1.4.13 #/configure--w Ithout-mysql--prefix=/usr/local/nagios--with-openssl=/usr/local/ssl # make * Install # make clean # chown-r Nagios : nagios/usr/local/nagios/libexec

4. Configure Apache

Append the following content to the/etc/apache2/httpd.conf file

#setting for Nagios

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

AuthType Basic

Options execcgi

AllowOverride None

Order Allow,deny

Allow from all

AuthName "Nagios Access"

authuserfile/usr/local/nagios/etc/htpasswd

Require Valid-user

Alias/nagios/usr/local/nagios/share

AuthType Basic

Options None

AllowOverride None

Order Allow,deny

Allow from all

AuthName "Nagios Access"

authuserfile/usr/local/nagios/etc/htpasswd

Require Valid-user

5. Generate login user and authentication password

#/usr/apache2/bin/htpasswd-c/USR/LOCAL/NAGIOS/ETC/HTPASSWD

User_name here is the user name that you need to enter for the login Nagios Web application www.britepic.org

Follow the prompts to enter the password you want to set

Configure/USR/LOCAL/NAGIOS/ETC/CGI.CFG, adding users Edison

................. .................

# system/process Information ACCESS

# This option are a comma-delimited list of all usernames

# have access to viewing the Nagios process information as

# provided by the Extended information CGI (extinfo.cgi). By

# default, *no one* has access to that unless you choose to

# NOT use authorization. You could use a asterisk (*) to

# Authorize any user who has authenticated to the Web server.

Authorized_for_system_information=nagiosadmin,edison

# CONFIGURATION Information ACCESS

# This option are a comma-delimited list of all usernames

# can view all configuration information (hosts, commands, etc).

# By default, users can only view configuration information

# for the hosts and services they are contacts for. Use

# an asterisk (*) to authorize any user who has authenticated

# to the Web server.

Authorized_for_configuration_information=nagiosadmin,edison

# system/process COMMAND ACCESS

# This option are a comma-delimited list of all usernames

# can issue shutdown and restart commands to Nagios via the

# command CGI (cmd.cgi). Users in this list can also change

# The program mode to active or standby. By default, *no one*

# has access to the ' unless ' to ' not ' use authorization.

# You could use a asterisk (*) to authorize any user who has

# authenticated to the Web server.

Authorized_for_system_commands=nagiosadmin,edison

# GLOBAL Host/service VIEW ACCESS

# These two options are comma-delimited lists of all usernames

# can view information for all hosts and services that are being

# monitored. By default, users can only view information

# for hosts or services ' they are contacts for (unless

# You are choose to don't use authorization. You could use an asterisk (*)

# to authorize any user who has authenticated to the Web server.

Authorized_for_all_services=nagiosadmin,edison

Authorized_for_all_hosts=nagiosadmin,edison

# GLOBAL Host/service COMMAND ACCESS

# These two options are comma-delimited lists of all usernames

# can issue host or service related commands via the command

# CGI (cmd.cgi) for all hosts and services that are being monitored.

# By default, the users can only issue commands for hosts or services

# That's they are contacts for (unless you choose

# authorization). You could use a asterisk (*) to authorize any

# user who has authenticated to the Web server.

Authorized_for_all_service_commands=nagiosadmin,edison

Authorized_for_all_host_commands=nagiosadmin,edison

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.