Installation method Please refer to Linux learning Note: Nagios installationClientSince my installation is using xinetd This daemon, I need to adjust the relevant configuration file[[emailprotected]~]#vi/etc/xinetd.d/nrpeservicenrpe{ flags= Ipv4socket_type=stream port =5666wait =nouser =nagios group=nagios server =/usr/local/
= nagiosMakeMake install
3rd compile and install nrpe-2.12.tar.gzTar-zxvf nrpe-2.12.tar.gzCd nrpe-2.12(Note: Before proceeding to the next step, ensure that openssl and openssl-devel have been installed on the host; otherwise, an error indicating that the ssl header file cannot be found will be prompted during compilation, compilation fails)./ConfigureMake allMa
Background: The unit selects Dell and HP two types of servers in the IDC room. For information on monitoring server hardware, especially RAID, Dell can monitor it using its own OMSA program process. However, HP does not have this aspect of monitoring, the disk in the server is the most prone to problems, the personal study of multi-day discovery can use the following way to monitor the HP server raid.Use Nagios to monitor your HP server's Raid:Premise
check_mem.sh.
2, and then modify the nrpe.cfg configuration file, restart Nrpe, the command is similar to the following.
wget http://download.chekiang.info/nagios/check_mem.shchmod +x check_mem.shChown Nagios:nagios check_mem.sh
Cat >>/usr/local/nagios/etc/nrpe.cfgCommand[check_mem]=/usr/local/nagios/libexec/check_
Nagios
Decompress the downloaded main Nagios program and compile it on a Linux machine. After compilation, make sure that the following sub-directories in the/usr/local/nagios directory exist. In addition, make sure that their owners are Nagios users and groups.
bin etc include libexec share
Configure Apache
Apach
24x7Notification_options W,u,c,rCheck_command check_nrpe!check_traffic//Same as the name in the command file7. Inspection TestCd/usr/local/nagios/libexec/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg8. Restart ServiceService Nagios Restart******************1
There are 2 main types of surveillance this time:
1.web Server
2.mysql Server
So first of all to ensure that Nginx/apache or MySQL service startup;
The following is the function Installmysql () script for the MySQL Monitor-side deployment:
Installmysql () {Yum Install xinetd-y service xinetd start CD $path useradd-s/sbin/nologin TAR-ZXVF nagios-plugins-1.4.14.tar.gz cd nagios-plugins-1.4.14./configure
functionality. Nagios can identify 4 status return information, i.e. 0 (OK) indicates normal state / Green, 1 (WARNING) ' indicates a warning / Span style= "font-family: ' italics ';" > yellow, 2 (CRITICAL) indicates a very serious error / red, 3 (UNKNOWN) / Span style= "font-family: ' italics ';" > dark yellow . Nagios determines the state of the monitored object based on the value return
to define the hierarchy of network hosts, allowing for step-by-step checks, starting from the parent hostNotify when a problem occurs with a service or host, via email, pager, SMS or any user-defined pluginAbility to customize the event handling mechanism to reactivate a faulty service or hostAutomatic log LoopingSupports redundant monitoringIncludes web interface to view current network status, notifications, problem history, log files, etc.Ii. working principle of Nagios1, Nagios's function i
Article Title: Install Nagios in Suse9. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories. The Nagios Installation Process of Suse 9 is as follows:
Download the required Program
First move a source code library to get the source code library:
Ls: there are seven packages
somehost.example.orgservice_descriptionCheck For /etc/passwdcheck_commandcheck_snmp_extend!check_passwd_file}
The extension options of SNMP are as secure as your SNMP configuration. This method only requires a few changes on the remote host, and ensures that the standard setting Environment meets the best security practices. You can find other Nagios plug-ins for similar purposes, such as nrpe, but they re
; 0, 'tag' => 'web_monitor' };1;After the check_logfiles on the monitored end is configured, we need to add the command in nrpe. cfg.
command[check_logfile]=/usr/local/nagios/libexec/check_logfiles -f /usr/local/nagios/var/log.cfgservice xinetd reload
2. The monitored end. Let's take a look at the monitoring end.
define service{ use
Figure-Nagios
The configuration of the Nagios monitoring server is as follows:
1. Install nrpe
[Root @ UnixHot src] # tar zxvf nrpe-2.12.tar.gz
[Root @ UnixHot nrpe-2.12] #./configure make all
[Root @ UnixHot nrpe-2.12] # make in
NagiosYou can use snmp, nrpe, and nsclient to obtain information. More importantly, you can use the latter and use its powerful plug-in module. Cacti Uses snmp and does not need to install an agent. It is generally used to monitor network traffic. Nagios is generally used to monitor processes and services.
Nagios installation environment:
Host
. Add the command to the client and restart the Nrpe service to make it effective[[email protected] libexec~] #vim/usr/local/nagios/etc/nrpe.cfgAdd check_passwd Definition Commandcommand[check_passwd]=/usr/local/nagios/libexec/check_passwd[[email protected] libexec~] #pkill Nrpe#重新启动
NagiosThe Windows Server monitoring process is described as follows:
The biggest difference between NSClient and Nrpe is:
1. nrpe is installed on the monitored host and there are plug-ins. The final monitoring is performed by these plug-ins. When the monitoring host sends the monitoring request to nrpe, nrpe calls the
insecure.Warning: Using a password on the command line interface can be insecure.OK-TRANSACTIONS RAN successfully.[Root @ wgq_idc_dbm_3_61 binlog] #Add monitoring command in nrpe. cfg[Root @ wgq_idc_dbm_3_61 binlog] # vim/usr/local/nagios/etc/nrpe. cfgCommand [check_mysql_trx] =/usr/local/nagios/libexec/check_trx-w 30
Rotten mud: nagios Learning (4): pnp4nagios graphical drawing of nagios data, pnp4nagiosnagios
This document consistsXiuyi Lin FengProviding friendship sponsorship, first launchedThe world
After nagios is installed, we also add some monitoring objects, but you will find that nagios is just a simple method to list thos
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.