Install the nagios monitoring system in Linux

Source: Internet
Author: User
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 notification functions. Nagios can run on Linux/Unix platforms and provides an optional browser-based Web interface for system administrators to view network status and various system problems, 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 notification functions. 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.

I. main features of Nagios:
1. monitoring network services (SMTP, POP3, HTTP, NNTP, PING, etc)
2. monitor host resources (processes, disks, etc)
3. simple plug-in design allows you to easily extend the monitoring function of Nagios
4. concurrent processing of services and other monitoring
5. error notification (via Email, Pager, or other user-defined methods)
6. you can specify a custom event processing controller.
7. an optional browser-based Web interface allows system administrators to view network status, various system problems, and logs.
8. you can view the system monitoring information on your mobile phone.

II. detailed installation steps:
1. create Nagios Users and Groups. Note that the user running Apache here is htdocs.
Useradd-m nagios
Groupadd nagios
Usermod-a-G nagios htdocs
2. Compile and install Nagios software
Tar zxvf nagios-3.2.3.tar.gz
Cd nagios-3.2.3
./Configure -- with-command-group = nagios -- with-httpd-conf =/usr/local/apache/conf/extra
Make all
Make install
Make install-init
Make install-config
Make install-commandmode
Make install-webconf
Cd ..
3. create a user name and password for logging on to the Web
/Usr/local/apache/bin/htpasswd-c/usr/local/nagios/etc/htpasswd. users nagiosadmin
4. Compile and install the Nagios plugin
Tar zxvf nagios-plugins-1.4.15.tar.gz
Cd nagios-plugins-1.4.15
./Configure -- with-nagios-user = nagios -- with-nagios-group = nagios
Make & make install
Cd ..
5. set Nagios startup
Chkconfig -- add nagios
Chkconfig -- level 2345 nagios on
6. adjust the Apache configuration file httpd. conf.
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_module modules/mod_mime.so
LoadModule status_module modules/mod_status.so
LoadModule alias_module modules/mod_alias.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule dir_module modules/mod_dir.so
Include conf/extra/nagios. conf
7. restart Apache
/Usr/local/apache/bin/apachectl restart
8. log on to the Nagios management page through Web
650) this. width = 650; "/>

Enter the account password to log on:
650) this. width = 650; "/>

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.