[mrtg] MRTG - Specify interfaces
Jan.Ferre at uni-c.dk
Fri Dec 18 20:21:29 CET 2009
Ehhh - you're to set up a cfg-file with content something like
ifInOctets.14&ifOutOctets.14:xtremelysecret at 126.96.36.199
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
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 public at 127.0.0.1
> All I want is to see ppp0, also when it is down...
> On Thu, Dec 17, 2009 at 7:23 PM, Steve Shipway <s.shipway at auckland.ac.nz> wrote:
>> 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.
>> From: mrtg-bounces at lists.oetiker.ch [mrtg-bounces at lists.oetiker.ch] On Behalf Of Frank Adem [frankadem at gmail.com]
>> 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
> mrtg at lists.oetiker.ch
Jan Ferré - UNI-C Netdrift - DTU Bygning 304, DK-2800 Lyngby
tlf. +45 3587 8935, cell. +45 2160 8012, fax. +45 3587 8990
More information about the mrtg