Thanks. The "equipment" is the server on which snmp and mrtg run. So how do I get the ifindex for the ppp0 interface?
On Fri, Dec 18, 2009 at 8:21 PM, Jan Ferré <[email protected]> wrote: > Ehhh - you're to set up a cfg-file with content something like > > WorkDir: xxxx > Refresh: 300 > Interval: 5 > LogFormat: rrdtool > Target[PHK.LY8-DASV.IN-OUT]: > ifInOctets.14&ifOutOctets.14:[email protected] > > aren't you? > > The .14 is the ifindex for the desired interface. Which can be found > using a smtpwalk on the equipment. > And if you desire more interfaces, just add more target lines > > Best regards > > Jan Ferré > > > Frank Adem wrote: >> Thanks. I've had a look into it, but I can't get it to work. I tried >> this command, which works, but still only shows eth0: >> >> cfgmaker '--if-filter=$default && $if_type==23' --no-down --global >> 'WorkDir: /var/www/mrtg2' --output /etc/mrtg2.cfg [email protected] >> >> All I want is to see ppp0, also when it is down... >> >> Thanks >> >> On Thu, Dec 17, 2009 at 7:23 PM, Steve Shipway <[email protected]> >> wrote: >> >>> Yes. >>> >>> In fact, MRTG will graph anything it can collect data for. You probably >>> are referring to the cfgmaker program, which will generate a MRTG >>> configuration file for you and by default will comment out definitions for >>> inactive interfaces. >>> >>> Check the cfgmaker documentation, particularly the --if-filter and --nodown >>> options, for more details. >>> >>> Steve >>> >>> ________________________________________ >>> From: [email protected] [[email protected]] On >>> Behalf Of Frank Adem [[email protected]] >>> >>> Is there a way to specify which interfaces MRTG graphs? Currently, it >>> only seems to work on eth0, but I would also like it to monitor ppp0, >>> which is the interface of a PPTP to the server. However this interface >>> is not always available (off when there is no PPTP connection). >>> >> >> _______________________________________________ >> mrtg mailing list >> [email protected] >> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg >> > > > -- > Jan Ferré - UNI-C Netdrift - DTU Bygning 304, DK-2800 Lyngby > tlf. +45 3587 8935, cell. +45 2160 8012, fax. +45 3587 8990 > EAN-no.: 5798000555198 > > _______________________________________________ > mrtg mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg > _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
