[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: MRTG and Multihomed NIC



Khemera Lin wrote:
Thanks for your response, Anthony. Yes, that is what I use. And here is the
output:

# /usr/bin/cfgmaker --global "WorkDir: /var/www/mrtg/fw" --global "YTics[_]:
8" --global "Options[_]: growright,bits" --ifref=ip public localhost

########
...
...
--snpo: confcache public localhost: Ip N.N.N.1 --> 5
--snpo: confcache public localhost: Ip N.N.N.9 --> 5
--snpo: confcache public localhost: Ip N.N.N.17 --> 5
--snpo: confcache public localhost: Ip N.N.N.25 --> 5
--snpo: confcache public localhost: Ip N.N.N.33 --> 5
...
...
########

I have 5 different network interfaces and the fifth one is multihomed to
have multiple IPs on it. As shown above, the cfgmaker could detect all of
the IPs (masked with N.N.N.), but the mrtg.cfg would not have separate
entries for those IPs; it only treats all of them as one single
IP/interface.

Any more ideas please?

Thanks,
Khem

-----Original Message-----
From: fedora-list-bounces redhat com [mailto:fedora-list-bounces redhat com]
On Behalf Of Anthony Messina
Sent: Friday, March 03, 2006 4:29 PM
To: For users of Fedora Core releases
Subject: Re: MRTG and Multihomed NIC

Khemera Lin wrote:

Hello All,



I multihome my NIC on FC4 box to have about 10 IPs. Could I set up MRTG to monitor by those IPs rather than just a single IP or NIC?



Thanks,

Khem



add ifref=ip to your cfgmaker line. mrtg tries to collect info on all ips it finds using snmp. you'll need snmpd configured by using /etc/snmp/snmpd.conf.

ah, i see. i apologize, for when you initially said you "multihome," i assumed you were not using device aliases. i am not certain if mrtg will be able to split out device alias information as i am not sure if the kernel tracks only by real device.

try:

~#] snmpwalk -v 2c -c public localhost|more

and find out more about your device(s) and aliases.

as an aside, why do you need so many ip addresses (from your above description) on the same subnet?

--
My Website: http://messinet.com
My Online Gallery: http://messinet.com/modules.php?name=Web_Links&l_op=visit&lid=3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]