nagios ping monitor

Discover nagios ping monitor, include the articles, news, trends, analysis and practical advice about nagios ping monitor on alibabacloud.com

Nagios Plugin-monitor network speed

#! /Bin/bashProgname = 'basename $0'Version = "version 1.0"Author = "2013.02.05, www.mangocity.com" St_ OK = 0St_wr = 1St_cr = 2St_uk = 3 Interval = 10Url = "http://mirrors.163.com/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveCD.iso" Print_version (){Echo "$ version $ Author"} Print_help (){Print_version $ progname $ versionEcho "$ progname is a Nagios plugin to monitor download speed"Echo "use of wget down

Nagios Load Percent monitor alarm plug-in

|awk ' {print NBSP;$1*100} ') load_ok=0load_warning=1load_critical=2load_unknown=3_load_1min=$ (cat/proc/loadavg| awk ' {print$1} ') _load_5min=$ (cat/proc/loadavg|awk ' {print$2} ') _load_15min=$ ( cat/proc/loadavg|awk ' {priNTNBSP;$3} ') _cpu_core=$ (cat/proc/cpuinfo|grepprocessor|wc-l) functionget_ Percent () {localload_value=$1 #local temp_value=$ (Echo "Scale=4;${load_value}/${_cpu_core}" |BC) #_value =$ (echo "$temp _value*100" |bc|awk ' {printf '%2.2f\n ($} ') local_value=$ (echo "$loa

Nagios Monitor Traffic Script

Demand is that we need to monitor the traffic on the server, there is a circulating check_traffic.sh on the network, it needs to be monitored by the machine to turn on SNMP. But it feels like you're using Nagios and you have to open SNMP ... A bit of axe scissors together with the feeling, so I wrote a monitor the flow of the shell:#!/bin/shusage () {echo "Usage:

Shell Scripting Nagios plug-in monitor resource occupancy _linux shell

In general, we only need to monitor the program process in the not on it. But this time, the company developed the program, the process is still in, but the deadlock. Lead to a wide range of effects, but even more importantly, do not know where the problem is, or other Test department colleagues to help find, really throw the face of the Victoria.In order to avoid the next encounter such a situation, analysis of the process deadlock phenomenon, found

Use Nagios to monitor Mysql_slave applicable platform centos6.6

#! /bin/bash ####监控mysql主从同步状态###STATE_OK=0 #正常 STATE_WARNING=1 #警告STATE_CRITICAL=2 #危险STATE_UNKNOWN=3 #未知SLAVE_IO_STATUS=0SLAVE_SQL_STATUS=0MYSQL=$(which mysql)SLAVE_IO=`$MYSQL -e "show slave status\G"|grep -i Slave_IO_Running |awk -F: ‘{print $2}‘`SLAVE_SQL=`$MYSQL -e "show slave status\G"|grep -i Slave_SQL_Running|awk -F: ‘{print $2}‘`IO_ERROR=`$MYSQL -e "show slave status\G"|grep -i Last_IO_Error|awk -F: ‘{print $2}‘`SQL_ERROR=`$MYSQL -e "show slave status\G"|grep -i Last_SQL_Error|awk -F: ‘

Monitor the number of opened files in the nagios Agent System

Monitor the number of opened files in the nagios Agent System Vi check_open_file.c (for linux only) #include #include #include #define OK 0#define WARNING 1#define CRITICAL 2#define UNKNOWN 3#define LEN 1000#define FILE_NR "/proc/sys/fs/file-nr"int exitstatus=OK;char *exit_status[4]={"OK","WARNING","CRITICAL","UNKNOWN"};char status_information[LEN];char performance_data[LEN];int

Nagios Monitor Check_http appears 403Forbidden

What is the reason for the 403Forbidden warnning when Nagios uses Check_nrpe's check_http? Yum Source installs the httpd service under the/var/www/html that does not index.html this file. The solution is simple: touch/var/www/html/index.html. Test Curl Localhost-i, appears 200, the explanation is ready.This article is from the "10707334" blog, please be sure to keep this source http://10717334.blog.51cto.com/10707334/1720772Nagios

Monitor host ping scripts

Monitor whether the host can ping the script-general Linux technology-Linux programming and kernel information. The following is a detailed description. :) Shell is a beginner. a script that just compiled to monitor whether the host can be pinged. If a host cannot be pinged, send an email and record it. If the host can be pinged again, send an email again, notifi

about using timer to monitor network ping

Project needs to connect to a specific server, if not connected to the real-time prompt, start using timer real-time detectionvoid Timer_tick (object sender, EventArgs e) { ping pingsender = new ping (); = Pingsender.send ("192.168.1.104"); if (reply. Status = ipstatus.success) { message.show (" Network exception ") } }If

Total Pages: 3 1 2 3 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.