The script implements a 2-per-scan monitoring of the process for the specified process name and restarts once the discovery process does not exist.#!/bin/sha=10;While [[@a-gt 5]]; Doif test $ (pgrep-f $1|wc-l)-eq 2;thenSH stop.shGnome-terminal-x SH start.sh FiSleep 2;DoneSummary: (1) indicates that the current process starts a process to execute the gnome-terminal command, (2) The parent process of Linux hangs up, the child process is not hung, but the parent process of the child process is set
indirectly with the resources and efficiency of virtualization, through a comprehensive virtualization efficiency solution can eliminate the gap between the communication between departments, Improve the efficiency of collaboration between groups.3. Clarify network and application effectiveness and virtualization issues: visualize virtualized infrastructure, reduce application downtime from hours to minutes, prevent outages and service disruptions that may be caused by excessive infrastructure
addInterceptors(InterceptorRegistry registry) { //注册拦截器 拦截规则 //多个拦截器时 以此添加 执行顺序按添加顺序 registry.addInterceptor(getHandlerInterceptor()).addPathPatterns("/*"); } @Bean public static HandlerInterceptor getHandlerInterceptor() { return new CustomHandlerInterceptor(); }}After startup, access to a URL, console outputRequest Link DescriptionThroughout the process of the request, this picture wins thousands of words, hoping to have a deep understanding of th
#!/usr/bin/Envpython#-*-coding=utf-8-*-#Using GPL v2.7#Author: [email protected]126. Com#python Monitor network card traffic"""1, the realization principle: obtains the system information through the SNMP protocol, then carries on the corresponding computation and the format, the final output result2, special note: SNMP is required on the monitored machine.Yum Install-Y net-snmp*installation"""#!/usr/bin/pythonimport reimport os#get SNMP-MIB2 of the Devicesdef Getallitems (host,oid): SN1= Os.pop
The example in this article describes how Python monitors the Web site for exceptions and sends messages. Share to everyone for your reference. Specifically as follows:
This is a simple Python-developed monitoring program that sends notification messages via SMTP when the specified page status is not normal
Copy Code code as follows:
#!/usr/bin/env python
#-*-Coding:utf-8-*-
#author Libertyspy
Import socket
Import Smtplib
Import Url
Label:Process Description:The user sends the text message "a" to 12329, the sending record is stored in the SQL Server 2005 record table T, we need to do is according to the user sends the code "a" to return the corresponding information to the user.Considering the use of triggers, unfortunately SQL Server triggers are not able to execute Java code like Oracle does;Consider using a program to scan the table uninterrupted, frequent access to the database and fear of too much pressure on the SQL S
intercept the MySQL CPU value, Cut command By default is tab-delimited, but PS aux display the string blank is a space instead of tab, we will use a space to split, Some of the string is a number of spaces, here the-f8 parameter is to intercept the 8th string (some system may be 6th), this string is the CPU utilization of MySQL!Maybe you have a question, now that you've got the CPU usage of MySQL, why is there a cut in the back? That's a good question! I didn't think of it at the beginning. Bec
[[ $delay -le500]];thenechocunzai yanchi "$delay" elseecho "thereplicationdelaytoolarge" $delay ",at$ (date)" > $catalogecho ' uname-n ' |mail[emailprotected]Note that: In the copy, if the row format is the main library time, if not the line, this method can be now () this built-in function in the S script to generate and then writeAbove, in order to monitor MySQL master and slave of the two shell of the wording, if there is insufficient, trouble points out, thank youThis article from the "Mo
Dual monitor settings, how to set up a computer two monitors: Generally speaking, a computer is usually only equipped with a display, in our usual work, entertainment is basically such a match. But this usage, when you open more than one window, a display space is very small, especially to do some complex work, such as analysis of charts, debugging programs, you often need to constantly switch back and forth between different windows, very troublesome
Introduction to Multi-screen mode:
Put the mouse on the desktop, right-screen resolution, you will see the screen setup options, if you have two monitors installed, but not displayed, you can click "Detect" to detect. Then, in the multi-monitor display, you'll see the option to "copy these displays" and "extend these displays."
Copy these displays:
By selecting this option, you will see the exact same Windows window on two
Php monitors the status of the varnish cache server, and php monitors the varnish cache. Php monitors the status of the varnish cache server. php monitors the varnish cache when varnish and the website are deployed on the same server, it is impossible for us to log on to the server at any time to view the status of v p
This chapter goes on to the last error in the previous chapter, and we prove that using integer domains as multithreaded monitors is out of sync.1. Using the same domain as a multithreaded monitor, is not synchronizedPackage com.ray.deepintothread.ch02.topic_16;/** * * @author Raylee * */public class Dirtyreadwithsynchblock {public stat IC void Main (string[] args) throws Interruptedexception {MyService2 MyService = new MyService2 (); Threadthree thre
Zabbix automatically discovers and monitors MySQL
I. solution requirements and ideas
Because there are many servers running the MySQL service, and each server may run multiple databases with different ports, if you manually modify the agent one by one. conf, web add monitoring, which is too troublesome and time-consuming. There are two solutions. one is to deploy an automatic detection script on each server running mysql and modify the agent. conf an
Zabbix monitors PHP status
Zabbix monitors the PHP status and uses nginx to call php-fpm to query the php status information.First, add a line to the php configuration file.
Vim/usr/local/php/etc/php-fpm.confPm. status_path =/phpfpmstatus
Restart php-fpm after saving
Add code to the nginx configuration fileServer{Listen localhost: 80;Server_name localhost;Location/nginxstatus {Stub_status on;Access_log off;
Zabbix monitors Nginx status
Zabbix monitors the Nginx status. First, add the following code to the nginx configuration file:
Server{Listen localhost: 80;Server_name localhost;Location/nginxstatus {Stub_status on;Access_log off;Allow 127.0.0.1;Allow 192.168.1.165;Deny all;}}Restart nginx after saving
Create a script in the zabbix Script directory to monitor the zabbix status#! /Bin/bash# Script to fetch ngi
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.