Alibabacloud.com offers a wide variety of articles about nagios network monitoring, easily find your nagios network monitoring information here online.
As: http://download.csdn.net/detail/hellopengyl/9617697, there are 2 versions, one is written in Perl script, one is written in PHP script, you can choose one, And the other two are monitoring MySQL. Here is the Perl script.[[emailprotected]libexec]#chmod+xcheck_redis.p*[[emailprotected] Libexec]#llcheck_redis.p*-rwxr-xr-x.1rootroot15812oct10 2014check_redis.php-rwxr-xr-x.1rootroot141829Oct10 2014check_redis.pl[[emailprotected]libexec]#./check_redis.p
Toss for 2 days. The Nagios 4.x version of the monitor server lasts about 3-4 months. Originally set up when they want to do a map of the monitoring, but has not been out. And then it was put on hold. Before, because of server performance problems, want to analyze, so there is such a demand. After 2 days of fighting, finally put the nagios out of the picture. Her
Before we write the monitoring plug-in, we first need to have some idea of the Nagios monitoring principle.Nagios's function is to monitor the service and host, but he does not include this part of the function, all the monitoring, detection functions are through a variety of plug-ins to complete.When
I. Custom Nagios monitoring scripts1. Create a script on the client/usr/local/nagios/libexec/check_disk.shVim/usr/local/nagios/libexec/check_disk.sh writes the following: (On the client)#!/bin/bashrow= ' df-h |wc-l ' #输出的总行数For i in ' seq 2 $row ' #从第二行开始为真实的磁盘 because the first behavior header informationDoAva= ' df-h
Create a script on the client/usr/lib/nagios/plugins/check_disk.sh//yum installation of Nagios, if you are compiling the default script file directory for your own installation in a custom installed Nagios directoryTo operate on the client:vim/usr/lib/nagios/plugins/check_disk.sh writes the following://This is a disk s
/init.d/nrpe restartService side5. Check if the script is running correctly[email protected] ~]#/usr/lib64/nagios/plugins/check_nrpe-h 192.168.219.128-c check_disk/OK 26% 13g/dev/shm ok 0% 242m/boot OK 8% 426MExplanatory notes:If normal, it will output a row of disk detection data, or may be error.# # # # #错误 #####[Email protected] ~]#/usr/lib64/nagios/plugins/check_nrpe-h 192.168.153.129-c check_diskNrpe:u
From the initial Nagios to the now powerful Zabbix 3.0, I would say that no performance-based development and monitoring are all nonsense?First of all, I am aware of these two monitoring software:Zabbix, a lot of enterprises are in use, give a person's feeling is very dazzling, but I personally think that although it is powerful, can draw a cool image, but in you
NagiosServer SelfMonitoringThere are two methods for implementation, which can be simple!
Figure-Nagios
Self-monitoring implementation of Nagios Server
To monitor resources and services, you must configure the nagios server and the NRPE-nagios remote plugin
Executor)
.jpg "/> Summary:1. If the monitoring page is incorrectly displayed Return code of 127 is out of bounds-plugin could be missingPossible cause is error in the command to add detection traffic, carefully check the keyword path format is correct2. If the Monitoring page error displays 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M02/49/CA/wKioL1QagxXghSCVAADINWoui4c342.jpg " Title= "W1.png" alt= "wki
not Runni Ng on this node "exit $CRITICALfideclare-I i=0declare-i a=0nodes= ' $CL _st listnodes ' for node in $NODESdo status= ' $CL _st Nodestatus $node ' let i= $I +1# if [$status = = "Active"] by default, the number of active states is detected, but the ping status is also normal, so the following conditions are changed. if [$status = = "Active"-o $status = = "Ping"] then let a= $A +1 fidoneif [$A-eq 0]then echo "Heartbeat CRITICAL: $A/$I "Exit $CRITICALelif [$A-ne $I]then echo" Heartbeat
NagiosThe extended Host and service monitoring content is as follows:
Nagios is a widely used host and service monitoring tool. Many system administrators use it to monitor the system. This document describes the basic Nagios Installation Guide for easy reading and operation. The Installation Guide describes how to in
Nagios's built-in Oracle monitoring check_oracle has fewer functions. You can use the check_oracle_health script written in perl.
1. Install check_oracle_health
Wget http://www.bkjia.com/system/systembak/2011/2/check_oracle_health-1.6.6.1.tar.gz
Wget http://www.bkjia.com/system/systembak/2011/2/check_oracle_health-1.6.3.tar.gz
Select any version (1.6.3 is used here)
Tar zxvf check_oracle_health-1.6.3.tar.gz
Cd check_oracle_health-1.6.3. /Configure --
cgi.cfg is used to verify the identity of the administrator.If the administrator user we generate is not nagiosadmin, the validation will fail, and the error that starts with the description will appear.so , we can now just change the user name in the config file to the actual administrator username, save it, and then restart Nagios! As I created the Administrator account for nagios_5201351 The solution is as follows:1, edit the /usr/local/
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.