Web Server监视器 v0.75 Free tool

1、简介

Web Server监视器用来对Web Server进行自动监控和提醒。

当前版本: 0.75

运行环境:.Net Framework v1.1

 

2、主要功能

1)多线程监控Web Server,返回Web Server的页面,并显示在浏览器中;

2)多线程监控Web Server,返回并显示HTML,同时比较HTML的长度是否在设定的范围内;

3)如果监控发现异常,会记录异常信息,同时可以通过Email提醒用户;

4)支持Proxy Server的设置;

5)支持自动循环执行,同时用户可以进行定制;

 

3、主要参数的设置

1WebServerMonitor.exe.config配置文件

1.1 ExceptionManagement的设置

用来设定出现异常时如何出来,如发送 Email提醒用户,同时在本地记录异常日志。

  <exceptionManagement>

    <publisher mode="off" assembly="Rickie.ExceptionManagement" type="Rickie.ExceptionManagement.DefaultPublisher" applicationName="Web Monitor"/>

    <publisher mode="off" assembly="Rickie.ExceptionManagement" type="Rickie.ExceptionManagement.CustomPublisher.EmailNotificationPublisher" fileName="c:\WebMonitorException.log" mailSender="WebServerMonitor@company.com" mailTo="yourmail@company.com " smtpServer="smtpServer" mailSubject="Web Monitor Exception"/>

    <publisher mode="off" assembly="Rickie.ExceptionManagement" type="Rickie.ExceptionManagement.CustomPublisher.MessageBoxPublisher" caption="Web Monitor V1.0 Exception"/>

    <publisher mode="off" assembly="Rickie.ExceptionManagement" type="Rickie.ExceptionManagement.CustomPublisher.XMLFormatPublisher" exceptionFormat="xml" fileName="c:\WebMonitorExceptionLog.xml"/>

  </exceptionManagement>

 

可以将上面的Email Notification打开,设定SMTP Server和你的Email地址。如下所示:

    <publisher mode="on" assembly="Rickie.ExceptionManagement" type="Rickie.ExceptionManagement.CustomPublisher.EmailNotificationPublisher" fileName="c:\WebMonitorException.log" mailSender="WebServerMonitor@abspc.com" mailTo="yourmail@company.com " smtpServer="smtpServer" mailSubject="Web Monitor Exception"/>

 

1.2 监视器循环运行的设置

用来设定Web Server监视器循环运行的一些基本参数。

          <appSettings>

                   <add key="EachWebInterval" value="10" />

                   <add key="TaskListInterval" value="600" />

                    <add key="ReservedSeparateChar" value="#" />

          </appSettings>

上面的示例设置中,将每个Web站点的访问间隔设置为10秒。同时,如果所有Web站点访问完毕,到下一个循环开始的间隔时间设置为600秒。ReservedSeparateChar用来设置系统使用到的隔离字符,一般而言不需要做任何修改。

 

1.3 Proxy Server的设置

  <ProxyServerSection>

      <XmlSerializableHashtable xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      <Entries>

        <Entry>

          <key xsi:type="xsd:string">UseProxyServer</key>

          <value xsi:type="xsd:string">false</value>

        </Entry>

        <Entry>

          <key xsi:type="xsd:string">ProxyServer</key>

          <value xsi:type="xsd:string"></value>

        </Entry>

        <Entry>

          <key xsi:type="xsd:string">Port</key>

          <value xsi:type="xsd:string"></value>

        </Entry>

        <Entry>

          <key xsi:type="xsd:string">Username</key>

          <value xsi:type="xsd:string"></value>

        </Entry>

        <Entry>

          <key xsi:type="xsd:string">Password</key>

          <value xsi:type="xsd:string"></value>

        </Entry>

        <Entry>

          <key xsi:type="xsd:string">Domain</key>

          <value xsi:type="xsd:string"></value>

        </Entry>

      </Entries>

    </XmlSerializableHashtable>

 </ProxyServerSection>

用来对Proxy Server的设置,用户可以直接通过工具自身提供的用户界面进行设置。可以通过点击Settings/Proxy Server访问Proxy Server Settings的界面。

 

2TaskList.config配置文件

            用来设定Web Server监视器监控的Web站点列表。如下所示:

<?xml version="1.0" encoding="utf-8" ?>

<WebServerList>

          <section name="Rickie's Blog">

                   <entry name="WebPage">www.cnblogs.com/rickie</entry>

                   <entry name="MinContentLength">10000</entry>

                   <entry name="MaxContentLength">100000</entry>

          </section>

          ……

</WebServerList>

section name会显示在左边的web列表上;

WebPage设定需要访问的URL

MinContentLength设定返回HTML字节最小长度;

MaxContentLength设定返回HTML字节最大长度,如果返回HTML长度不在指定范围内,Web Server监视器认为相应的Web站点出现异常,并记录异常日志,同时可以Email提醒用户。

 

4、程序主要运行界面

 

5About this release

(1) Fix the following bugs.

Thread is suspend; attempting to abort.

Thread is not user-suspended; it can not be resumed.
*
Download file is unavailable now. Sorry about that. 
*
Any  questions about it, please make comments below
. thanks.

原文地址:https://www.cnblogs.com/rickie/p/30895.html