Networking Forums

Networking Forums > Computer Networking > Linux Networking > Strange behavior with MRTG

Reply
Thread Tools Display Modes

Strange behavior with MRTG

 
 
Eric Gibson
Guest
Posts: n/a

 
      09-11-2003, 04:06 PM
Hey all,

I have a linux box as a firewall for a small network hosting a website,
and I'm trying to measure the traffic using MRTG but something wierd is
happening. There are two nics in the box, once is connected to the internet,
one internally, pretty standard config.

I'm running MRTG from cron on the box itself (probably not good for a
firewall box, but just work with me). I have the SNMP daemon working, and
configured for localhost, external and internal interfaces, and everything
seems to work fine. snmpwalk's work and everything. However it appears that
everytime MRTG runs from cron, I lose access to the network momentarily from
my dsl at home to the external interface on the firewall.

MRTG is running from localhost, and connecting to the snmpd running on
the external address of the firewall. So... uh... the only thing I have come
up with is that when MRTG runs, it's taking all the bandwidth in the snmp
poll on that interface, not allowing me to connect until it's finished? Does
this make sense?

If so, is there a way to connect to snmpd on localhost, and have it
gather information for another interface?

Eric


 
Reply With Quote
 
 
 
 
Mischa Deden
Guest
Posts: n/a

 
      09-12-2003, 12:46 AM
Eric Gibson wrote:

> Hey all,
>
> I have a linux box as a firewall for a small network hosting a
> website,
> and I'm trying to measure the traffic using MRTG but something wierd is
> happening. There are two nics in the box, once is connected to the
> internet, one internally, pretty standard config.
>
> I'm running MRTG from cron on the box itself (probably not good for a
> firewall box, but just work with me). I have the SNMP daemon working, and
> configured for localhost, external and internal interfaces, and everything
> seems to work fine. snmpwalk's work and everything. However it appears
> that everytime MRTG runs from cron, I lose access to the network
> momentarily from my dsl at home to the external interface on the firewall.
>
> MRTG is running from localhost, and connecting to the snmpd running on
> the external address of the firewall. So... uh... the only thing I have
> come up with is that when MRTG runs, it's taking all the bandwidth in the
> snmp poll on that interface, not allowing me to connect until it's
> finished? Does this make sense?


No not really. Just connect to localhost and read the MIBII

>
> If so, is there a way to connect to snmpd on localhost, and have it
> gather information for another interface?
>
> Eric


Yes, normally it can. I use MRTG to collect the traffic from about 40 cisco
routers/switches.
And don't know if it works the same for a pc. But i suspect it does.

Try to run "snmpwalk 127.0.0.1 [RO communityname] interfaces" and you should
get a list like this with all the interfaces of youre box.

example:
interfaces.ifNumber.0 = 4
interfaces.ifTable.ifEntry.ifIndex.1 = 1
interfaces.ifTable.ifEntry.ifIndex.2 = 2
interfaces.ifTable.ifEntry.ifIndex.3 = 3
interfaces.ifTable.ifEntry.ifIndex.4 = 4

Hopes this helps,
--------------------------------------------
Mischa
"The only constant thing in live is change"
--------------------------------------------
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange VPN behavior Bjarni Windows Networking 1 07-03-2006 05:09 PM
Strange VPN Behavior JamFan Windows Networking 3 02-28-2006 01:39 AM
Strange behavior Dennis P. Smith Windows Networking 5 05-18-2005 07:48 PM
Strange VPN behavior =?Utf-8?B?QnJ1Y2UgQnJvd24=?= Broadband Hardware 3 02-26-2005 03:24 AM
strange bind(2) behavior Mischa Diehm Linux Networking 0 05-11-2004 04:39 PM



1 2 3 4 5 6 7 8 9 10 11