Cluster Monitoring Nagios installed on Ubuntu

Source: Internet
Author: User

Nagios Enterprise Cluster Monitoring

 

Nagios is a monitoring system that monitors system running status and network information. Nagios can monitor specified local or remote hosts and services, and provide exception notifications.

Nagios can run on Linux/Unix platforms and provides an optional browser-based Web interface for system administrators to view network status, various system problems, and logs.

Add User:
Useradd-M Nagios
Passwd Nagios

Add a user group (note: the user group already exists after ubuntu8.04)
Groupadd Nagios
Usermod-G Nagios

Install related software:
Apt-Get install apache2 PhP5 libssl0.9.8 libssl-dev OpenSSL

Download Nagios core, Nagios plugins, and Nagios Addons:
Wget http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.2.1/nagios-3.2.1.tar.gz
Wget http://downloads.sourceforge.net/project/nagiosplug/nagiosplug/1.4.15/nagios-plugins-1.4.15.tar.gz
Wget http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.12/nrpe-2.12.tar.gz

Install the Nagios masterProgram:
Tar-xzvf nagios-3.2.1.tar.gz
CD nagios-3.2.1
./Configure -- prefix =/usr/local/Nagios
Make all
Make install
Make install-init # Install Initialization Script available/etc/init. d/Nagios start Nagios
Make install-commandmode
Make install-config

Install Nagios-plugins:
Tar-xzvf nagios-plugins-1.4.15.tar.gz
Mkdir/usr/local/Nagios-plugins
CD nagios-plugins-1.4.15
./Configure -- prefix =/usr/local/Nagios-plugins
Make all
Make install
MV/usr/local/Nagios-plugins/libexec/usr/local/Nagios

Install nrpe:
Tar-xzvf nrpe-2.12.tar.gz
CD nrpe-2.12
./Configure -- enable-SSL -- enable-command-ARGs
Make all
CP src/check_nrpe/usr/local/Nagios/libexec

Now you can start Nagios:
/Etc/init. d/Nagios start

Configure Apache:
Append an object to the Apache configuration file httpd. conf.
ScriptAlias/Nagios/cgi-bin/usr/local/Nagios/sbin/
<Directory "/usr/local/Nagios/sbin/">
AllowOverride authconfig
Options execcgi
Order allow, deny
Allow from all
</Directory>
Alias/Nagios/usr/local/Nagios/share/
<Directory "/usr/local/Nagios/share">
Options none
AllowOverride authconfig
Order allow, deny
Allow from all
Authname "Nagios access"
Authtype basic
Authuserfile/usr/local/Nagios/etc/. htpasswd
Require valid-user
</Directory>

Generate user name and password:
/Usr/bin/htpasswd-C/usr/local/Nagios/etc/. htpasswd Nagios

Modify/usr/local/Nagios/etc/cgi. cfg and modify use_authentication = 1 to use_authentication = 0, which means no verification is required. Otherwise, some pages will not be displayed.

Check whether the configuration file has an error:
/Usr/local/Nagios/bin/Nagios-V/usr/local/Nagios/etc/Nagios. cfg

 

 

Task: restart Apache 2 server/restart apache service

#/Etc/init. d/apache2 restart
Or
$ Sudo/etc/init. d/apache2 restart

Test: http: // 192.168.0.244/Nagios/

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.