method );
7. You can define the event handle function to locate more problems when a host or service event occurs;
8. Automatic Log rollback;
9. Support and monitor the redundancy of hosts;
10. An optional WEB interface is used to view the current network status, notification and fault history, and log files.
Ii. Install Nagios basic support kit and add users
1). installation kit
# Yum install httpd gcc glibc-common gd-devel xinetd openssl-devel
2)
Php4nagios the connection on the monitor page and then add a index.php,Http://nagios.xxxx.com/pnp4nagios/index.php/index.php/graph?host=localhostsrv=PINGAnd that's why I want to add this sentence rewrite ^/pnp4nagios/index.php/index.php/(. *) $/pnp4nagios/index.php/$1; The cause of a break;
Second, install Perl MySQL extensions
# yum Install Perl-class-dbi-mysql
Three, check_mysqld.php and check_mysqld.pl
1, download
Http://exchange.nagios.org/c
Operation Process 1) create an account and switch to the root user su-l to create an account named nagios with a given logon password usrsbinuseraddnagiospasswdnagios. Create a user group named nagcmd to execute External commands from the Web interface. Add both nagios users and apache users to this group. Usrsbingroupaddn operation process
1) create an account
Switch to root user
su -l
CreateNagiosAccount
commands:sudo apt-get install autoconf gcc libc6 build-essential BC gawk DC gettext Libmcrypt-dev Libssl-dev make unzip apache2 APA Che2-utils php5 Libgd2-xpm-dev1) Create account informationBecome the root user.Sudo-sCreate a new nagios user account and give it a password./usr/sbin/useradd-m-s/bin/bash nagiospasswd NagiosYou'll need to also add a nagios group (if it's not created by default)./usr/sbin/gro
obtain more problem localization when the host or the service event occurs;8, automatic log rollback;9, can support and implement redundant monitoring of the host;10. The optional web interface is used to view current network status, notification and fault history, log files, and so on.Ii. Installing the Nagios Foundation Support kit and adding users1). Mounting kit# yum Install httpd gcc glibc glibc-common gd gd-devel xinetd openssl-devel2). Create
servers. Environment: install Centos according to this guide. the installation directory is as follows: installing Nagios and plug-ins to/usr/local/nagios will be configured as the Web interface for monitoring several main services (such as CPU load and disk utilization) of the local system: http://localhost/nagios/ 2.1 make sure that your server is installed: y
, so chgrp nagios/etc/mail.rc; chmod 640/etc/mail.rc;4) If you want to actively detect the remote server MySQL, then install the optional components above;5) Set the httpd to boot statusCreate a nagcmd group (optional, I did not take this step in the test because I thought it was a bit superfluous, but according to the official guidelines)/usr/sbin/groupadd Nagcmd/usr/sbin/usermod-a-G Nagcmd Nagios/usr/sbin
The latest stable version is installed here:Nagios-4.0.8Nagios-plugins-2.0.3The installation is as follows:Preparations before installationTo use the root user to operate the server, the following software environments are required:ApachePHPDCC compilerGD development LibraryYou can use yum for installation:Yum install httpd phpYum install gcc glibc-commonYum install gd-devel Create users and user groups Useradd-m nagiosPasswd nagiosCreate a newNagcmdGroup for allowing external commands
nagiosUsermod-a-G apache nagiosTar zxf nagios-3.2.3.tar.gzCd nagios-3.2.3./Configure -- with-command-group = nagcmdMake allMake installMake install-initMake install-commandmodeMake install-configMake install-webconfHtpasswd-c/usr/local/nagios/etc/htpasswd. users nagiosadminEnter the password and remember it, because it is also the password to be entered when the
= nagios
Make make install
Wget http://sourceforge.net/projects/nagios-cn/files/latest/download
Tar-xjf nagios-cn-3.2.3.tar.bz2
Cd nagios-cn-3.2.3
./Configure
Make all
Make install
Http://sourceforge.net/projects/nagios/files/nr
preparationsCheck that your server is installed:ApacheGCC compilerGD library and Development LibraryRun the following command to installYum install httpdYum install gccYum install glibc-commonYum install GD Gd-devel2.2 switch Root UserSu-lCreate a Nagios account and give a logon Password/Usr/sbin/useradd NagiosPasswd NagiosCreate a user group named nagcmd for web interfaces (mainly about Web permissions ). Add both
1, Nrpe realize the principle of remote host monitoring
Nrpe is a feature extension of Nagios that can execute plug-ins on remote Linux/unix hosts, providing some local information about the server to the Nagios monitoring platform by installing Nrpe artifacts and Nagios plug-ins on the remote server. For example, CPU load, memory usage, hard disk use, and so on
Nagios+centreon Introduction 1. Centreon is an open source it monitoring software developed by the French in 2003, originally named Oreon, and formally renamed Centreon in 2005. 2. Centreon can simply manage and configure Nagios, which is simpler and more straightforward than nagiosql. 3. Cooperation Process: ①, Nagios writes the monitoring data to the databa
Install Apache on the server first. Download the following software from http://www.nagios.org: nagios-3.2.3.tar.gznagios-plugins-1.4.15.tar.gznrpe-2.12.tar.gz install NagiosCore # Switch to root user su-l # Add na
Install Apache on the server first.
Download the following software from http://www.nagios.org:
Nagios-
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 i
httpd-devel php# yum Install gcc glibc glibc-common# yum Install GD Gd-devel
Two. Install Nagios softwareTo create a Nagios user and set a password:#/usr/sbin/useradd-m Nagios# passwd NagiosThe password does not actually set the line, because basically will not pass the user to log in. Bash can also be set directly into/sbin/nolgoin.
Next we create the Nagcmd
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.