Use IISMonitor to monitor web pages and automatically restart IIS

Use IISMonitor to monitor web pages and automatically restart IIS

I have previously written a simple tool software IISMonitor. In the past few days, I have organized and improved it and supplemented the instructions for use. I share it with you for free use. If you encounter any problems or have any suggestions during use, you can also leave a message and I will do my best to provide modification support.

123WORDPRESS.COM download address https://www.jb51.net/softs/799553.html

1. Tool Introduction

IISMonitor is used for web page monitoring and automatic IIS restart. It can regularly monitor whether the web page is valid. If it is invalid, it will automatically restart IIS. If it is still invalid, it will automatically restart the computer to restore the website to operation. It is useful for situations where IIS freezes or freezes for unknown reasons and can recover after restart.

Main features: Various monitoring parameters can be set as needed, with Email notification function, and can be automatically started as a Windows service. This tool is green software and does not need to be installed. After downloading, unzip it and double-click IISMonitor.exe to run it. Since you need to restart IIS and the computer, IISMonitor needs to run on the IIS server.

It should be noted that restarting IIS to restore its operation is a temporary measure and a remedy that should only be taken as a last resort. A thorough solution is to analyze and solve the problems in the system or program.

2. Workflow

The default monitoring and restart process is: access the monitored web page once every 10 seconds; if the web page access fails for two consecutive times (the returned status code is not equal to 200), it is regarded as an IIS abnormality and IIS is automatically restarted; if the web page is still invalid after IIS is restarted twice in a row, it is regarded as an invalid IIS restart and then the computer is automatically restarted; continue monitoring after the computer is restarted. If the web page is still invalid after restarting the computer twice in a row, give up monitoring, send a notification, and transfer it to manual processing.

The default settings can be adjusted as needed, including: URL of the monitored web page, monitoring frequency, IIS restart command line, IIS restart trigger conditions, computer restart command line, computer restart trigger conditions, etc.

During the monitoring process, IISMonitor can record event logs, including: event occurrence time, event type, related parameters, etc., for later reference. When an event occurs, an email notification can be automatically sent to let you know the monitoring status in a timely manner.

3. Operation interface and parameter settings

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

The meaning of each parameter setting is as follows:

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

You can specify the web page URL, monitoring frequency, how to restart IIS, how to restart the computer, and the trigger conditions for restart, etc.
Page URL to Check: The URL of the web page that needs to be monitored. The default value is http://localhost.
Page Check Interval: Web page monitoring time interval, default value: 10 seconds.
IIS Reset Command: The command line for restarting IIS. The default value is: iisreset /restart.
IIS Reset Trigger: The trigger condition for restarting IIS. Default value: Enabled, 2 consecutive web page access failures.
Computer Reset Command: The command line for restarting the computer, the default value is: shutdown.exe -r.
Computer Reset Trigger: The trigger condition for restarting the computer. Default value: Enabled. The webpage still fails after restarting IIS twice in a row.
Abort Monitor Trigger: The trigger condition for abandoning monitoring. Default value: Enabled. The webpage will still fail after restarting the computer twice in a row.

(2) How to set up notifications (Settings - Email Notice)

This section defines how to send email notifications, including: which events need to be notified, to whom, which account to use, etc.
Events to Notify: Which events need to be notified? Default value: IIS restart, computer restart, and abandonment of monitoring are all notified.
Email of Receiver: The email address of the recipient.
Email of Sender: The email address of the sending account.
SMTP Server of Sender: The SMTP server URL of the sending account.
Account of Sender: The login account of the sender account.
Password of Sender: 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, etc. The bottom line is the current work instruction and status.
Time of Start Monitor: The time to start monitoring.
Count of Page Check: The number of times the page has been monitored.
Count of IIS Reset: The number of times IIS has been restarted.
Count of Computer Reset: The number of times the computer has been restarted.

4. How to continue monitoring after restarting the computer

After starting monitoring, the software can automatically resume monitoring after shutting down and restarting without manual intervention. However, if the computer is restarted and IISMonitor is not started, the monitoring will be interrupted. To this end, you can set IISMonitor to start automatically at boot time so that monitoring is continuous. There are two setting methods, the steps are as follows:

  • One is to include IISMonitor in the startup directory and run it automatically in the foreground. Specific steps: Start → All Programs → Start → Right-click → Browse, enter the startup program directory → Right-click in a blank space → Create → Shortcut → Browse → Select this software IISMonitor.exe. After that, every time the computer is turned on or restarted, IISMonitor will automatically run in the foreground, and you can see the operation interface and running status.
  • The second is to convert IISMonitor into a Windows service and run it automatically in the background. Specific steps: Go to the Service subdirectory under the IISMonitor directory and double-click the batch program AddIISMonitorService.bat to convert IISMonitor into a Windows service named IISMonitor. After that, every time the computer is turned on and restarted, the service will run automatically in the background, but the operation interface and running status will not be visible. If you do not need the service, you can uninstall it. The specific steps are: stop the service first, then go to the Service subdirectory, double-click RemoveIISMonitorService.bat, and the service will be uninstalled.

To start and stop the IISMonitor service, go控制面板→管理工具→服務→IISMonitor→右鍵→按需選擇啟動、停止或自動啟動。

5. Download URL

http://www.hc-software.com/hcgis/support/IISMonitor.zip

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • IIS application pool monitoring method example
  • Summary of several methods to restart IIS service
  • .net restart iis thread pool and iis site program code sharing
  • How to restart an unresponsive IIS service

<<:  Detailed explanation of CSS3 flex box automatic filling writing

>>:  JavaScript String Object Methods

Recommend

Linux RabbitMQ cluster construction process diagram

1. Overall steps At the beginning, we introduced ...

An article to help you understand the basics of VUE

Table of contents What is VUE Core plugins in Vue...

Using Docker to create static website applications (multiple ways)

There are many servers that can host static websi...

Common methods of Vue componentization: component value transfer and communication

Related knowledge points Passing values ​​from pa...

Sample code for implementing DIV suspension with pure CSS (fixed position)

The DIV floating effect (fixed position) is imple...

Introduction to the process of building your own FTP and SFTP servers

FTP and SFTP are widely used as file transfer pro...

Ubuntu boot auto-start service settings

How to create a service and auto-start it in Ubun...

Front-end development must learn to understand HTML tags every day (1)

2.1 Semanticization makes your web pages better u...

js implements single click to modify the table

Pure js implements a single-click editable table ...

How to make a centos base image

Preface Now the operating system used by my compa...

Why Use DOCTYPE HTML

You know that without it, the browser will use qui...

Implementation of element multiple form validation

In the project, form testing is often encountered...

What we have to say about CSS absolute and relative

Written in the opening: Absolute said: "Rela...