[mrtg] Re: interface descriptions not on index page

Koen Bauwens bauwens_koen at hotmail.com
Fri Mar 10 08:58:52 MET 2006


I found the problem and wanted to post it here because I guess there will be 
others who have the same problem and It could somehow be a possible little 
bug?

in indexmaker you can find following code:
            /^descr(iption)?$/ &&
              do{
                  $section = "No Description for $item";

	  $$rcfg{setenv}{$item} =~ /MRTG_INT_DESCR="(.*?)"/  #"
                        and $section = $1;

                  $$rcfg{pagetop}{$item} =~
   		          m,<td>Description:</td>\s*<td>\Q$section\E\s*(.*?)</td>,i
                        and $section = $1;

                  last;
              };
This does not work, but I changed it to this:
            /^descr(iption)?$/ &&
              do{
                  $section = "No Description for $item";

                  $$rcfg{pagetop}{$item} =~
   		          m,<td>Description:</td>\s*<td>\Q$section\E\s*(.*?)</td>,i
                        and $section = $1;

	  $$rcfg{setenv}{$item} =~ /MRTG_INT_DESCR="(.*?)"/  #"
                        and $section = $1;

                  last;
              };
And this does work, I have no idea what it actually does, but what I think 
is that it tries to get the description on 2 ways and the first one worked 
for me, but the second one deletes the information in $section.

Anyway, hope its helpfull

>From: "Koen Bauwens" <bauwens_koen at hotmail.com>
>To: mrtg at list.ee.ethz.ch
>Subject: [mrtg] interface descriptions not on index page
>Date: Wed, 08 Mar 2006 10:36:37 +0100
>
>Hi,
>I am running stage at volvo and I had to start using mrtg 5 days ago, Its a
>nice and not that hard to learn.
>Everything is working perfectly, just that on the index page, I can see the
>(lets say) 4 ports of the network apparatus, but I cannot get the
>discription to be the title of the graphs there. I can get other values
>there, like --section=xxx , but I find these not that handy to use.
>While I was running 2.10.5 everything went perfectly, I could see the
>interface description, I upgraded to 2.13.2 and they are gone.
>These are the cmdlines I use:
>
>perl cfgmaker --subdirs=p70-1 --ifdesc=descr --output=p70-1.cfg
>public-8 at 136.20.173.22
>
>perl indexmaker --title=p70-1 --output=c:\www\p70-1.html --section=descr
>--filter name=~136.20.173.22 volvo.cfg
>
>Volvo.cfg:
>
>RunAsDaemon: yes
>
>EnableIPv6: no
>Workdir: c:\www
>options[_]: unknaszero,bits,growright
>Include: d:\mrtg\mrtg-2.13.2\bin\p70-1.cfg
>
>I am running mrtg on a windows 2003 server.
>
>Thank you for reading,
>Bauwens Koen
>
>_________________________________________________________________
>Gratis bloggen op MSN Spaces  http://spaces.msn.com/?mkt=nl-be
>
>--
>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
>

_________________________________________________________________
Gratis bloggen op MSN Spaces  http://spaces.msn.com/?mkt=nl-be

--
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