Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

August 27, 2002 12:00 AM

Monitoring Exchange 2000

Get the most from the mail server's built-in tools
Windows IT Pro
InstantDoc ID #26183
Rating: (1)

The best monitoring tools for Exchange 2000 Server are third-party add-ons, but Exchange Server and Windows 2000 offer several useful monitoring tools, including Exchange System Manager (ESM) and Performance Monitor, that help get the job done. Exchange's built-in monitoring capabilities let you track virtual memory, CPU use, free hard disk space, Win2K services, SMTP queue growth, and X.400 queue growth. Let's discuss how to configure and use some of these tools to perform basic monitoring in your Exchange environment.

Tracking Mail Queues
A limitation of ESM is that it can't display a consolidated view of mail queues from multiple servers across an Exchange organization. To view an SMTP queue on a server, you must run ESM, navigate to the desired administrative group, click Servers, choose your server, and expand the Protocols container, the SMTP container, the desired Default SMTP Virtual Server container, and the Queues folder. This exercise requires several mouse clicks; checking the queues on 10 Exchange machines in different Administrative Groups might require 60 mouse clicks.

You can create a Microsoft Management Console (MMC) console that uses Performance Monitor (perfmon.exe) to view and monitor queues for a selected group of Exchange machines. To open Performance Monitor, click Start, Programs, Administrative Tools, Performance. This Win2K tool retrieves information from performance counters that applications such as Exchange publish. A small application might publish counters for just one performance object, but large applications such as Exchange divide performance reporting across a set of objects. For example, to monitor SMTP activity, you can select the SMTP Server performance object. However, because an Exchange server can host multiple SMTP virtual servers that do the actual work of processing messages, you have a further level of granularity to deal with. You must select an "instance"*in this case, the SMTP virtual server*that you want to monitor. To monitor queue activity for the default SMTP virtual server, select the performance object SMTP Server, the instance SMTP 1, and the performance counters that you want to monitor for that object, as Figure 1 shows. The default SMTP virtual server corresponds to instance SMTP 1; if you have multiple SMTP virtual servers on your server, those servers will be numbered SMTP 2, SMTP 3, and so on.

The following counters provide a good overview of messaging activity on a server, so add them to your MMC console:

  • Categorizer Queue Length
  • Current Messages in Local Delivery
  • Local Queue Length
  • Local Retry Queue Length
  • Remote Queue Length
  • Remote Retry Queue Length

If your administrative group includes some Exchange Server 5.5 machines, the Message Transfer Agent (MTA) handles traffic to the legacy Exchange servers, so you must monitor the MTA queue lengths. To view the MTA queue lengths, select the MSExchangeMTA Connections performance object and the Associations counter.

You can add performance counters from multiple servers to the console. This feature is useful if you want to gain an overview of queues across multiple servers. However, make sure that reasonable connectivity to a remote server exists before you attempt to retrieve any performance data from that server. A network failure is the best possible guarantee that messages will accumulate in queues, and you probably won't need a monitoring tool to tell you when a failure happens.

To customize the Performance Monitor console, select System Monitor and choose Properties. If you're monitoring servers across a WAN, go to the General tab and increase the polling interval from the default value of 1 second to 30 seconds, as Figure 2 shows. On the Graph tab of the System Monitor Properties dialog box, the vertical scale defaults to 100; I usually change this setting to 50. Give the chart a meaningful title and labels so that other administrators can understand the meaning of the data that the console displays. Because the sample console collects data about mail queues from servers in Dublin, Ireland, and Valbonne, France, I've named it Dublin and Valbonne Mail Queues. When you've added all the servers and finished customizing the chart, save the console for future use by clicking Console, Save As.

Configuring Alerts, Monitors, and Notifications with Performance Monitor
You can configure Performance Monitor to send alerts to notify administrators when problems occur. To set up an alert, click Performance Monitor Alerts and Logs, click Alerts, then right-click and select New Alert.

Add the counters that you want to monitor. The default interval is 5 seconds, but you can increase the interval to 30 seconds or 60 seconds to reduce network traffic. You must set the alert value and interval value on each counter.

You set the notification method on the Action tab, as Figure 3 shows. In this example, the alert sends a message to a computer. This alert mechanism uses the Messenger Service, so ensure that the Messenger Service is enabled on your servers and clients. You can also run a program to send a notification (e.g., a program can call a pager or send a Short Message Service*SMS*message to a cell phone). An alert can trigger a performance log, which can be useful for gathering information for troubleshooting purposes. To save the alert, click Console, Save As, and choose a meaningful name such as Exchange Servers Alert.msc.

Related Content:

ARTICLE TOOLS

Comments
  • GREGORY
    8 years ago
    Jul 14, 2004

    Good Article, but I want a way to monitor the Exchange queues through a Script.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.