[mrtg] Re: mrtg Target configuration - graph is at 0 all the time

Leonard Krivopaltsev leonard at zinio.com
Wed Sep 10 20:51:03 MEST 2003


Thanks for your help, but for some reason my graph shows 0 flat line.
How would mrtg get CPU load if it reads same variable? i don't think there is any delta when it reads OID numbers represented in target.

this my config in mrtg.

Target[10.10.5.21_CPU1]:  .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 10.10.5.21:::::2
MaxBytes[10.10.5.21_CPU1]: 100
Options[10.10.5.21_CPU1]: growright,integer,unknaszero,nopercent,gauge
Title[10.10.5.21_CPU1]: EQ-W2K-AP-01
YLegend[10.10.5.21_CPU1]: % Used
ShortLegend[10.10.5.21_CPU1]: %
PageTop[10.10.5.21_CPU1]: <H1>CPU1-- on Reporting Server (10.10.5.21)</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>EQ-W2K-AP-01 in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>CPU1</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Ip:</TD>         <TD>10.10.5.21</TD></TR>
 </TABLE>

and this is the output of snmpwalk

[root at eq-mon-01 bin]# snmpwalk -On -c public -v 2c  10.10.5.21 hrProcessorLoad
.1.3.6.1.2.1.25.3.3.1.2.1 = INTEGER: 19
.1.3.6.1.2.1.25.3.3.1.2.2 = INTEGER: 20
.1.3.6.1.2.1.25.3.3.1.2.3 = INTEGER: 4
.1.3.6.1.2.1.25.3.3.1.2.4 = INTEGER: 4

-----Original Message-----
From: McDonald, Dan [mailto:Dan.McDonald at austinenergy.com]
Sent: Wednesday, September 10, 2003 3:35 AM
To: 'mrtg at list.ee.ethz.ch '
Subject: [mrtg] Re: mrtg Target configuration


Leonard Krivopaltsev wrote on  9/9/2003 6:16 PM:
>I need some advise/help configuring the target in MRTG.
>using snmpwalk i figured the strings that i need to pull from win2k
>quadro CPU server, which are:
>
>[root at eq-mon-01 bin]# snmpwalk -Os -c COMMUNITY_STRING -v 2c IP

ok, now do the same thing, but with -On to get the numeric equivalents.  Or,
determine the name of the mib that hrProcessorLoad is in and do a loadmibs:
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.my 
(or whatever the full path to the mib file is).

>i can't seem to figure out how should i configure mrtg.cfg to to draw 4
>graphs for 4 cpus.

Let's assume you got the loadmibs thingy to work. The targets should then
be:
Target[CPU1]: hrProcessorLoad.1&hrProcessorLoad.1:COMMUNITY_STRING at IP::::2
Target[CPU2]: hrProcessorLoad.2&hrProcessorLoad.2:COMMUNITY_STRING at IP:::::2

And cetera.  mrtg always needs 2 oids, so I'm just repeating one.  If you
don't want to display the same line twice, you can use:
options[CPU1]: guage, noi

You do need the guage bit.  Noi removes the "input" line.  You could also
use noo if you like green graphs instead of blue ones...

>is it possible to combine 4 graphs (given that i get to draw some how)
>as one? 

If you are using rrdtool as a backend, generating a front-end to graph each
of the input lines from 4 rrds is left as an exercise for the reader.  

If you are using rateup as your backend, no.

--
Daniel J McDonald, CCIE #2495
Austin Energy
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

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