[mrtg] MRTG: A Few Questions

MrPaul mrpaular at gmail.com
Wed May 23 21:53:21 CEST 2007

On 5/23/07, Anurag Bist <anuragsb at hotmail.com> wrote:

> 1. I would like the cfg file, which is generated through the cfgmaker
> utility to give information on switch ports. Like it should tell whether a
> port on a particular switch is Gig1/1, Fa2/3 or Fa5/4 etc.

I'm going to make an assumption that you're running a Cisco Catalyst switch
with somewhat current IOS.  If that's the case try passing
"--ifdesc=catname" at the cfgmaker command line.  There is *alot* of other
good stuff at http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html

2.  I would like to have the feature that enables me to move my cursor over
> the traffic graph and shows a vertical bar that tells you how much data
> traveled through a device at a particular time.

The graph is nothing more than a PNG or GIF image file.  If you would like
that functionality you'll need to look at something else to do that than
MRTG out of the box.

3. I downloaded a perl script called 'Cammer.pl' that scans the ports of
> switch or a router and gives you the information about the port mac address
> and the machine which is connected to that particular port. I tried running
> it, but I am always landing up with this error:
> $> perl cammer.pl <snmp_community>@router.id
> Can't locate SNMP_Session.pm in @INC (@INC contains: //../lib/mrtg2 /
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
> cammer.pl line 44.
> BEGIN failed--compilation aborted at cammer.pl line 44
> $> locate SNMP_Session.pm
> /usr/bin/SNMP_Session.pm
> /usr/lib/mrtg2/SNMP_Session.pm
> /usr/local/src/mrtg/lib/mrtg2/SNMP_Session.pm
> /usr/local/mrtg-2/lib/mrtg2/SNMP_Session.pm
> How can I overcome this problem?

SNMP::Session isn't in perl's path.  You can either update the script to
include the full path or reinstall SNMP::Session.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070523/86093ed9/attachment.htm 

More information about the mrtg mailing list