[mrtg] Re: Graphing interface errors

mchandler at solutions.canon.com mchandler at solutions.canon.com
Tue Jun 27 01:07:07 MEST 2006


I went in and found some lines that had wrapped around, I think I fixed
them, but now I get this error when I create the index.

ERROR: Line 158 (Target[Astro_Gardena1.cusa.canon.com_#ATM0/IMA1.2-aal5\
layer]: #ATM0/IMA1.2-aal5\ layer:public at 10.208.254.6:) in CFG file
(/etc/mrtg/test.cfg)  does not make sense

Any ideas?


Mel Chandler, A+, Network+, MCSE, MCDBA, Master CNE, CCNA
Network Engineer
Information Technology
Canon Business Solutions
(310) 217-3893

GCS d--- s+: a C++ UL++++ P+ L++ E W+++ N++ o+ K- w+
O- M-- V- PS PE+ Y+ PGP+ t+ 5+ X+ R tv+ b- DI++++ D++
G e++ h-- r y+



                                                                           
             Eric Brander                                                  
             <eric_mailing_lis                                             
             t at rednarb.com>                                             To 
                                       mchandler at solutions.canon.com       
             06/26/2006 03:41                                           cc 
             PM                                                            
                                                                   Subject 
                                       Re: [mrtg] Re: Graphing interface   
                                       errors                              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




mchandler at solutions.canon.com wrote:
> Sorry for the trouble, but could you attach the entire template?  I'm not
> sure where to put those few lines.  Thanks.
>
>
> Mel Chandler, A+, Network+, MCSE, MCDBA, Master CNE, CCNA
>
It was attached, but then the mailer put it on the server. There was a
link in the email.

I'll attach it here and hopefully it will get to you.

Eric
if(not $problem_lines)
{

my $target_name = $sysname . "_" . $if_ref;

$target_lines .= <<ECHO;

Target[$target_name]: $if_ref:$router_connect
Options[$target_name]: growright, bits
#UnScaled[$target_name]: dwmy
WithPeak[$target_name]: wmy
MaxBytes[$target_name]: $if_speed
Legend1[$target_name]: Incoming Traffic in Bits per Second
Legend2[$target_name]: Outgoing Traffic in Bits per Second
Legend3[$target_name]: Peak 5 Minute Incoming Traffic
Legend4[$target_name]: Peak 5 Minute Outgoing Traffic
routers.cgi*Mode[$target_name]: interface
routers.cgi*Icon[$target_name]: switch2-sm.gif
Title[$target_name]: $if_snmp_name - Network Utilization
SetEnv[$target_name]: MRTG_INT_DESCR="$if_snmp_name - Util"
PageTop[$target_name]: <H1><font color="#0000FF">$if_snmp_name - Network
Utilization</font></H1>

ECHO

#my $target_name = $router_name . "_" . $if_ref . "_errors";
my $target_name = $sysname . "_" . $if_ref . "_errors";

$target_lines .= <<ECHO;

Target[$target_name]:
ifInErrors.$if_ref&ifOutErrors.$if_ref:$router_connect
Options[$target_name]: growright, nobanner, nopercent, perminute, noo
WithPeak[$target_name]: wmy
MaxBytes[$target_name]: 10000
AbsMax[$target_name]: 10000000
Colours[$target_name]: RED#cc0000,ORANGE#ff6600,DARK
GREEN#006600,VIOLET#ff00ff
LegendO[$target_name]: Err/Min Out:
LegendI[$target_name]: Err/Min In:
YLegend[$target_name]: Errors/Minute
Legend1[$target_name]: Incoming Errors per Minute
Legend2[$target_name]: Outgoing Errors per Minute
Legend3[$target_name]: Peak 5 Minute Incoming Errors per Minute
Legend4[$target_name]: Peak 5 Minute Outgoing Errors per Minute
routers.cgi*Icon[$target_name]: error-sm.gif
routers.cgi*InOut[$target_name]: no
routers.cgi*InCompact[$target_name]: no
routers.cgi*Mode[$target_name]: generic
ShortLegend[$target_name]: &nbsp;
Title[$target_name]: $if_snmp_name - Errors
SetEnv[$target_name]: MRTG_INT_DESCR="$if_snmp_name - Errors"
PageTop[$target_name]:  <H1><font color="#0000FF">$if_snmp_name -
Errors</font></H1>

ECHO


} else {
  $head_lines="";
  $problem_lines="";
  $target_lines="";
  $separator_lines="";
}


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list