[mrtg] Re: CPU & Memory usage template.
Eric Brander
eric_mailing_list at rednarb.com
Mon Mar 7 15:31:57 MET 2005
chanapli knap wrote:
>Do anyone has a template for CPU and Mem usage for
>Cisco Catalyst switches (45xx ,29xx, 35xx) please..
>
>
>
>
Here's what I use:
#Host Template#
if(not $problem_lines)
{
my $target_name = $sysname . "_CPU";
if ($directory_name) {
$target_lines .= "\n\nDirectory[_]: $directory_name\n\n";
}
$target_lines .= <<ECHO;
LogFormat: rrdtool
PathAdd: c:\\rrdtool\\bin
LibAdd: c:\\rrdtool\\perl-shared
Target[$target_name]:.1.3.6.1.4.1.9.9.109.1.1.1.1.4.1&.1.3.6.1.4.1.9.9.109.1.1.1.1.5.1:$router_connect
Options[$target_name]: gauge, nopercent, growright, integer
WithPeak[$target_name]: wmy
MaxBytes[$target_name]: 100
YLegend[$target_name]: Util(percent)
LegendI[$target_name]: CPU Usage (1 min)
LegendO[$target_name]: CPU Usage (5 min)
Legend1[$target_name]: CPU utilization over 1 minute
Legend2[$target_name]: CPU utilization over 5 minute
Legend3[$target_name]: Maximal CPU utilization over 1 minute
Legend4[$target_name]: Maximal CPU utilization over 5 minute
ShortLegend[$target_name]: %
SetEnv[$target_name]: MRTG_INT_DESCR="System CPU"
Title[$target_name]: CPU Utilzation
PageTop[$target_name]: CPU Utilzation
ECHO
my $target_name = $sysname . "_MEM";
$target_lines .= <<ECHO;
Target[$target_name]:1.3.6.1.4.1.9.9.48.1.1.1.5.1&1.3.6.1.4.1.9.9.48.1.1.1.6.1:$router_connect
Options[$target_name]: gauge, growright, nopercent
WithPeak[$target_name]: wmy
MaxBytes[$target_name]: 128000000
YLegend[$target_name]: Bytes
LegendI[$target_name]: MEM Used
LegendO[$target_name]: MEM Free
Legend1[$target_name]: MEM Used
Legend2[$target_name]: MEM Free
Legend3[$target_name]: Maximal MEM Use
Legend4[$target_name]: Maximal MEM Free
ShortLegend[$target_name]: Bytes
SetEnv[$target_name]: MRTG_INT_DESCR="System RAM"
Title[$target_name]: MEM Utilzation
PageTop[$target_name]: MEM Utilzation
ECHO
} else {
$head_lines="";
$problem_lines="";
$target_lines="";
$separator_lines="";
}
#end host template#
I use it with "--host-template=templates\template-host-switch.txt" on
the CFGMaker command line along with several other options.
HTH,
Eric Brander
--
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