[mrtg] Re: CicolocIfDescr test in cfgmaker v2.9.17
Martin Rheumer
martinr at hotkey.net.au
Wed Aug 1 06:21:04 MEST 2001
Dan,
You got so very close.
I run the cfgmaker like this, with your changes.
./cfgmaker --descint --global "WorkDir: $name" --global "ThreshDir: /tmp"
--global "Op
tions[_]: Growright, Bits" --global "ThreshMaxI[_]: 90%" --global
"ThreshProgI[_]: /usr/local/mrtg/bin_thresh/link_thresh" --global "IconDir: /
gifs" public\@$ip > $name.cfg`;
It produces this.
### Interface 6 >> Descr: 'GigabitEthernet2/0' | Name: 'Gi2/0' | Ip: '$ip'
| Eth: 'XX' ###
Target[$ip_6]: 6:public@$ip:
SetEnv[$ip_6]: MRTG_INT_IP="$ip" MRTG_INT_DESCR="GigabitEthernet2/0"
MaxBytes[$ip_6]: 125000000
Title[$ip_6]: Traffic Analysis for 6 -- $name
PageTop[$ip_6]: <H1>Traffic Analysis for 6 -- $name</H1>
<TABLE>
<TR><TD>System:</TD> <TD>$name </TD></TR>
<TR><TD>Maintainer:</TD> <TD>me</TD></TR>
<TR><TD>Description:</TD><TD>GigabitEthernet2/0 ** Connection to
Fred at barney.vlan **</TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD>Gi2/0</TD></TR>
<TR><TD>Max Speed:</TD> <TD>125.0 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>$ip ()</TD></TR>
</TABLE>
Then I go to run this..
./indexmaker --section=descr --columns=1 --title="$name" etc/$name.cfg
And get the error :
ERROR: no Description: line PageTop property in $ip_6 section
I cant for the life of me see a problem with either the cfg file
This produces the Description line like I always wanted but still
not the Full Description in the index page ( well nothing appears
in the index page this time ).
Martin
At 02:03 PM 7/31/01 -0400, you wrote:
>Finally figured out (I think) why cfgmaker was refusing to use
CiscolocIfDescr when specifying --descint and/or
>--ifdescr=alias. The attached patch seems to fix things.
>
>Enjoy.
>
>-- Dan Ehrlich
>
>
>===================================================================
>RCS file: RCS/cfgmaker,v
>retrieving revision 1.1
>diff -c -r1.1 cfgmaker
>*** cfgmaker 2001/07/24 17:29:23 1.1
>--- cfgmaker 2001/07/31 17:57:43
>***************
>*** 93,99 ****
> ifAdminStatus ifOperStatus);
> if ($routers->{$router}{deviceinfo}{Vendor} eq 'cisco' &&
> $routers->{$router}{deviceinfo}{sysDescr} =~
m/Version\s+(\d\d\.\d+)/) {
>! push @Variables, ($1 > 11.0) ? "ifAlias" : "CiscolocIfDescr";
> }
>
> my $descr = $routers->{$router}{deviceinfo}{sysDescr};
>--- 93,99 ----
> ifAdminStatus ifOperStatus);
> if ($routers->{$router}{deviceinfo}{Vendor} eq 'cisco' &&
> $routers->{$router}{deviceinfo}{sysDescr} =~
m/Version\s+(\d\d\.\d+)/) {
>! push @Variables, ($1 < 11.0) ? "ifAlias" : "CiscolocIfDescr";
> }
>
> my $descr = $routers->{$router}{deviceinfo}{sysDescr};
>
>
>--
>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