install
4. The server installs nrpe and communicates with the client.
Tar-xzf nrpe-2.14.tar.gz
Cd nrpe-2.14
./Configure -- enable-ssl -- with-ssl-lib
Make all
Make install-plugin make install-daemon-config
Chown-R nagios. nagios/usr/local/
the installation of the basic platform, the Nagios software package, which is the framework of the monitoring system and the basis of all monitoring.Nagios uses Nrpe to manage services remotely
Nagios executes the Check_nrpe plugin installed inside it and tells Check_nrpe to detect which services.
Connecting the Nrpe
file ExplanationA total of three Service:ssh ping http three items were monitored in our defined profiles using local Nagios tools to connect to remote machines, and no plug-ins were installed in time to monitor them.Max_check_attempts 5: Try to detect 5 times there is a problem before the alarm, if set to 1, once detected a problem immediately alarmNormal_check_interval 1: The time interval for re-detection, in minutes, and 3 minutes by default.Noti
The previous article describes how to install Nagios Core, an article to share with you how to incorporate a remote Linux server into your monitoring scope.Part I: Installing Nagios plugins and Nrpe on remote LinuxStep one: Download the setup program for Nagios plugins and Nrep extensions[Plain]View PlainCopy
/shState_ok=0State_warning=1state_critical=2State_unknown=3State_dependent=4Example one: Judging whether the/etc/passwd file changes, using the Nrpe passive modePrinciple: Fingerprint collection md5sum/etc/passwd >/etc/passwd.md5 using md5sumUsing md5sum-c/etc/passwd.md5 to identify the fingerprint, there is no change in the OK, but the reverse is changedWhether the monitoring password file has been changed:Let's do the fingerprint library.MD5SUM/ETC/
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
command, specify the complete path, rather than the path related to any script or binary being executed.
· Protect remote proxy security. Remote proxy includes NRPE, NSClient, and SNMP. Next we will introduce how to protect NRPE remote proxy.
Remote proxy Protection)
This section describes how to ensure the security of NRPE. This remote proxy is used to execute
About Nagios
Nagios is an open-source, free network monitoring tool that effectively monitors Windows, Linux and UNIX host status, network devices such as switch routers, printers, and more. Send mail or SMS alarm when the system or service status is abnormal the first time to notify the site operators, after the status of the resumption of normal mail or SMS notification.
The CENTOS7 system used here, nagios-4.2.1.tar.gz,nagios-plugins-2.1.2.tar.gz,nrpe-3.2.1.tar.gzDownload the installation packageNagios Server-side installation package under the Guan Networkor Baidu Network diskhttps://pan.baidu.com/s/1sALFDRt3n24LRheqA6Hp4gt72qSuggest to the official websiteInstalling the Ali Yum SourceWget-o/etc/yum.repos.d/centos-base.repo Htt
First, the server-side installation:1 , build on the service side Lamp EnvironmentYum install-y httpd php2 , server-side installation Nagios Main programUseradd-s/sbin/nologing./configure--prefix=/usr/local/nagios--with-command-group=nagios./configure when Perl command not found is found to install Perl this package, or make all will be error yum install-y perlMa
apache, just install it. After installation, check whether it works properly.
After learning how Nagios manages server objects through plug-ins, I am now studying how Nagios manages Remote Server objects. The Nagios system provides a plug-in named NRPE. Nagios periodically
-PNAGIOS-E "show slavestutasg" NOTE: This operation is operated under the shell!! 3, install Nrpe from the server, and then add a line of "Command[check_mysql_slave]=/usr/local/nrpe/libexec/chech_mysql_slave". 4, Scripting/usr/local/nrpe/libexec/check_mysql_slave (this is the core of monitoring its role), and its contents are as follows:
The code
source:
Copy Code code as follows:
Yum Install-y epel-release
Then install Nagios-related packages
Copy Code code as follows:
Yum install-y httpd Nagios nagios-pluginsnagios-plugins-all Nrpe
Set the user and password for login
,qcache_total_blocks,questions,Select_full_join,select_rangle_check,slow_launch_threads,Slow_queries,table_locks_immediate,table_locks_waited,Threads_cached,threads_connected,threads_created,Threads_running '
Notice here that the content behind the $USER 21$ is on one line.
3, modify Localhost.cfg
# vim/etc/nagios/objects/localhost.cfgDefine Service {Use Local-service,srv-pnp//SRV-PNP for your customHOST_NAME localhostService_description MYSQLDChec
remotely via the Nrpe plugin
Nagios executes the Check_nrpe plugin installed inside it and tells Check_nrpe to detect which services.
Connect the Nrpe daemon on the remote machine via the Ssl,check_nrpe.
Nrpe runs a variety of local plugins to detect local service and status (Check_disk,.. etc).
After completing the server-side setting of the Nagios, it is necessary to make the relevant settings on the monitored host side and set some monitoring parameter values.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/soft/tools/
The complete configuration script is as follows:
#!/bin/bash #auto Configure Nagios Linux client side #2012 -12-05 nagios_dir= "/usr/local/
Nagios Introduction
Nagios is an Open-source application used to monitor systems and networks, typically running on a master server running Liunx or Unix operating systems. Nagios uses its numerous plug-ins to realize the monitoring of the local and remote service, when the object of the monitor is abnormal, Nagios wi
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.