[mrtg] 7513 CPU Utilization

kix kox mrtgxxx at yahoo.com
Fri Sep 7 11:06:56 MEST 2001

Hi guys,

i was able to succesfully configured MRTG 2.9.17. on a
Solaris box and it is now currently monitoring
bandwith utilization of a 7513 cisco router.

The next thing that i want to do is monitor the CPU
utilization of the said router but my problem is i'm
not sure how to approach this. I'm not that familiar
in using scripts either. A newbie in short. he-he-he.

>From what i read  there are to approaches in making a
xxx.cfg file. One is using the cfgmaker and the other
is by using a template.

I tried using the template first. an here are  the
steps that i took

# vi cpu.cfg

WorkDir: /usr/local/apache/htdocs
WriteExpires: Yes

Target[7513]: at w.x.y.z
YLegend[7513]: CPU Utilization
ShortLegend[7513]: %
MaxBytes[7513]: 100
Options[7513]: nopercent, gauge, unknaszero
Unscaled[7513]: dwmy
Legend1[7513]: CPU Utilization
Legend2[7513]: .
Legend3[7513]: Max value per interval on graph
Legend4[7513]: .
LegendI[7513]: CPU:
LegendO[7513]: .
Title[7513]: 7513 CPU load
PageTop[7513]: <H1>CPU Utilization</H1>
WithPeak[7513]: ymw

#./mrtg /opt/mrtg/cfg/cpu.cfg
#./indexmaker /opt/mrtg/cfg/cpu.cfg >

When i checked the web page only the mrtg logo
appeared. It's obvious that there's something wrong
with what i did. Can someboby enlighten me please.

How do you use the cfgmaker in generating the cfg file
in this case? I mean what is the syntax to generate
the cfg file if u r using OIDs?

I also got the file below from the cfgmaker. How do
you  use this using the cfgmaker?

 $head_lines .= <<ECHO;

 my $target_name = $router_name . ".cpu";
 $target_lines .= <<ECHO;

 YLegend[$target_name]: Percentage CPU load
 ShortLegend[$target_name]: %
 Legend1[$target_name]: CPU load in %
 Legend3[$target_name]: Max Observed CPU load
 LegendI[$target_name]: &nbsp;CPU Load:
 WithPeak[$target_name]: ywm
 MaxBytes[$target_name]: 100
 Options[$target_name]: growright, gauge, nopercent
 Title[$target_name]: $router_name CPU load
 PageTop[$target_name]: <H1>$router_name CPU load</H1>
     <TR><TD>System:</TD><TD>$router_name in


Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger

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