[mrtg] Re: Win 2000 MRTG setup

William Owen William.Owen at ProfilesInternational.com
Thu Feb 12 16:52:18 MET 2004


WMI is a scripting language used by Windows that comes built into every
version since 98 (If need be, you can add support for 95).  You call the WMI
scripts like this:
Target[WindowsServer]: `cscript //Nologo scriptname.vbs /option value`

 

I you like, I can show you an example of a config file.  The scripts that I
currently run can be viewed here:
ftp://ftp.williamowen.net/pub/MRTGScripts/.  There are others that I have
accumulated in the Unsorted folder, but the ones in the WMI folder should
give you a really good idea of what WMI is capable of.  The one caveat to
WMI is that MRTG cannot run as the system account if you wish to poll a
remote server with WMI.  I created a MRTGRunAs account on the domain so that
this function could be done.

 

  _____  

From: John Hamil [mailto:Jhamil at co.palm-beach.fl.us] 
Sent: Wednesday, February 11, 2004 3:03 PM
To: mrtg at list.ee.ethz.ch; William.Owen at profilesinternational.com
Subject: RE: [mrtg] Win 2000 MRTG setup

 

WMI... is that WMI Administrative Tools?

 

I installed it and wow there is a lot of information here. I am not really
sure where to look to try and find the CPU Usage and Memory Usage... 

 

Any tips you can give me about this software?

 

Thanks,

John

>>> William Owen <William.Owen at ProfilesInternational.com> 2/9/2004 3:30:23
PM >>>

If you are monitoring from a win2k or better box, might I suggest using WMI
to monitor your box.  MRTG with SNMP will do great things for your Ethernet
interfaces, but past that, MS likes to change OID instance names of
important things like Processors and Memory.  WMI will alleviate this issue.
That and you can track and graph any variable you can get from WMI.

-----Original Message-----
From: John Hamil [mailto:Jhamil at co.palm-beach.fl.us]
<mailto:Jhamil at co.palm-beach.fl.us%5d>  
Sent: Monday, February 09, 2004 2:06 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Win 2000 MRTG setup

I am having problems with my config for MRTG. Its on a windows 2000
server with SNMP installed. Right now Only 2 pages are being generated.
There should be 7 or 8 of them... 

Will anyone help me get this working? 

I know there are a lot of people out there having trouble setting up
MRTG on a windows system and getting out more then just the traffic...

Thanks to all who attempt

BTW I used
http://www.nbnetworks.co.uk/mrtg/mrtgmart/index.php?action=browse
<http://www.nbnetworks.co.uk/mrtg/mrtgmart/index.php?action=browse>  to
generate the code...

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-

MRTG.CFG:


# Global config parameters
WorkDir: E:\www\mrtg
Interval: 5
RunAsDaemon: Yes
EnableIPv6: no

Target[index]: 16777219:public at 151.132.16.113:
SetEnv[index]: MRTG_INT_IP="151.132.16.113"
MRTG_INT_DESCR="3Com-EtherLink-PCI"
MaxBytes[index]: 12500000
Title[index]: Traffic Analysis for 16777219 -- ERMJHAMIL
PageTop[index]: <H1>Traffic Analysis for 16777219 -- ERMJHAMIL</H1>
<TABLE>
   <TR><TD>System:</TD>     <TD>ERMJHAMIL in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>3Com-EtherLink-PCI  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>12.5 MBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>151.132.16.113 (ermjhamil)</TD></TR>
</TABLE>

# Win NT CPU Utilization
Target[151.132.16.190_1_WinNTCPUUtil]:
.1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.1:public at 151.132.16.190::2
:2::1
Options[151.132.16.190_1_WinNTCPUUtil]: growright, gauge
WithPeak[151.132.16.190_1_WinNTCPUUtil]: ymw
YLegend[151.132.16.190_1_WinNTCPUUtil]: % Utilization
MaxBytes[151.132.16.190_1_WinNTCPUUtil]: 523444000
LegendI[151.132.16.190_1_WinNTCPUUtil]: &nbsp;Load:
LegendO[151.132.16.190_1_WinNTCPUUtil]: &nbsp;Load:
Title[151.132.16.190_1_WinNTCPUUtil]: Win NT CPU Utilization
Legend1[151.132.16.190_1_WinNTCPUUtil]: Proc Load in next minute
Legend2[151.132.16.190_1_WinNTCPUUtil]: Proc Load in next minute
Legend3[151.132.16.190_1_WinNTCPUUtil]: Maximal 5 Minute Proc Load
Legend4[151.132.16.190_1_WinNTCPUUtil]: Maximal 5 Minute Proc Load
ShortLegend[151.132.16.190_1_WinNTCPUUtil]: %
Suppress[151.132.16.190_1_WinNTCPUUtil]: y
PageTop[151.132.16.190_1_WinNTCPUUtil]: <table width="100%"
border="0">
<tr>
  <td><h2>Win NT CPU Utilization</h2></td>
</tr>
<tr>
  <td><p>CPU</p></td>
</tr>
</table>

PageFoot[151.132.16.190_1_WinNTCPUUtil]: <br><div
align="center"><small>Generated by <a
href="http://www.nbnetworks.co.uk/mrtg/mrtgmart/
<http://www.nbnetworks.co.uk/mrtg/mrtgmart/> ">MRTG
Mart</a></small></div>


# Win NT FTP/HTTP Connections
Target[151.132.16.190_0_WinNTConns]:
.1.3.6.1.4.1.311.1.7.2.1.13.0.0&.1.3.6.1.4.1.311.1.7.3.1.13.0.0:public at 151.1
32.16.190::2:2::1

Options[151.132.16.190_0_WinNTConns]: growright, gauge
WithPeak[151.132.16.190_0_WinNTConns]: ymw
YLegend[151.132.16.190_0_WinNTConns]: Connections
MaxBytes[151.132.16.190_0_WinNTConns]: 523444000
LegendI[151.132.16.190_0_WinNTConns]: &nbsp;ftp:
LegendO[151.132.16.190_0_WinNTConns]: &nbsp;http:
Title[151.132.16.190_0_WinNTConns]: Win NT FTP/HTTP Connections
Legend1[151.132.16.190_0_WinNTConns]: Number of ftp in next minute
Legend2[151.132.16.190_0_WinNTConns]: Number of http in next minute
Legend3[151.132.16.190_0_WinNTConns]: Maximal 5 Minute # of ftp
Legend4[151.132.16.190_0_WinNTConns]: Maximal 5 Minute # of http
ShortLegend[151.132.16.190_0_WinNTConns]: Bytes
PageTop[151.132.16.190_0_WinNTConns]: <table width="100%" border="0">
<tr>
  <td><h2>Win NT FTP/HTTP Connections</h2></td>
</tr>
<tr>
  <td><p>Connections</p></td>
</tr>
</table>

PageFoot[151.132.16.190_0_WinNTConns]: <br><div
align="center"><small>Generated by <a
href="http://www.nbnetworks.co.uk/mrtg/mrtgmart/
<http://www.nbnetworks.co.uk/mrtg/mrtgmart/> ">MRTG
Mart</a></small></div>


# Win NT Disk Utilization
Target[151.132.16.190_0_WinNTDiskUtil]:
.1.3.6.1.2.1.25.2.3.1.6.2&.1.3.6.1.2.1.25.2.3.1.6.3:public at 151.132.16.190::2
:2::1

Options[151.132.16.190_0_WinNTDiskUtil]: growright, gauge
WithPeak[151.132.16.190_0_WinNTDiskUtil]: ymw
YLegend[151.132.16.190_0_WinNTDiskUtil]: Blocks Used
MaxBytes[151.132.16.190_0_WinNTDiskUtil]: 523444000
LegendI[151.132.16.190_0_WinNTDiskUtil]: &nbsp;C:
LegendO[151.132.16.190_0_WinNTDiskUtil]: &nbsp;D:
Title[151.132.16.190_0_WinNTDiskUtil]: Win NT Disk Utilization
Legend1[151.132.16.190_0_WinNTDiskUtil]: C: in next minute
Legend2[151.132.16.190_0_WinNTDiskUtil]: D: in next minute
Legend3[151.132.16.190_0_WinNTDiskUtil]: Maximal 5 Minute C:
Legend4[151.132.16.190_0_WinNTDiskUtil]: Maximal 5 Minute D:
ShortLegend[151.132.16.190_0_WinNTDiskUtil]: Blocks
PageTop[151.132.16.190_0_WinNTDiskUtil]: <table width="100%"
border="0">
<tr>
  <td><h2>Win NT Disk Utilization (4096 bytes/block)</h2></td>
</tr>
<tr>
  <td><p>Disk</p></td>
</tr>
</table>

PageFoot[151.132.16.190_0_WinNTDiskUtil]: <br><div
align="center"><small>Generated by <a
href="http://www.nbnetworks.co.uk/mrtg/mrtgmart/
<http://www.nbnetworks.co.uk/mrtg/mrtgmart/> ">MRTG
Mart</a></small></div>


# Win NT Faults/Pages per second
Target[151.132.16.190_0_WinNTPgFault]:
.1.3.6.1.4.1.311.1.1.3.1.1.4.1.0&.1.3.6.1.4.1.311.1.1.3.1.1.4.9.0:public at 151
.132.16.190::2:2::1

Options[151.132.16.190_0_WinNTPgFault]: growright, gauge
WithPeak[151.132.16.190_0_WinNTPgFault]: ymw
YLegend[151.132.16.190_0_WinNTPgFault]: Faults per sec
MaxBytes[151.132.16.190_0_WinNTPgFault]: 523444000
LegendI[151.132.16.190_0_WinNTPgFault]: &nbsp;Faults
LegendO[151.132.16.190_0_WinNTPgFault]: &nbsp;HardFaults:
Title[151.132.16.190_0_WinNTPgFault]: Win NT Faults/Pages per second
Legend1[151.132.16.190_0_WinNTPgFault]: Page Faults in next minute
Legend2[151.132.16.190_0_WinNTPgFault]: Hard Page Faults in next
minute
Legend3[151.132.16.190_0_WinNTPgFault]: Maximal 5 Minute Page Faults
Legend4[151.132.16.190_0_WinNTPgFault]: Maximal 5 Minute Hard Page
Faults
ShortLegend[151.132.16.190_0_WinNTPgFault]: Faults
PageTop[151.132.16.190_0_WinNTPgFault]: <table width="100%"
border="0">
<tr>
  <td><h2>Win NT Faults/Pages per second</h2></td>
</tr>
<tr>
  <td><p>Page Faults</p></td>
</tr>
</table>

PageFoot[151.132.16.190_0_WinNTPgFault]: <br><div
align="center"><small>Generated by <a
href="http://www.nbnetworks.co.uk/mrtg/mrtgmart/
<http://www.nbnetworks.co.uk/mrtg/mrtgmart/> ">MRTG
Mart</a></small></div>


# Win NT Memory Used/Free
Target[151.132.16.190_0_WinNTMemUtil]:
.1.3.6.1.4.1.311.1.1.3.1.1.4.3.0&.1.3.6.1.4.1.311.1.1.3.1.1.4.2.0:public at 151
.132.16.190::2:2::1

Options[151.132.16.190_0_WinNTMemUtil]: growright, gauge
WithPeak[151.132.16.190_0_WinNTMemUtil]: ymw
YLegend[151.132.16.190_0_WinNTMemUtil]: Bytes
MaxBytes[151.132.16.190_0_WinNTMemUtil]: 523444000
LegendI[151.132.16.190_0_WinNTMemUtil]: &nbsp;Used
LegendO[151.132.16.190_0_WinNTMemUtil]: &nbsp;Free:
Title[151.132.16.190_0_WinNTMemUtil]: Win NT Memory Used/Free
Legend1[151.132.16.190_0_WinNTMemUtil]: Used Memory in next minute
Legend2[151.132.16.190_0_WinNTMemUtil]: Free Memory in next minute
Legend3[151.132.16.190_0_WinNTMemUtil]: Maximal 5 Minute Used Memory
Legend4[151.132.16.190_0_WinNTMemUtil]: Maximal 5 Minute Free Memory
ShortLegend[151.132.16.190_0_WinNTMemUtil]: Bytes
PageTop[151.132.16.190_0_WinNTMemUtil]: <table width="100%"
border="0">
<tr>
  <td><h2>Win NT Memory Used/Free</h2></td>
</tr>
<tr>
  <td><p>Memory</p></td>
</tr>
</table>

PageFoot[151.132.16.190_0_WinNTMemUtil]: <br><div
align="center"><small>Generated by <a
href="http://www.nbnetworks.co.uk/mrtg/mrtgmart/
<http://www.nbnetworks.co.uk/mrtg/mrtgmart/> ">MRTG
Mart</a></small></div>


# Win NT Processes/Users Utilization
Target[151.132.16.190_0_WinNTProcUtil]:
.1.3.6.1.2.1.25.1.6.0&.1.3.6.1.2.1.25.1.5.0:public at 151.132.16.190::2:2::1

Options[151.132.16.190_0_WinNTProcUtil]: growright, gauge
WithPeak[151.132.16.190_0_WinNTProcUtil]: ymw
YLegend[151.132.16.190_0_WinNTProcUtil]: Bytes
MaxBytes[151.132.16.190_0_WinNTProcUtil]: 523444000
LegendI[151.132.16.190_0_WinNTProcUtil]: &nbsp;Procs:
LegendO[151.132.16.190_0_WinNTProcUtil]: &nbsp;Users:
Title[151.132.16.190_0_WinNTProcUtil]: Win NT Processes/Users
Utilization
Legend1[151.132.16.190_0_WinNTProcUtil]: Used Procs in next minute
Legend2[151.132.16.190_0_WinNTProcUtil]: Number of Users in next
minute
Legend3[151.132.16.190_0_WinNTProcUtil]: Maximal 5 Minute # of Procs
Legend4[151.132.16.190_0_WinNTProcUtil]: Maximal 5 Minute # of Users
ShortLegend[151.132.16.190_0_WinNTProcUtil]: Bytes
PageTop[151.132.16.190_0_WinNTProcUtil]: <table width="100%"
border="0">
<tr>
  <td><h2>Win NT Processes/Users Utilization</h2></td>
</tr>
<tr>
  <td><p>Procs</p></td>
</tr>
</table>

PageFoot[151.132.16.190_0_WinNTProcUtil]: <br><div
align="center"><small>Generated by <a
href="http://www.nbnetworks.co.uk/mrtg/mrtgmart/
<http://www.nbnetworks.co.uk/mrtg/mrtgmart/> ">MRTG
Mart</a></small></div>

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-


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