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.