[rrd-users] Re: Windows Oids

Lib Curtis lebbeus7 at lc7.net
Tue Nov 12 23:37:03 MET 2002


It took a while, but I finally found the ones that work on Win2K:

1. Go to http://www.wtcs.org/snmp4tpc/snmp4w2k.htm and download the free 
snmp4w2k-std.zip (unless you need the additional support for the products 
and services that the "Plus" version which  you have to pay for). Unpack 
the executable and install it on the Win2K boxes to be monitored.

2. Copy all of the MIB files installed in \SNMP4W2K-STD\MIBS directory 
(wherever you install the package) to wherever you MIB browser can access 
them. For example, if you use getif, you would put them in the \getif\mibs 
directory, delete the .index file, fire up getif and walk the Win2K box to 
be monitored to find the appropriate OIDs.

3. Here are some MRTG templates that I have used successfully to monitor 
Win2K boxes having found the OIDs I wanted using the procedure above:

# Windows 2000 processor utilization. Based on MIBII Host MIB.
#
# Vendor Specific Auto-Discovery Entry:
# 
1.3.6.1.2.1.25.3.3.1.2|1.3.6.1.2.1.25.3.3.1.2|microsoft_win2k_cpu|tree|CPU 
Utilization
#
# Example CFGNAME: [DEVICE NAME]-percent_processor_util
# (add instance number to the end of the name for multiple processors)

Target[$CFGNAME_cpu]: 
1.3.6.1.2.1.25.3.3.1.2.5&1.3.6.1.2.1.25.3.3.1.2.5:$COMMUNITY@$IPADDRESS * 100
MaxBytes[$CFGNAME_cpu]: 100
Options[$CFGNAME_cpu]:  growright, gauge, unknaszero
WithPeak[$CFGNAME_cpu]: wmy
YLegend[$CFGNAME_cpu]: % Utilization
ShortLegend[$CFGNAME_cpu]: %
Legend1[$CFGNAME_cpu]: Proc Load in next minute
Legend2[$CFGNAME_cpu]: .
Legend3[$CFGNAME_cpu]: Maximal 5 Minute Proc Load
Legend4[$CFGNAME_cpu]: .
LegendI[$CFGNAME_cpu]:  Load:
LegendO[$CFGNAME_cpu]:
Colours[$CFGNAME_cpu]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[$CFGNAME_cpu]: $DEVICE Processor Utilization
PageTop[$CFGNAME_cpu]: <H1>$DEVICE Processor Utilization</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>$DEVICE in $LOCATION</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>$MAINTAINER</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>CPU Usage</TD></TR>
    <TR><TD>Resource:</TD><TD>CPU</TD></TR>
  </TABLE>


# WIN2000 RAM Utilization. Based on MIB II Host MIB.
#
# Example CFGNAME : [DEVICE NAME]-microsoft_win2k_ram

YLegend[$CFGNAME_ram]: KBytes Used
Options[$CFGNAME_ram]: growright, gauge, unknaszero, nopercent
Target[$CFGNAME_ram]: 
1.3.6.1.2.1.25.2.2.0&1.3.6.1.4.1.311.1.1.3.1.1.1.29.0:$COMMUNITY@$IPADDRESS
MaxBytes[$CFGNAME_ram]: 600000
ShortLegend[$CFGNAME_ram]: .
Legend1[$CFGNAME_ram]: Total RAM
Legend2[$CFGNAME_ram]: Avail RAM
Legend3[$CFGNAME_ram]: Max value per interval on graph
Legend4[$CFGNAME_ram]: .
LegendI[$CFGNAME_ram]: Total RAM
LegendO[$CFGNAME_ram]: Available RAM
Colours[$CFGNAME_ram]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[$CFGNAME_ram]: ymw
Title[$CFGNAME_ram]: $DEVICE RAM Utilization
PageTop[$CFGNAME_ram]: <H1>$DEVICE RAM Utilization</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>$DEVICE in $LOCATION</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>$MAINTAINER</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>RAM Usage</TD></TR>
    <TR><TD>Resource:</TD><TD>RAM</TD></TR>
  </TABLE>



# WIN2000 Disk C Utilization. Based on MIB II Host MIB.
# MIB reports on 4096 byte blocks. That is why we multiply by 4
#
# Example CFGNAME : [DEVICE NAME]-microsoft_win2k_disk_util

YLegend[$CFGNAME_diskc]: KBytes Used
Options[$CFGNAME_diskc]: growright, gauge, unknaszero, nopercent
Target[$CFGNAME_diskc]: 
1.3.6.1.2.1.25.2.3.1.5.1&1.3.6.1.2.1.25.2.3.1.6.1:$COMMUNITY@$IPADDRESS * 4
MaxBytes[$CFGNAME_diskc]: 5500000
ShortLegend[$CFGNAME_diskc]: .
Legend1[$CFGNAME_diskc]: HDD Size
Legend2[$CFGNAME_diskc]: HDD Used
Legend3[$CFGNAME_diskc]: Max value per interval on graph
Legend4[$CFGNAME_diskc]: .
LegendI[$CFGNAME_diskc]: HDD Size
LegendO[$CFGNAME_diskc]: HDD Used
Colours[$CFGNAME_diskc]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[$CFGNAME_diskc]: ymw
Title[$CFGNAME_diskc]: $DEVICE Drive C Utilization
PageTop[$CFGNAME_diskc]: <H1>$DEVICE Drive C Utilization</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>$DEVICE in $LOCATION</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>$MAINTAINER</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>HDD Usage</TD></TR>
    <TR><TD>Resource:</TD><TD>Drive C</TD></TR>
  </TABLE>


# WIN2000 Disk D Utilization. Based on MIB II Host MIB.
# MIB reports on 4096 byte blocks. That is why we multiply by 4
#
# Example CFGNAME : [DEVICE NAME]-microsoft_win2k_disk_util

YLegend[$CFGNAME_diskd]: KBytes Used
Options[$CFGNAME_diskd]: growright, gauge, unknaszero, nopercent
Target[$CFGNAME_diskd]: 
1.3.6.1.2.1.25.2.3.1.5.2&1.3.6.1.2.1.25.2.3.1.6.2:$COMMUNITY@$IPADDRESS * 4
MaxBytes[$CFGNAME_diskd]: 6500000
ShortLegend[$CFGNAME_diskd]: .
Legend1[$CFGNAME_diskd]: HDD Size
Legend2[$CFGNAME_diskd]: HDD Used
Legend3[$CFGNAME_diskd]: Max value per interval on graph
Legend4[$CFGNAME_diskd]: .
LegendI[$CFGNAME_diskd]: HDD Size
LegendO[$CFGNAME_diskd]: HDD Used
Colours[$CFGNAME_diskd]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[$CFGNAME_diskd]: ymw
Title[$CFGNAME_diskd]: $DEVICE Drive D Utilization
PageTop[$CFGNAME_diskd]: <H1>$DEVICE Drive D Utilization</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>$DEVICE in $LOCATION</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>$MAINTAINER</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>HDD Usage</TD></TR>
    <TR><TD>Resource:</TD><TD>Drive D</TD></TR>
  </TABLE>


# WIN2000 Disk E Utilization. Based on MIB II Host MIB.
# MIB reports on 4096 byte blocks. That is why we multiply by 4
#
# Example CFGNAME : [DEVICE NAME]-microsoft_win2k_disk_util

YLegend[$CFGNAME_diske]: KBytes Used
Options[$CFGNAME_diske]: growright, gauge, unknaszero, nopercent
Target[$CFGNAME_diske]: 
1.3.6.1.2.1.25.2.3.1.5.3&1.3.6.1.2.1.25.2.3.1.6.3:$COMMUNITY@$IPADDRESS * 4
MaxBytes[$CFGNAME_diske]: 75000000
ShortLegend[$CFGNAME_diske]: .
Legend1[$CFGNAME_diske]: HDD Size
Legend2[$CFGNAME_diske]: HDD Used
Legend3[$CFGNAME_diske]: Max value per interval on graph
Legend4[$CFGNAME_diske]: .
LegendI[$CFGNAME_diske]: HDD Size
LegendO[$CFGNAME_diske]: HDD Used
Colours[$CFGNAME_diske]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[$CFGNAME_diske]: ymw
Title[$CFGNAME_diske]: $DEVICE Drive E Utilization
PageTop[$CFGNAME_diske]: <H1>$DEVICE Drive E Utilization</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>$DEVICE in $LOCATION</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>$MAINTAINER</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>HDD Usage</TD></TR>
    <TR><TD>Resource:</TD><TD>Drive E</TD></TR>
  </TABLE>


# Windows 2000 - Number of Processes
#
# Vendor Specific Auto-Discovery Entry:
# 1.3.6.1.2.1.25.1.6.0||microsoft_win2k_number_of_processes|object|Number 
of Processes
#
# Example CFGNAME: [DEVICE NAME]-num_processes_running

Target[$CFGNAME_processes]: 
1.3.6.1.2.1.25.1.6.0&1.3.6.1.2.1.25.1.6.0:$COMMUNITY@$IPADDRESS
MaxBytes[$CFGNAME_processes]: 500
Options[$CFGNAME_processes]: growright, gauge, unknaszero, nopercent
WithPeak[$CFGNAME_processes]: wmy
YLegend[$CFGNAME_processes]: Processes
ShortLegend[$CFGNAME_processes]: #
Legend1[$CFGNAME_processes]: Number of Processes running
Legend2[$CFGNAME_processes]: .
Legend3[$CFGNAME_processes]: Number of Processes running
Legend4[$CFGNAME_processes]: .
LegendI[$CFGNAME_processes]:  Procs:
LegendO[$CFGNAME_processes]:
Colours[$CFGNAME_processes]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[$CFGNAME_processes]: $DEVICE Number of Processes
PageTop[$CFGNAME_processes]: <H1>$DEVICE Number of Processes</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>$DEVICE in $LOCATION</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>$MAINTAINER</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>Number of Processes</TD></TR>
    <TR><TD>Resource:</TD><TD>Processes</TD></TR>
  </TABLE>

Note: I have had to adjust MaxBytes on each box based on its configuration.

Hope that helps.

Lib Curtis

At 06:04 11/12/2002, Serge Maandag wrote:

>Dear listmembers,
>
>I am looking for some decent OIDs to monitor a windows 2000 server.
>
>In particular I am looking for the 5 minute cpu usage OIDs, not the 5
>minute load average OIDs.
>Also I would like to monitor the memory stats and the disk usage.
>
>Can anyone help me in the right direction?
>
>Serge Maandag.
>
>--

------------------------------------------------------------

This email, and any included attachments, have been checked
by Norton AntiVirus Corporate Edition (Version 7.6), AVG
Server Edition 6.0, and Merak Email Server Integrated
Antivirus (Alwil Software's aVast! engine) and is certified
Virus Free.

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list