1. Server and monitored host installation componentsYum Install BCCompile and install Nrpe (refer to Tutorial: http://2860664.blog.51cto.com/2850664/1559056)The following are the monitored host settings2, download the monitoring script check_nginx.sh, and upload to the/usr/local/nagios/libexec directory of the monitored host: http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=622cf_id=24
above commandOk-the traffic in are 0.11KB, out are 1.08KB, Total is 1.19KB. The Check Interval is 1526s | In=0.11kb;1000;1400;0;0 Out=1.08kb;1200;1500;0;0 Total=1.19kb;2200;2900;0;0 Interval=1526s;1200;1800;0;0Define in and out values exceeding 1000K, 1200K warning, exceeding 1400k,1500k severity. (No output for first run, output after 30s)3 Defining the check_traffic command on the monitored sideVi/usr/local/nagios/etc/nrpe.cfgAdd toCommand[check_tr
1. About Nagiosis an open source software that can monitor network device network traffic, linux/windows host status, and even monitor the printerIt can run on Linux or on WindowsBrowser-based web interface makes it easy for operations personnel to view the status of monitoring itemsSupport Web interface configuration, management operationsSupport SMS, email notificationCustomizable scripting enables custom monitoringNagios official website http://www.nagios.org2.
Nagios.cfg file Nagios.cfg
The default path is/usr/local/nagios/etc/ Nagios.cfg, is the Nagios core configuration file, all object configuration files must be defined in this file to play its role, where the object configuration file can only be referenced in the Nagios.cfg file.
Log_file=/usr/local/nagios/var/nagios.log
The "log_file" variable is used to defi
monitoring configuration-configuration of notifications
Notify by email when there is a problem with the service
1, configure the command to send mail
Edit/usr/local/nagios/etc/objects/commands.cfg
The default output macros $hostoutput$ and $serviceoutput$ only output the first line of information, and we use $longhostoutput$ and $longserviceoutput$ to output the complete information.
in order to accept the format of a good, and Chinese text-free hyp
Values :Check , notif or misc
Command Line
System command line that'll be run on execution
②.Increase inNagioscommand, usingADDAction:Format:
Centreon-u User name -P password -o cmd-a add-v ' command name ; type ; Command '
Note: When you define a command directly, you need to use the single quote " ' ", a variable should be included in the command" $... ". 1), execute the command:
[Email protected] ~]# centreon-uadm
Nagios+centreon of Chinese ①.Download language Files : wget Http://cacti-nagios.googlecode.com/files/messages.mo ②.Create a language directory : mkdir-p/usr/local/centreon/www/locale/zh_cn/lc_messages/ ③. move the downloaded messages.mo to the directory created in step 2 : MV messages.mo/usr/local/centreon/www/locale/zh_cn/lc_messages/ ④. Log in to Centreon, click administartors, and then click Optionto go to "my account" and change the language t
server side, and the passive mode is the server came to tell the agent I need something, Agent acquisition. Zabbix and nagios 's alarm mechanism, through the plugin template to achieve3, monitoring object:Network statusWith more monitoring itemsNagios principle:1, Component:Main program ( Nagios Daemon):The main part of Nagios implements monitoring, performance,
In each step, create a user name and password on the MySQL slave server database, and only grant the replication Client permission.
Step 2: Create the script check-mysql-slave on the monitored MySQL slave server
#! /Bin/shDeclare-A slave_isSlave_is = ($ (/usr/local/MySQL/bin/MySQL-unagios-P ******-e "show slave status \ G" | grep running | awk' {print $2 }'))If ["$ {slave_is [0]}" = "yes"-a "$ {slave_is [1]}" = "yes"]ThenEcho "OK slave is running"Exit 0ElseEcho "Critical slave be stoped"
Exit 2F
Recently in the heartbeat monitoring, the Nagios server-side alert prompt: Nrpe:command ' check_heartbeat ' not definedHowever, the Nagios client/usr/local/nagios/libexec/check_nrpe-h 192.168.3.211-c Check_heartbeat are able to perform normally, and a lot of information is found in the following situations:1.nagios Cli
We have completed the configuration of the monitored side. Let's go back to the Nagios monitor configuration to complete the monitoring of the server.1, install NrpeTAR-ZXVF nrpe-2.12.tar.gz-c/usr/src/cd/usr/src/nrpe-2.12/Ls./configureMake make installMake Install-plugin/usr/local/nagios/libexec/check_nrpe-h 192.168.1
A Negios server was set up in the company today. After adding the monitored server, several monitored services are OK, but the host display is down.Environment Description:Nagios Server:Redhat 6.3 x64 Minimized installationTurn off SELinux and iptablesNagios-3.4.1.tar.gzNagios-plugins-2.0.3.tar.gzNrpe-2.15.tar.gzFollow the previous manual step-by-step procedure. Used to be OK, do not know why this error.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/95/wKioL1RTol6Tub7CAAEbwHa1LdI6
Client ip:192.168.1.11Service-Side ip:192.168.1.12Purpose: To check the existence of the Java process for EIP usersClient ConfigurationScript Name: check_pid.shThe script is as follows:#! /bin/bashSi= ' Ps-ef|grep java|grep eip|wc-l 'If [$si-eq 1];thenecho "Status OK"Exit 0Elseecho "The Pro is Down,plaese check!"Exit 1FiPlaced under the/home/monitor/nagios/libexec, that is, Nrpe plug-in storage place, Chown
Nagios is an application for system and network monitoring. It monitors hosts and services under the conditions you set
Control, and notify the administrator when the monitored object is alerted and restored based on the alarm threshold value and alarm method set by the administrator.
The following describes how to install Nagios.
Before installing Nagios, yo
Nagios Alarm function is very powerful, plug-ins rich, and can easily realize the mail alarm, SMS alarm and micro-letter alarm. However, if a host or service problem and long time no one to deal with, alarm notification may let us carry the dimension crazy. So how can you make Nagios alert notification more intelligent? For example, after more than a few notifications issued, the notification interval autom
1. Click on any page to error after installing Nagios softwareIt appears as though you don't have permission to view information for any of the hosts you requested ...Workaround:[Email protected] conf]# vim/usr/local/nagios-4.0.8/etc/cgi.cfgUse_authentication=0--Change 1 to 0 without certification[Email protected] conf]#/etc/init.d/nagios restartRunning Configura
Nagios Secondary Development (iii) --- nagiosql architecture introduction, nagios --- nagiosql
About NAGIOSQL database structure
I personally think that if you understand the architecture of a system, you should first start with the database, because the database is the soul, and the premise is that the system uses the database. I have just mentioned the architecture. In fact, I really don't know what the a
Client Nrpe does not work correctly:Phenomenon:/usr/local/nagios/libexec/check_nrpe-h 127.0.0.1Check_nrpe:error-could not complete SSL handshake1) Install the dependent packages:Yum Install Openssl-devel-y2) Add the server IP address (192.168.1.100) to the Allowed_hostsVim nrpe.conf +77allowed_hosts=192.168.1.100,127.0.0.13) Restart service after stopping serviceStop service:#pkill NrpeStart the service:#/u
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.