Use text messages to check the running status of your servers

Source: Internet
Author: User
 
Use text messages to check the running status of your servers
/**
Author: ciqinqiang
Email: cqq1978@gmail.com
**/
Since hosting the server, this server has not been easy for me, and I am not familiar with the win2003 operating system and IIS6,
Therefore, some problems may occur from time to time, such as high cpu usage, excessive access client usage, and rpc server errors.
What I do with a friend is a resource sharing class website, address is http://www.up114.com, work time at ordinary times,
I open the hostmonitor and access the url every few minutes to ensure the normal operation of the website, but it will not work at night or on weekends,
What should we do?
Two days ago, I saw an article about text message bombs on mobile phones. The principle is that many SP websites now provide text message customization,
For text message services such as user registration, if you fill in the mobile phone number, SP will send an introduction message to the mobile phone user, of course, this information
Yes.
In this way, as long as the application is repeated, the mobile phone will continuously receive text messages to achieve the effect of SMS bombs.
So I used this free text message to notify us as a messenger.
Here, I think everyone understands that the following is my specific practice:
1, hostmonitor requests url address http://www.up114.com every 5 minutes
     
2. When three consecutive access errors occur, that is, the website cannot be accessed within 15 minutes,
     
Trigger the event and run an external command, that is, sendSms. vbs.
3. sendSms. vbs restarts the IIS site and then accesses the website. If the website still cannot be accessed, use the text message service on the Internet to send it to me and my friends.
Of course, this information is not something we can control, but a text message sent by content providers for business introduction.
If you can access IIS after it is restarted, you do not need to send it.
4. After receiving the text message, we naturally access the Internet as quickly as possible to see what went wrong.
 
Here, I simply used text messages and hostmonitor to monitor the running status of the website, just a thought.

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.