[mrtg] Re: MS Exchange?

Stieers, Ken KStieers at DainRauscher.com
Tue Jul 18 15:46:07 MEST 2000

I'm doing it to watch MTA work queues, MTA Traffic, IMC Queues  and IMC

Here are some notes on getting NT to give you data via SNMP:

Posted to the list on 2/23/98 by Adrian Crowther was the following

  >I now feel confitedent to post this to you all. I hope this is of help
  >in solving the queries that many of you have posted to the Group.
  >I have been working I getting usefull stats out of a NT Box for a while
  >now and I feel I have ironned out all the bugs.
  >Firstly you need to get hold of the Resource Kit (I have only testes
  >this on NT4 with NT 4 Res Kit)
  >Once installed edit the Perfm.bat file and alter as below:
  >Line 14
  >Add which objects you want to monitor I changed it to include Disk Space
  >Monitoring (As Below)
  >perf2mib perfmib.mib perfmib.ini memory 1 memory processor 2 CPU
  >"Network Segment" 3 net PhysicalDisk 4 disk LogicalDisk 5 disk
  >Line 20
  >Add %NTResKit%\smi.mib and change perfmib.mib to %NTResKit%\perfmib.mib
  >and change %NTResKit%\Mib_ll.mib to %NTResKit%\Mib_ii.mib as below :-
  >mibcc -o%NTResKit%\mib.bin -n -t -w2 %NTResKit%\smi.mib
  >%NTResKit%\LMMIB2.MIB %NTResKit%\Mib_ii.mib %NTResKit%\perfmib.mib
  >Run the Batch File as Administrator. "As is flicks through the file it
  >is hard to see what is happening so I suggest running it from a command
  >prompt with sending the output to a file ie perfm.bat > perf.txt
  >Check to make sure the whole tree is prointed and there are no errors.
  >Stop the SNMP Service and copy perfmib.dll, perfmib.ini and Mib.bin
  >across to the system directory (It Sometimes Fail's)
  >Now if all goes well you should be able to use snmp walk to find what
  >you want.
  >There is a util with the reskit called SNMPUTIL which I have found to be
  >very good.
  >SNMPUTIL walk/get Community DEVICE IP OID.
  >For the OID remember to start the OID with a . ie for CPU SNMP WALK
  >Public ?.?.?.?. "."
  >Here are a Few examples OID.
  >Please note that these are dependent on the changes you made to
  >perfm.bat (Line 14 above)
  >You will need to perfom an SNMP walk to find the OID's for Disk space
  >monitoring as the OID seems to change with respect to the Hardware
  >Configuration of the Server
  >Disk Space
  >MRTG.CFG Example
  >MaxBytes[?.?.?.?.cpu]: 100
  >AbsMax[?.?.?.?.cpu]: 100000
  >Title[?.?.?.?.cpu]: CPU Load Average for ?.?.?.?
  >PageTop[?.?.?.?.cpu]: <H1> CPU Load for ?.?.?.?. - System Management
  >Server Server </H1>
  >Options[?.?.?.?.cpu]: gauge
  >YLegend[?.?.?.?.cpu]: Load Average
  >ShortLegend[?.?.?.?.cpu]: load
  >Legend1[?.?.?.?.cpu]: Load Average over 1 Minutes
  >Legend2[?.?.?.?.cpu]: Load Average over 5 Minutes
  >LegendI[?.?.?.?.cpu]: &nbsp;1 min:
  >LegendO[?.?.?.?.cpu]: &nbsp;5 min:
  >MaxBytes[?.?.?.?.PageSec]: 1000
  >Title[?.?.?.?.PageSec]: Pages Per Second ?.?.?.?.
  >PageTop[?.?.?.?.PageSec]: <H1> Pages per Second ?.?.?.?. - System
  >Management Server Server
  > </H1>
  >YLegend[?.?.?.?.PageSec]: P/S
  >Options[?.?.?.?.PageSec]: noinfo,  gauge, nopercent, absolute
  >ShortLegend[?.?.?.?.PageSec]: P/S
  >Legend1[?.?.?.?.PageSec]: Pages
  >Legend2[?.?.?.?.PageSec]: Pages
  >LegendI[?.?.?.?.PageSec]: &nbsp;Pages per Sec:
  >MaxBytes[?.?.?.?.FreeSpaceCD]: 10000
  >Title[?.?.?.?.FreeSpaceCD]: free Hard Disk Space for C and D ?.?.?.?.
  >PageTop[?.?.?.?.FreeSpaceCD]: <H1> Free Hard Disk Space for C ?.?.?.?. -
  >System Management Server Server
  > </H1>
  >YLegend[?.?.?.?.FreeSpaceCD]: MB
  >Options[?.?.?.?.FreeSpaceCD]: noinfo,  gauge, n
  >ShortLegend[?.?.?.?.FreeSpaceCD]: MB
  >Legend1[?.?.?.?.FreeSpaceCD]: C Drive
  >Legend2[?.?.?.?.FreeSpaceCD]: D Drive
  >LegendI[?.?.?.?.FreeSpaceCD]: &nbsp;C Free:
  >LegendO[?.?.?.?.FreeSpaceCD]: &nbsp;D Free:
  >Adrian Crowther
  >PS Many thanks to Tobias for his hard work in creating this wonderful

Also, here is some info on adding to the PERFM.zip (an encapsulated version
of the above) that's available from ftp.shellserv.com.   Its focused on
Exchange, so it will definatly be usefull:

In order to add ANY PerfMon object to that shipped with the PERFM.ZIP file
here's what you need to do (You need the RESKIT and PerfM.zip for this):

(all commands are run on the server being montiored)
1.  Get and install the PERFM.Zip stuff. (from ftp.shellserv.com)
2.  Look a the PERFMIB.ini that comes with PERFM.ZIP and look at the last
number used.  The last time I looked it was 27.  Remember that number!
3.  Run PERF2MIB to extract the MIB data from the PerfMon objects on the
machine.  You'll create a mib file (newmib.mib) and an INI file newmib.ini.
The objects can be any of the objects you can access in PerfMon.  If the
object name has a space in it, put double quotes around it.  The numbers
MUST be unique, including those already installed (you'll lose other stuff
you may be montioring otherwise).  ie.  If you are adding to just the raw
PERFM.ZIP stuff, you need to start with 28.  If you use the example below, 
next time you add more objects you'll start with 31.
    ex: (all one line)
	perf2mib newmib.mib newmib.ini MSExchangeMTA 28 mta "MSExchangeMTA
Connections" 29 mtaconn MSExchangeIMC 30 imc

4.  Concatenate the old ini file and the new ini file:
	copy perfmib.ini+newmib.ini perfmib.ini
5.  Compile the new mib in with the old one: (all one line)
	mibcc -omib.bin -n -t -w2 smi.mib LMMIB2.MIB mib_ii.mib perfmib.mib
6.  Stop the SNMP service Replace the PERFMIB.INI and MIB.BIN and then
restart the SNMP service
	net stop snmp
	copy perfmib.ini %systemroot%\system32\perfmib.ini
	copy mib.bin %systemroot%\system32\mib.bin
	net start snmp

Now you'll have your new objects and they'll be at OIDS that start with
., ., etc. 

If you have a mib browser (like Getif) don't forget to add the PerfMib.mib
in to the proper directory, compile it, whatever. 

I've also noted some times the compile doesn't/won't work, not matter what 
you try.  If its available to you, try using the EXE/DLL files from the 
SERVER\SUPPORT\SNMP\I386 directory of the Exchange 5.5 Server CD. 

> -----Original Message-----
> From: jbrady at midatlantic.aaa.com [mailto:jbrady at midatlantic.aaa.com]
> Sent: Tuesday, July 18, 2000 8:32 AM
> To: 'mrtg at list.ee.ethz.ch'
> Subject: [mrtg] MS Exchange?
> I'm considering using MTRG to give me and IN/OUT report on 
> mail messages for
> a Microsoft Exchange 5.5 server.
> Read thought the docs and history, but before I start digging 
> into this on
> my own I thought I would see if anyone is already doing it.
> Any thoughts or comments?
> 				Jeffery S. Brady
> 				Network Engineer
> 				AAA Mid-Atlantic
> 				2040 Market Street
> 				Philadelphia, PA  19103
> 				**
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list