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:
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
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
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 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
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
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.