i've installed mrtg to make graphics of the trafic from the interfece throw the snmpd, and the same with ipac witch put iptables accounting rules colect them and store, and gets the output, but the "problem" is that ipac graphics are 3 times smaller that the snmpd. Why??? i did catch all the trafic with ipac so no problem here, and i know that ipac/iptables is at level 3, and snmpd is at level 2, but 3 times. A test was a ftp one, the application (opera) show 500KB (4Mbit), snmp 4Mbit, and ipac 1Mbit, average values so what are thinking???? C -- Ciprian Niculescu -- http://fastmail.fm - IMAP accessible web-mail
--On Thursday, October 31, 2002 9:13 PM +0000 lartc@cnicules.4email.net wrote: > i've installed mrtg to make graphics of the trafic from the interfece > throw the snmpd, and the same with ipac witch put iptables accounting > rules colect them and store, and gets the output, Do you have a pointer to where to set up MRTG to do this? I couldn't find anything in the LARTC document about "measuring" or "snmp".
On Friday 01 November 2002 03:06, Kenneth Porter wrote: > --On Thursday, October 31, 2002 9:13 PM +0000 lartc@cnicules.4email.net > > wrote: > > i've installed mrtg to make graphics of the trafic from the interfece > > throw the snmpd, and the same with ipac witch put iptables accounting > > rules colect them and store, and gets the output, > > Do you have a pointer to where to set up MRTG to do this? I couldn't fi= nd > anything in the LARTC document about "measuring" or "snmp". Mrtg monitors only incoming and outgoing packets/bytes of a network inter= face. =20 I created my own script that uses the tc counter to create some graphs. = It=20 look ugly, but I'm working on it. You can find it on www.docum.org under= =20 GUI. I'm also trying to write a perl script that can extend the snmpd daemon s= o you=20 can also querying tc counters with snmp. But that script is not working. Stef --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net
On Fri, Nov 01, 2002 at 09:56:36AM +0100, Stef Coene wrote: > On Friday 01 November 2002 03:06, Kenneth Porter wrote: > > --On Thursday, October 31, 2002 9:13 PM +0000 lartc@cnicules.4email.net > > > > wrote: > > > i've installed mrtg to make graphics of the trafic from the interfece > > > throw the snmpd, and the same with ipac witch put iptables accounting > > > rules colect them and store, and gets the output, > > > > Do you have a pointer to where to set up MRTG to do this? I couldn't find > > anything in the LARTC document about "measuring" or "snmp". > Mrtg monitors only incoming and outgoing packets/bytes of a network interface. > I created my own script that uses the tc counter to create some graphs. It > look ugly, but I'm working on it. You can find it on www.docum.org under > GUI. I have some perl scripts for measuring with rrdtool. > > I'm also trying to write a perl script that can extend the snmpd daemon so you > can also querying tc counters with snmp. But that script is not working. How are you planning to integrate snmp with tc? Maybe we could gather the data at a lower layer rather than the output of tc. Regards. > > Stef > > -- > > stef.coene@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.oftc.net > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ -- ... ___________________________________________________________ ... | /| |\ | | /-| Pedro Larroy Tovar. PiotR | http://omega.resa.es/piotr |-\ | | /--| No MS-Office attachments please. |--\ | o-|--| e-mail: piotr@omega.resa.es |--|-o | \-| finger piotr@omega.resa.es for public key and info |-/ | |...\|_________________________________________________________|/...|
On Sunday 03 November 2002 15:05, Pedro Larroy wrote: > On Fri, Nov 01, 2002 at 09:56:36AM +0100, Stef Coene wrote: > > On Friday 01 November 2002 03:06, Kenneth Porter wrote: > > > --On Thursday, October 31, 2002 9:13 PM +0000 lartc@cnicules.4email= =2Enet > > > > > > wrote: > > > > i've installed mrtg to make graphics of the trafic from the inter= fece > > > > throw the snmpd, and the same with ipac witch put iptables accoun= ting > > > > rules colect them and store, and gets the output, > > > > > > Do you have a pointer to where to set up MRTG to do this? I couldn'= t > > > find anything in the LARTC document about "measuring" or "snmp". > > > > Mrtg monitors only incoming and outgoing packets/bytes of a network > > interface. I created my own script that uses the tc counter to create > > some graphs. It look ugly, but I'm working on it. You can find it o= n > > www.docum.org under GUI. > > I have some perl scripts for measuring with rrdtool. > > > I'm also trying to write a perl script that can extend the snmpd daem= on > > so you can also querying tc counters with snmp. But that script is n= ot > > working. > > How are you planning to integrate snmp with tc? Maybe we could gather > the data at a lower layer rather than the output of tc. I have a script that you can put in the snmd.conf. It gives all counters= on 1=20 line. It works, but there is a limit on how much data you can send if yo= u=20 use snmp. I created a second script so you can do this : snmpwalk server public .1.3.6.1.4.1.2021.257 enterprises.ucdavis.257.0.0 =3D "Network interface names" enterprises.ucdavis.257.0.1 =3D "lo" enterprises.ucdavis.257.0.2 =3D "eth0" enterprises.ucdavis.257.1.0 =3D "Root classes" enterprises.ucdavis.257.1.1 =3D "" enterprises.ucdavis.257.1.2 =3D " 1:1 " enterprises.ucdavis.257.2.2.1 =3D "Child information" enterprises.ucdavis.257.3 =3D "CHILDS info of 1:" Let's I want to know the child classes of 1:1=20 snmpwalk server public .1.3.6.1.4.1.2021.257.2.2.1.1 enterprises.ucdavis.257.2.2.1.2 =3D " 1:10 1:20 1:30 " 2.2.1.1 at the end means : 2 : device 2 =3D eth0 2 : give me the child onfi 1.1 : class 1:1 And so on. Each time you asks for something, a perl script is lanched, i= t=20 reads a config file so it knows the tc classes and childs. This config f= ile=20 must exists and updated manually. It's ugly, but it works. I have to find some info about snmp and even don't know if this script is= =20 usefull. But you can have it if you want. Stef --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net