#!/bin/bash#author:yanconggod#date:2017-01-19#version:1.0# using uptime command to monitor system load postfix_path= "/usr /sbin/postfix "mailx_path="/usr/bin/mailx "email=" [emailprotected] "# get native IP address ip= ' IFCONFIGNBSP;ENP2S0 |grep ' \binet\b ' |awk ' {print$2} ' # formatted time display date= ' date ' +%y-%m-%d%h:%m ' # Declare integer variable declare-icpu_numloadsave# get current host CPU
ConceptPowershell is a command-line scripting environment that runs on Windows machines to implement system and application management automation. You can think of it as an extension of the command line prompt cmd.exe, no, it should be subversion. PowerShell needs. NET environment, while supporting it. NET object. The reason Microsoft is positioning PowerShell as power is not an exaggeration, as it fully supports objects, and the convenience of object-oriented is conceivable. Its readability, ea
open,please check! | Mail-s "Website Notification to ${web_url[i]}" yourname@example.comecho "Failed"Elseecho "' ${web_url[i]} ' is ok!"Fi}
Method two, using Curl to monitor web shell scripts
, because the script's role is to keep access to the given URL at a fixed frequency, when the site is not accessible automatically to set up the mailbox to send an alert message to notify the user. Well, lo
The content of this section:The shell script monitors the site for abnormalities and automatically sends an email notification to the administrator if there is an exception.The script detection process is as follows:1, check whether the Http_code returned by the site equals 200, if not 200 is considered an exception.2, check the site access time, more than Maxloa
The simplest and easiest way to view the number of IIS connections is through site statistics, where the current number of online Web site statistics can be considered the current number of IIS connections. However, the current online number of "website statistics" is longer, typically 10 minutes or 15 minutes, plus statistical techniques and statistical mechanisms, resulting in more or less statistical err
Zabbix as a monitoring software is very flexible, supporting the data types are very rich, such as digital (no plus or minus), digital (floating-point), log, text and so on. All we need to do is use the script to collect the data, then Zabbix collect and draw, and set the alarm line. Here we learn to use Zabbix to monitor memcached, PHP-FPM, Tomcat, Nginx, MySQL, and web logs. memcached MonitoringCustom Key valuesUserparameter=memcached.stat[*],/data/
Build high performanceASP. NETSite Chapter 7 How to solve memory problems(Previous)-Managed Resource Optimization-MonitoringCLRPerformance
In the previous articleArticleThis article describes how to monitorCLRWhether it causes some performance problems.
The topics in this article are as follows:
Memory problems(Previous)
Managed Resource Optimization (previous)
Object lifecycle (previous)
Object"Generation "(previous)
Large Object heap(LOH)(Previous)
CLRCounter usage(Pa
The shell monitors the site for unusual script, such as an abnormal automatic email notification to the administrator.
Process:
1. Check that the Http_code returned by the Web site is equal to 200, if not 200 as an exception.
2. Check Web site access time, more than Maxloadtime (10 seconds) as an exception.
3. Send notification email, in the/tmp/monitor_load.
, it is not possible to set a cache time to control the repeat escalation interval. When configuring white list omissions, there will be a large number of false positives, serious consumption of resources.Wasting bandwidthIn newer Chrome, you can use META tags to define CSP rules on front-end pages, but other browsers are still not supported.In order to be unified, most still use the HTTP header input method. Because the rules are usually very long, each page access will add an additional hundre
, it is not possible to set a cache time to control the repeat escalation interval. When configuring white list omissions, there will be a large number of false positives, serious consumption of resources.Wasting bandwidthIn newer Chrome, you can use META tags to define CSP rules on front-end pages, but other browsers are still not supported.In order to be unified, most still use the HTTP header input method. Because the rules are usually very long, each page access will add an additional hundre
A description of the application scenarioIn the previous article, we described the use of Zabbix to monitor the availability of Web sites in a Zabbix with web monitoring just using the Libcurl library to detect all URLs on the Zabbix server or proxy side. This does not actually check the network quality of each URL that the zone accesses. This article uses the Zabbix lld,pycurl module and Zabbix sender to collect the network quality of each URL that i
, it is not possible to set a cache time to control the repeat escalation interval. When configuring white list omissions, there will be a large number of false positives, serious consumption of resources.Wasting bandwidthIn newer Chrome, you can use META tags to define CSP rules on front-end pages, but other browsers are still not supported.In order to be unified, most still use the HTTP header input method. Because the rules are usually very long, each page access will add an additional hundre
Monitor whether all files in the Web site directory have been tampered with (the contents of the file have been changed) and if so, print the changed file nameScheduled tasks: Perform monitoring once every three minutesCharacteristics of files being tampered with:
The size may change (why is it possible, if you change the value of 1 to 2 the size will not change)
Modification time Changes (file
We have long lacked a way to judge whether a user is browsing a specified tab. Does the user go to another website? Did they switch back?Now, the HTML5 page visibility interface gives programmers a way to use Visibilitychange page events to determine the state of the current page visibility and to perform certain tasks in a targeted manner. There are also new Document.hidden properties that can be used.Document.hiddenThis new Document.hidden property, which shows whether the page is the page tha
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.