[mrtg] Re: Win2000

Britt Tabor Britt_Tabor at Jabil.com
Tue Jul 27 14:52:28 MEST 2004


Windows FREE support for SNMP is very port as you would expect. They removed
some SNMP MIB support for CPU and memory per requests from venders who
charged for products that monitored them, nice. Anyway there is some free
MIB that you can install to get mem and cpu stats, here is what I use for my
win2000 systems...

http://www.snmp4tpc.com

You want to download and install snmp4w2k this will give you the support you
need to retrieve your information. Here is a copy of the template file that
I use for my servers. Note on the memory it's tricky. I have an extra
variable (my $MemSize) that queries the server for the total physical memory
installed and then places that in MaxBytes otherwise you have to hard code
it.

$head_lines .= <<ECHO;
#---------------------------------------------------------------------
ECHO

my $target_name = $router_name . ".cpu";

$target_lines .= <<ECHO;

Target[$target_name]:
1.3.6.1.2.1.25.3.3.1.2.1&1.3.6.1.2.1.25.3.3.1.2.2:$router_connect
PageTop[$target_name]: Pagetop
PageFoot[$target_name]: Pagefoot
Unscaled[$target_name]: dwmy
Background[$target_name]: #000000
MaxBytes[$target_name]: 100
Options[$target_name]: gauge, absolute, unknaszero, transparent, noborder,
nobanner
WithPeak[$target_name]: wmy
YLegend[$target_name]: % Utilization
ShortLegend[$target_name]: %
Legend1[$target_name]: Proc 1 Load in 5 minute intervals
Legend2[$target_name]: Proc 2 Load in 5 minute intervals
Legend3[$target_name]: Proc 3 Load in 5 minute intervals
Legend4[$target_name]: Proc 4 Load in 5 minute intervals
LegendI[$target_name]: Load
LegendO[$target_name]: Load
Colours[$target_name]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[$target_name]: $router_name CPU load

ECHO

#
# Memory Usage
#

my $target_name = $router_name . ".memory";
my ($MemSize)=snmpget($router_connect,'1.3.6.1.2.1.25.2.2.0');
$MemSize*=1024;

$target_lines .= <<ECHO;

Target[$target_name]:
1.3.6.1.4.1.311.1.1.3.1.1.1.3.0&1.3.6.1.2.1.25.2.2.0:$router_connect
PageTop[$target_name]: Pagetop
PageFoot[$target_name]: Pagefoot
Unscaled[$target_name]: dwmy
Background[$target_name]: #000000
MaxBytes[$target_name]: $MemSize
kMG[$target_name]: ,,M,,
Options[$target_name]: gauge, absolute, unknaszero, transparent, noborder,
nobanner
YLegend[$target_name]: Memory in Use
ShortLegend[$target_name]: 
WithPeak[$target_name]: wmy
Colours[$target_name]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Legend1[$target_name]: Allocated Memory in Use
Legend2[$target_name]: Total Physical Memory Installed
Legend3[$target_name]: .
Legend4[$target_name]: Peak Allocated Memory in Use
LegendI[$target_name]: Used
LegendO[$target_name]: Total
Title[$target_name]: $router_name

ECHO


Britt Tabor
I.T. Infrastructure Engineer



-----Original Message-----
From: Paulo Andre [mailto:pandre at darkstar.nom.za] 
Sent: Monday, July 26, 2004 4:28 AM
To: mrtg
Subject: [mrtg] Win2000

I am trying to monitor CPU Usage and Hdd Space on a win2000 server.

I have done a snmpwalk on the server and here is what I have so far. 

This is the only thing I can see for CPU and there are a few of them.
hrSWRunPerfCPU.1 = INTEGER: 107247939

For the harddrives I have found
hrStorageSize.2 = INTEGER: 1106398
hrStorageUsed.2 = INTEGER: 723659
The above figures dont add up to what Windows actually shows me.

Anyone with advice?
Paulo


--
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