[NTLUG:Discuss] another multiple address question

MadHat madhat at unspecific.com
Wed Jul 23 15:45:40 CDT 2003


On Wed, 2003-07-23 at 15:34, Jack Snodgrass wrote:
> On Wed, 23 Jul 2003 15:19:24 -0500, MadHat wrote:
> 
> > On Wed, 2003-07-23 at 10:33, Jack Snodgrass wrote:
> >> Since my last question was answered so quickly by Stuart J., I figured
> >> I'd throw another one out here. 
> >> 
> >> Does anyone know how to use MRTG to monitor virtual addresses? I'd like
> >> to get tx and rx byte counts on a per-virtual-address basis. 
> > 
> > Depends on how you are running MRTG.  Are you wanting to run it locally,
> > or remotely via SNMP?  If you are running it locally, you just need a
> > script to output the data you want, which you can get from ifconfig.  If
> > you are wanting to run it remotely, you have to configure snmp to
> > display info on the virtual interfaces.
> 
> ifconfig doesn't appear to report TX and RX stats for the virtual 
> interfaces. Is that stored in /proc someplace... perhaps...?

Interesting.... I was fooled.
ifconfig lo:1

lo:1      Link encap:Local Loopback
          inet addr:127.0.0.2  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


But they never increment.  I dind't notice.  and in the proc table,
there isn't any entry for the virtual interfaces, just stats for the
primary (which includes all virtual).  I am not sure then.


-- 
MadHat at Unspecific.com
`But I don't want to go among mad people,' Alice remarked.
`Oh, you can't help that,' said the Cat: `we're all mad here...'
   -- Lewis Carroll - _Alice's_Adventures_in_Wonderland_




More information about the Discuss mailing list