[mrtg] Re: Problem whit CPU monitoring on windows 2003 and wi ndows 2000 server

Sutton, Rob rsutton at centra.com
Mon Jan 5 21:56:14 MET 2004


I use WMI along with MRTG and VBScripts. Here is the VBScript I use to call
with MRTG and the MRTG Config file...

VBScript call to WMI:

On Error Resume Next
Set objArgs = WScript.Arguments
strComputer = objArgs.item(0)
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor",,48)
For Each objItem in colItems
    Wscript.Echo "" & objItem.LoadPercentage
    Wscript.Echo "" & objItem.LoadPercentage
Next


MRTG cfg:

Target[SERVERNAME.processorLoad]: `cscript //nologo
D:\mrtg\bin\VB_Scripts\CPULoadSP.vbs SERVER NETBIOS NAME HERE`

I monitor just over 100 Windows 2000 and 2003 server this way. I had tons of
issues with SNMP and Windows and found this to be the best way to monitor
Windows servers. WMI RULES! Get Scriptomatic from Microsoft as well. It's a
free WMI scripting tool. All of the counters you get in Performance Monitor
are available through WMI. I monitor my MS SQL and IIS Counters through WMI
as well.

Good Luck! 

----->MRTG Knowledge Transfer (MRTGKT.COM) will be back online shortly<----



-----Original Message-----
From: Lennie [mailto:list at weben.nu] 
Sent: Saturday, January 03, 2004 10:38 AM
To: Joe Wixted; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Problem whit CPU monitoring on windows 2003 and windows
2000 server

Yes.
if i am using Getif i can walk the oid .1.3.6.1.4.1.9600.1.1.5.1.5.1
the error messages i get from mrtg is
<---->
C:\Program Files\mrtg\bin>perl mrtg cpu.cfg
Daemonizing MRTG ...
Do Not close this window. Or MRTG will die
ERROR: Target[blofeld.cpu][_IN_] '.1.3.6.1.4.1.9600.1.1.5.1.5.
$target->[1]{$mod
e} ' evaluated to ' ??????GûÇ?????656' instead of a number
ERROR: Target[blofeld.cpu][_OUT_] '.1.3.6.1.4.1.9600.1.1.5.1.5.
$target->[1]{$mo
de} ' evaluated to ' ??????GûÇ?????656' instead of a number
Use of uninitialized value in numeric lt (<) at mrtg line 371.
Use of uninitialized value in numeric lt (<) at mrtg line 375.
<---->
i am running mrtg on a windows 2003 server.
and the computer i am trying to access is a windwos 2000 server.

// Lennie


----- Original Message ----- 
From: "Joe Wixted" <jwixted at limecity.com>
To: <mrtg at list.ee.ethz.ch>
Sent: Friday, January 02, 2004 4:28 PM
Subject: [mrtg] Re: Problem whit CPU monitoring on windows 2003 and windows
2000 server


> Have you been able to walk that oid with GetIF or some other SNMP tool?
>
> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Lennie
> Sent: Friday, January 02, 2004 10:27 AM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Re: Problem whit CPU monitoring on windows 2003 and
windows 2000 server
>
> So.. now i have downloaded and installed the Free version of SNMP2CA.
> but i still dont get it to work.
> it´s that anything wrong whit this line ??
>
> Target[blofeld.CPU]: 1.3.6.1.4.1.9600.1.1.5.1.5:phonera at 192.168.1.50
>
> it is stil teling me that: noSuchName
>
> // Lennie
>
>
>
>
> ----- Original Message ----- 
> From: "William Owen" <William.Owen at ProfilesInternational.com>
> To: "'Alex van den Bogaerdt'" <alex at ergens.op.het.net>;
> <mrtg at list.ee.ethz.ch>
> Sent: Friday, January 02, 2004 2:46 PM
> Subject: [mrtg] Re: Problem whit CPU monitoring on windows 2003 and
windows
> 2000 server
>
>
> > Win2k has a tendency to change the instance numbers of your Processors
> when
> > reboots occur.  I would recommend using the Free version of SNMP2CA
> > (http://www.snmp4tpc.com/snmp2ca.htm).  It will add the 1.3.6.1.4.1.9600
> > branch to a Win2k, Win2k3 or XP machine that won't change.  It also
allows
> > you to standardize your config files between the two.
> >
> > -----Original Message-----
> > From: Alex van den Bogaerdt [mailto:alex at ergens.op.het.net]
> > Sent: Friday, January 02, 2004 7:19 AM
> > To: mrtg at list.ee.ethz.ch
> > Subject: [mrtg] Re: Problem whit CPU monitoring on windows 2003 and
> windows
> > 2000 server
> >
> > On Fri, Jan 02, 2004 at 02:03:06PM +0100, Lennie wrote:
> > > I have a problem whit my mrtg config file.
> > > i am monitoring 2 computer.
> > > one windows 2003 server
> > > and one windows 2000 server.
> > > when i am monitoring the CPU on the windows 20003 server everthings
> works
> > perfekt.
> > > but. when i am using the some settings for the windows 2000 server. i
> get
> > a lots of error messages.

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