Share via


Gather and Display WWW Service Uptime Data

Applies To: Windows Server 2003, Windows Server 2003 with SP1

You can use Internet Information Services (IIS) 6.0 Performance Monitor to record and display data about the uptime of World Wide Web Publishing Service (WWW service) and Web sites by using the Service Uptime performance counter. These procedures support the task of determining the availability of the WWW service and Web sites running on IIS.

Use the following procedures to:

  • Create a log file to record WWW service uptime data.

  • Select a performance counter to generate uptime data for the WWW service and your Web sites.

  • Start the Service Uptime performance counter.

  • Connect System Monitor to the data in the log file you are using to gather WWW service and Web site uptime data.

  • Read the display window in the details panel of System Monitor to display WWW service and Web site uptime data.

Requirements

  • Credentials: Membership in the Administrators group on the local computer.

  • Tools: Perfmon.msc; Iis.msc.

Recommendation

As a security best practice, log on to your computer using an account that is not in the Administrators group, and then use the Run as command to run IIS Manager as an administrator. At the command prompt, type **runas /user:**administrative_accountname mmc %systemroot%\system32\inetsrv\iis.msc.

Procedures

Gathering WWW Service Uptime Data

You can use IIS 6.0 Performance Monitor to create a log file, and to select and start the Service Uptime performance counter.

To gather uptime data on the WWW service and Web sites

  1. Open Administrative Tools, and then click Performance.

  2. In the console pane, click Performance Logs and Alerts, and then click Counter Logs.

  3. Right-click in the details pane, and select New Log Settings from the menu.

  4. Enter the name you want to use for the new log, for example, WWWServiceUptime, and then click OK.

    The property sheets for the new counter log open.

  5. On the General tab, click Add Counters.

  6. In the Add Counters window, if the performance counters you want to monitor are on the local computer, click Use local computer counters. If the performance counters you want to monitor are on a remote computer, click Select counters from computer, and then click the remote computer in the drop-down list.

  7. Under Performance object, click Web Service in the drop-down list.

  8. Click Select counters from list, and then click the Service Uptime counter.

  9. Click All instances.

  10. Click Add, and then click Close.

    The Service Uptime counter for the computer you selected displays in the Counters window on the General tab.

  11. Click OK.

  12. To start logging data, select the log file on the Performance detail pane and, on the Action menu, click Start.

  13. The counter log you created displays in green on the Computer Logs detail pane.

  14. To manually stop logging data, select the log file and, on the Action menu, click Stop.

  15. To start logging data again, select the log file and, on the Action menu, click Start.

Displaying WWW Service Uptime Data

Consider the following guidelines for displaying WWW service uptime data:

  • This procedure reads a log file that gathers WWW service uptime data. Before you can read the log file, you must create the file and connect it to the performance counter, as described earlier in this section.

  • The file logs data for all instances of the Service Uptime performance counter. One instance, named the Total instance, accumulates WWW service data. Each of the other instances accumulates data about a Web site. Each Web site is recorded by a separate instance.

To display data for WWW service uptime and Web site uptime

  1. Open Administrative Tools, and click Performance.

  2. In the console pane, click System Monitor.

  3. Right-click in the details pane, and then click Properties.

  4. On the Source tab, under Data Source, click Log files, and then click Add.

  5. In the Select Log File window, navigate to the log file that you created to gather WWW service and Web sites uptime data.

  6. Select the log file name from the list, and then click Open.

  7. Click the Data tab, and then click the Add button. Under Performance object, select Web Service from the drop-down list.

  8. Click the Select counter from list button and click Service Uptime.

  9. Click the All instances button.

  10. Click Add, and then click Close.

  11. On the System Monitor Properties window, click OK.

    The Service Uptime counter instances appear in the list in the Performance detail pane.

  12. Select the instance desired to view the graph and statistics for WWW Service ("_Total"), or for each Web site.