<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi Steve<BR>
<BR>
Thank you very much for the examples you provided. This should make it easier to implement.<BR>
<BR>
One last question:<BR>
Do I need to reboot my Exchange server or restart any Exchange related services when I install this nsclient+++ or pnsclient?<BR>
You mentioned about the TCP port and that nsclient has to be started first (before exchange) to function.<BR>
BTW: Which Exchange service use TCP port 1248?<BR>
I can maybe set a dependency on this service to have nsclient start first.<BR>
<BR>
Please advice.<BR>
<BR>
Thanks.<BR>
<BR>
/Thomas<BR><BR><BR><BR><BR>> Message: 4<BR>> Date: Thu, 7 Jun 2007 11:49:27 +1200<BR>> From: "Steve Shipway" <s.shipway@auckland.ac.nz><BR>> Subject: Re: [mrtg] Monitor Exchange 2003 related counters<BR>> To: "Thomas Olsen" <thomas_olsen44@hotmail.com>,<BR>> <mrtg@lists.oetiker.ch><BR>> Message-ID:<BR>> <12A6FDDD13C460408A6E47E5DB1235A2D6F0C4@UXCHANGE3.UoA.auckland.ac.nz><BR>> Content-Type: text/plain; charset="us-ascii"<BR>> <BR>> Exchange has a nasty habit of stealing the TCP port used by pNSclient.<BR>> You need to either start nsclient first, or else configure Exchange to<BR>> use higher numbered ports - there is a registry setting to do this, but<BR>> I cant remember what it is. NSclient uses port tcp/1248. If this<BR>> happens, pnsclient just stops working. Exchange, on the other hand,<BR>> continues on quite happily as it just pinches a different port.<BR>> <BR>> <BR>> <BR>> Steve<BR>> <BR>> <BR>> <BR>> Here is a template for some Exchange2003 counters (LHNAME=long hostname,<BR>> SHNAME=short hostname) which used the <FONT face="">mrtg-<FONT face="">pnsclient.pl</FONT></FONT> utility.<BR>> <BR>> <BR>> <BR>> Target[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: `<FONT face="">mrtg-<FONT face="">pnsclient.pl</FONT></FONT> -H %LHNAME% -v COUNTER<BR>> -l "\\SMTP Server(_Total)\\Local Queue Length" -v COUNTER -l "\\SMTP<BR>> Server(_Total)\\Remote Queue Length"`<BR>> <BR>> Title[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: %SHNAME% Exchange SMTP Queue<BR>> <BR>> MaxBytes[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: 10000<BR>> <BR>> PageTop[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: null<BR>> <BR>> LegendI[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: lcl:<BR>> <BR>> LegendO[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: rmt:<BR>> <BR>> YLegend[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: Queue Length<BR>> <BR>> ShortLegend[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: &nbsp;<BR>> <BR>> Legend1[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: Local SMTP queue length<BR>> <BR>> Legend2[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: Remote SMTP queue length<BR>> <BR>> Legend3[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: Peak local SMTP queue length<BR>> <BR>> Legend4[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: Peak remote SMTP queue length<BR>> <BR>> Options[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: growright gauge<BR>> <BR>> SetEnv[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: <FONT face="">MRTG_INT_DESCR</FONT>="Exch: SMTP Queue"<BR>> <BR>> routers.cgi*Mode[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: generic<BR>> <BR>> routers.cgi*Options[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: nopercent nomax fixunit<BR>> integer nototal<BR>> <BR>> routers.cgi*Incompact[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: no<BR>> <BR>> routers.cgi*InSummary[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: yes<BR>> <BR>> routers.cgi*Icon[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: mail-sm.gif<BR>> <BR>> routers.cgi*Summary[%SHNAME%-<FONT face="">exch-smtpq</FONT>]: Exchange<BR>> <BR>> <BR>> <BR>> Target[%SHNAME%-exch-tx]: `<FONT face="">mrtg-<FONT face="">pnsclient.pl</FONT></FONT> -H %LHNAME% -v COUNTER -l<BR>> "\\SMTP Server(_Total)\\Messages Received Total" -v COUNTER -l "\\SMTP<BR>> Server(_Total)\\Messages Sent Total"`<BR>> <BR>> Title[%SHNAME%-exch-tx]: %SHNAME% Exchange Message Transfer<BR>> <BR>> MaxBytes[%SHNAME%-exch-tx]: 10000<BR>> <BR>> PageTop[%SHNAME%-exch-tx]: null<BR>> <BR>> LegendI[%SHNAME%-exch-tx]: in :<BR>> <BR>> LegendO[%SHNAME%-exch-tx]: out:<BR>> <BR>> YLegend[%SHNAME%-exch-tx]: Messages/min<BR>> <BR>> ShortLegend[%SHNAME%-exch-tx]: /min<BR>> <BR>> Legend1[%SHNAME%-exch-tx]: Inbound msg transfer<BR>> <BR>> Legend2[%SHNAME%-exch-tx]: Outbound msg transfer<BR>> <BR>> Legend3[%SHNAME%-exch-tx]: Peak Inbound transfer<BR>> <BR>> Legend4[%SHNAME%-exch-tx]: Peak Outbound transfer<BR>> <BR>> Options[%SHNAME%-exch-tx]: growright perminute<BR>> <BR>> SetEnv[%SHNAME%-exch-tx]: <FONT face="">MRTG_INT_DESCR</FONT>="Exch: Msg Transfer"<BR>> <BR>> routers.cgi*Mode[%SHNAME%-exch-tx]: generic<BR>> <BR>> routers.cgi*Options[%SHNAME%-exch-tx]: nopercent nomax fixunit<BR>> <BR>> routers.cgi*Icon[%SHNAME%-exch-tx]: mail-sm.gif<BR>> <BR>> routers.cgi*Summary[%SHNAME%-exch-tx]: Exchange<BR>> <BR>> routers.cgi*InMenu[%SHNAME%-exch-tx]: no<BR>> <BR>> routers.cgi*Icon[Exchange]: mail-sm.gif<BR>> <BR>> <BR>> <BR>> <BR>> One question though.<BR>> Have you seen any issues on your Exchange server after installing<BR>> pNSclient or nsclient++?<BR>> I am a bit reluctant to install any third party software of my Exchange<BR>> server which may cause performance or stability issues.<BR>> <BR>> And if anybody has an example script on how to nsclient to monitor<BR>> exchange SMTP mail queue, etc, it would be great.<BR>> nd join the i'm Initiative now. It's free. Make it count!<BR>> <http://im.live.com/messenger/im/home/?source=TAGWL_June07> <BR>> <BR>> <BR>> <BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070607/fa7f903c/attachment-0001.html <BR>> <BR>> ------------------------------<BR>> <BR><BR><br /><hr />Make every IM count. Download Windows Live Messenger and join the i'm Initiative now. It's free. <a href='http://im.live.com/messenger/im/home/?source=TAGWL_June07' target='_new'>Make it count!</a></body>
</html>