Learn how to run your own server via SMS

Source: Internet
Author: User
Tags iis cpu usage high cpu usage access
Server | server

Learn how to run your own server via SMS

/**

Author: Ci Qin Qiang

Email:cqq1978@gmail.com

**/


Since hosting the server, this server is not less to let me worry, plus their own win2003 operating system and IIS6 not familiar with,

So there are some problems from time to time, such as high CPU usage, access clients too much, RPC server errors, and so on.

What I do with my friends is a resource sharing class site, the address is http://www.up114.com, usually working hours,

I am open hostmonitor, every few minutes to visit the URL, to ensure that the site normal operation, but at night or weekend, it is not,

What about it?

Two days ago just saw an article, about mobile phone message bombs, the principle is now a lot of SP website to provide SMS customization,

User registration, such as SMS services, as long as the mobile phone number, the SP will send a message to the mobile phone users, of course, this message

is free of charge. In this way, as long as the repeated application, the phone will continue to receive text messages, so as to achieve the effect of SMS bombs.

So, I took advantage of this free introductory text message, let it as a messenger, to inform us in time.

Written here, I think we all understand, here is my specific approach:

1,hostmonitor every 5 minutes, request URL address http://www.up114.com

2, when there are three consecutive access errors, that is, 15 minutes can not access the site,

Triggering an event, running an external command, which I wrote Sendsms.vbs

3,sendsms.vbs Restart the IIS site, and then visit the site, if the site is still inaccessible, the use of those online SMS services, to me and friends

Mobile phone to send a message, of course, this information is not we can control, but the content provider sent to the business introduction of the SMS.

If you restart IIS, you can access it, and you don't need to send it.

4, after we received the message, nature is to the fastest speed of the Internet, to see what is wrong.

Here, I just use SMS and hostmonitor simple to achieve the site's operation of the monitoring, 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.