[mrtg] Cisco 7513 CPU utilization.
kix kox
mrtgxxx at yahoo.com
Mon Sep 10 05:31:30 MEST 2001
Hi guys,
i was able to succesfully configured MRTG 2.9.17. on a
Solaris box and it is now currently monitoring
bandwidth utilization of a 7513 cisco router. The IOS
version Version 12.0(15)S1.
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]:
1.3.6.1.4.1.9.2.1.57.0&1.3.6.1.4.1.9.2.1.58.0:7513-public 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>
Colours[7513]:
GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00f
WithPeak[7513]: ymw
#./mrtg /opt/mrtg/cfg/cpu.cfg
#./indexmaker /opt/mrtg/cfg/cpu.cfg >
/usr/local/apache/cpu.html
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;
#---------------------------------------------------------------------
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 %
Legend2[$target_name]:
Legend3[$target_name]: Max Observed CPU load
Legend4[$target_name]:
LegendI[$target_name]: CPU Load:
LegendO[$target_name]:
WithPeak[$target_name]: ywm
MaxBytes[$target_name]: 100
Options[$target_name]: growright, gauge, nopercent
Title[$target_name]: $router_name CPU load
Target[$target_name]:
1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:$router_connect
PageTop[$target_name]: <H1>$router_name CPU load</H1>
<TABLE>
<TR><TD>System:</TD><TD>$router_name in
$html_syslocation</TD></TR>
<TR><TD>Maintainer:</TD><TD>$html_syscontact</TD></TR>
<TR><TD
VALIGN="top">Description:</TD><TD>$html_sysdescr</TD></TR>
<TR><TD>Resource:</TD><TD>CPU.</TD></TR>
</TABLE>
ECHO
Thanks.
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
--
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