Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use IISMonitor to monitor web pages and restart IIS automatically

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to use IISMonitor to monitor web pages and automatically restart IIS, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1. Introduction to tools

IISMonitor is used for web page monitoring and IIS automatic restart, which can regularly monitor whether the web page is valid, restart IIS automatically if it is not effective, or restart the computer automatically if it is invalid, so as to restore the operation of the website. For unexplained IIS false death, IIS stutter, it is more useful when it can be restored after restart.

Main features: the monitoring parameters can be set on demand, with Email notification function, and can be automatically started as a Windows service boot. This tool is green software and does not need to be installed. Download it and extract it, then double-click the IISMonitor.exe to run it. Because you need to restart IIS and restart your computer, IISMonitor needs to run on the IIS server.

It should be noted that restarting IIS to bring it back into operation is a temporary measure and a last resort remedy. The complete solution is to analyze and solve the problems existing in the system or program.

2. Workflow

The default monitoring and restart process is: visit the monitored web page every 10 seconds; if you fail to visit the monitored web page twice in a row (the returned status code is not equal to 200), it is regarded as an IIS exception, and the web page is still invalid after two consecutive IIS;IIS restarts, which is regarded as invalid IIS restart, and then automatically restart the computer. After the computer restarts, continue to monitor, after restarting the computer for 2 times, the web page is still invalid, give up monitoring, and send a notice, transferred to manual processing.

The default settings can be adjusted as needed, including the URL of the monitored web page, monitoring frequency, IIS restart command line, IIS restart trigger condition, computer restart command line, computer restart trigger condition and so on.

When each event occurs, you can send Email notification automatically, so that you can know the monitoring situation in time.

3. Operation interface and parameter setting

The operation interface of IISMonitor is shown in the following figure:

The meaning of each parameter setting is as follows:

(1) how to monitor and restart (Settings-How to Monitor)

You can specify the web address, monitor the frequency, how to restart IIS, how to restart the computer, and the trigger conditions for restart.

Page URL to Check: the URL of the web page to be monitored. Default value: http://localhost.

Page Check Interval: webpage monitoring interval. Default value: 10 seconds.

IIS Reset Command: restart the command line of IIS. The default value is iisreset / restart.

IIS Reset Trigger: trigger condition for restarting IIS. Default value: enabled. 2 consecutive web page visits failed.

Computer Reset Command: command line to restart the computer. Default value: shutdown.exe-r.

Computer Reset Trigger: trigger condition for restarting the computer. Default value: enable. The web page still fails after restarting IIS for 2 times in a row.

Abort Monitor Trigger: abandon the trigger condition of monitoring. Default value: enable. The web page still fails after restarting the computer for 2 times in a row.

(2) how to remind notification (Settings-Email Notice)

This section defines how to send Email notifications, including which events need to be notified, to whom, under which account, and so on.

Events to Notify: which events need to be notified. Default values: IIS restart, computer restart, and abandon monitoring are all notified.

Email of Rceiver: the recipient's Email address.

Email of Sender: the Email address of the sending account.

SMTP Server of Sender: the SMTP server URL of the sending account.

The login account of the account sent by Account of Sender::.

Password of Sender: the login password of the sending account.

(3) Monitoring status information (Status-Monitor Actions)

This section displays monitoring status information, including monitoring start time, page monitoring times, IIS restart times, computer restart times and so on. The bottom line is the current work instruction and status.

Time of Start Monitor: time to start monitoring.

Count of Page Check: number of times the page has been monitored.

The number of times Count of IIS Reset:IIS has been restarted.

Count of Computer Reset: the number of times the computer has been restarted.

4. How to continue monitoring after computer restart

After starting monitoring, the software can automatically resume monitoring after shutdown and restart without human intervention. But if the computer is rebooted and the IISMonitor is not booted, the monitoring will be interrupted. To this end, the IISMonitor can be set to boot automatically, so that the monitoring continues. There are two setting methods, and the steps are as follows:

One is to include IISMonitor in the boot directory and run automatically as a foreground. Specific steps: start all → programs → start → right mouse button → browsing, enter the startup program directory → right mouse button → new → shortcut → browse → choose this software IISMonitor.exe.

The second is to convert IISMonitor into Windows service and run it automatically in the background. Specific steps: go to the Service subdirectory under the IISMonitor directory, double-click the batch program AddIISMonitorService.bat, and you will convert IISMonitor into a Windows service called IISMonitor. Since then, whenever the computer is booted and restarted, the service will run automatically in the background, but the operating interface and running status can not be seen. If you do not need the service, you can also uninstall it. Specific steps: stop the service first, then enter the Service subdirectory, double-click RemoveIISMonitorService.bat, and the service will be uninstalled.

Where to start and stop IISMonitor services: control panel → Management tools → Services → IISMonitor → right-click → to select start, stop or automatic start as needed.

The above is all the contents of the article "how to use IISMonitor to monitor web pages and automatically restart IIS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report