[mrtg] Re: Monitoring windows
Koelstra, J. (Jan)
JKoelstra at MINSZW.NL
Wed Mar 9 09:49:51 MET 2005
Jeff,
>From http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-reference.html:
-----------------------------------
Explicit OIDs
You can also explicitly define which OID to query by using the following syntax 'OID_1&OID_2:community at router' The following example will retrieve error counts for input and output on interface 1. MRTG needs to graph two variables, so you need to specify two OID's such as temperature and humidity or error input and error output.
Example:
Target[ezwf]: 1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:public at myrouter
-----------------------------------
I.e. you need 2 oids at the target line. To achieve this you can use the same oid twice, and add "noi" or "noo" at the options line to suppress one of the two (identical) graphs.
Some other remarks on your config: To see any result in your graph CPU load has to bo monitored with the option "gauge".
The options "gauge" and "absolute" are both some type of counter. You can only use one type of counter at the options line
If you set the AbsMax value the same as the Maxbytes value then you can omit the Absmax line.
Hth,
Jan.
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of Jeff Mills
Sent: Wednesday, March 09, 2005 12:37 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Monitoring windows
Hi all,
I have been using mrtg for a while now to monitor cisco routers and mailscanner, and its been working great. I would now like to start monitoring our Windows servers, but have run into a problem.
I've used "GetIf" to browse the mib tree on the windows box to get the identifiers. For instance, .1.3.6.1.2.1.25.3.3.1.2 is for processor load. .iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad
If I snmpwalk this, it appears to be correct:
snmpwalk -v 1 -Of -c public pocl-jet 1.3.6.1.2.1.25.3.3.1.2 .iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.3 = INTEGER: 5
snmptranslate -Of 1.3.6.1.2.1.25.3.3.1.2 .iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad
However,
when I attempt to use this in mrtg, I get an error.
Here is what I'm using in my config:
Target[cpu_pocl-jet]: 1.3.6.1.2.1.25.3.3.1.2.3:public at pocl-jet:
AbsMax[cpu_pocl-jet]: 100
MaxBytes[cpu_pocl-jet]: 100
Title[cpu_pocl-jet]: Avg CPU Usage in pocl-jet
Legend1[cpu_pocl-jet]: Avg CPU Usage
Legend2[cpu_pocl-jet]: Avg CPU Usage
LegendI[cpu_pocl-jet]: Avg CPU Usage:
LegendO[cpu_pocl-jet]: Avg CPU Usage:
Ylegend[cpu_pocl-jet]: CPU Usage
ShortLegend[cpu_pocl-jet]: %
#Options[cpu_pocl-jet]: gauge,absolute,integer,nopercent
PageTop[cpu_pocl-jet]: <H1>Avg CPU Usage in pocl-jet</H1>
And here is what mrtg says:
mrtg /etc/mrtg/mrtg-servers.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10.3)
SNMPv1_Session (remote host: "pocl-jet" [150.100.100.13].161)
community: "public"
request ID: 209712455
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for ifInOctets.3 ifOutOctets.3 sysUptime sysName on public at pocl-jet::::::v4only at /usr/bin/mrtg line 1849
ERROR: Target[cpu_pocl-jet][_IN_] '1.3.6.1.2.1.25.3.3.1.2. $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 6) line 1.
ERROR: Target[cpu_pocl-jet][_OUT_] '1.3.6.1.2.1.25.3.3.1.2. $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 7) line 1.
Firstly, where is "(OID: 1.3.6.1.2.1.2.2.1.10.3)" coming from? Is this what it is trying to look up on the server? It would explain why mrtg finds nothing, but if thats the case, why is it looking there instead of the target I specify? Any help is appreciated!
Regards,
Jeff
--
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
_________________________________________________________
Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail.
Aan dit bericht kunnen geen rechten worden ontleend.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit bericht te vernietigen.
_________________________________________________________
The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt.
This message shall not constitute any obligations.
This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and delete its content.
_________________________________________________________
--
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