Monitoring Services on Your Windows NT Server

Archived content. No warranty is made as to technical accuracy. Content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Published: October 15, 1999

By Ronald Nutter, MCSE for TechRepublic.com

flaglogo

Does each new day bring another Microsoft® Windows NT® Server into your company? Need to check out a service running on one of your Windows NT Servers? Svcmon.exe, a utility in the Windows NT Server Resource Kit, can help you and your staff be proactive rather than reactive. It lets you decode SNMP traps and use special software to check the server, among other tasks. To monitor services on your servers, you'll need to install a small utility on each Windows NT Server, and a Microsoft Exchange Server to route the messages.

Installing Svcmon.exe

The first step to monitoring the services you deem critical on a Windows NT Server is to install the Windows NT Server Resource Kit. I also recommend that you follow this up with the Windows NT Server Resource Kit Supplement 4. That way, you'll have the latest files for Svcmon.exe and any other tools you plan to use from the Resource Kit. After you've installed both Resource Kits, use Windows NT's Find utility to locate the directory containing Svcmon.exe. You'll want to either copy or move the file from that directory to \Winnt\System32.

Configuring Svcmon.exe

Set up a mail profile on the server you'll use to run Svcmon.exe so the warning e-mails can be sent. Although the documentation doesn't recommend against using Microsoft Outlook® Express, I prefer installing the Microsoft Office version of Outlook on the server just to be on the safe side. After you've installed Outlook, simply configure a mail profile for it just as you would on a regular workstation. You'll want to send a couple of test messages and have a few sent to you to make sure that everything is working.

Begin the configuration process by selecting Start, Programs, Resource Kit 4.0, and Management. Then click Service Monitoring Tool Configuration. If you see a message that says Windows NT can't find Svcmon.exe, check to make sure that Svcmon.exe is in the \Winnt\System32 directory. When the utility's splash screen appears, click Next to begin the configuration process.

The first screen you'll see contains the information needed by Svcmon.exe to send a message through your Exchange Server when a monitored service fails. The mail profile name probably will be filled in. Make sure it's the name you want to use. Then, verify and provide the Windows NT domain name the user resides in, the user name that belongs to the mail profile you're using, and the password associated with the user account you entered.

In the Exchange Recipients box, enter the mailboxes you want to send the alerts to when they're generated. When you need to specify multiple mailboxes, place a semicolon at the end of each mailbox and a space after the mailbox name before you enter the next one. (You also have the option of sending alerts to external Internet e-mail addresses.) At this point, click Next to proceed to the Service Monitoring Configuration screen.

Selecting Services to Monitor

When the Service Monitoring Configuration screen appears, the Windows NT Server name should already be filled in. First, click the Service drop-down list box to select the service you want to monitor. You'll need to decide how frequently you want to check if the service is running. The default time is 10 minutes. The best way to decide how often the service should be polled is to determine how long the service can be down before you should be notified. Keep in mind that if you decide to change the polling interval for a particular service after you've added it to the watch list, you'll have to delete the monitored service from Svcmon.exe and add it again with the new polling interval.

To determine whether Svcmon.exe has been installed and configured correctly, pick a noncritical service (for example, the Exchange Internet News Service on an Exchange Server) to initially monitor. To save time, select a fairly short polling interval, such as 10 seconds, so you can quickly see that everything has been set up correctly. After clicking Finish, you should see a message telling you that the configuration was successful. Just click OK and the configuration program will disappear from the screen. Be sure to stop the service you selected as a test (select Services in Control Panel). After waiting a few more seconds than the time you specified for the service polling interval, you can restart the service.

Your next step is to verify that the utility sent you e-mail alerts. If everything has worked correctly, you should see three e-mails. The first will say that the service was running; the second will say that the service is not running (the subject line starts with three right arrow characters); and the third message will say that the service is running.

Once you've finished the testing, you can select the services you want to monitor. When you restart the Smconfig program (Service Monitoring Tool Configuration), you may want to clear the password box and re-enter the password. I found that the tool doesn't keep track of the password correctly and encountered a problem logging on to the Windows NT Server during the process.

Depending on the amount of information you need when a service stops or starts, Svcmon.exe offers an additional level of logging. You can find more information in the Resource Kit Tools Information resource installed with the Resource Kit.

Windows NT Resource Kits

Windows NT Server Resource Kit Supplement 4
https://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=0735608377&p=technet&s=29736"mailto:rnutter@networkref.com">rnutter@networkref.com .
(Because of the large volume of e-mail that he receives, it's impossible for him to respond to every message. However, he does read them all.)

The above article is courtesy of TechRepublic https://www.techrepublic.com .

We at Microsoft Corporation hope that the information in this work is valuable to you. Your use of the information contained in this work, however, is at your sole risk. All information in this work is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by Microsoft Corporation. Microsoft Corporation shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages. All prices for products mentioned in this document are subject to change without notice.

International rights.