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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--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". _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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''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. 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/
the point is that ipac do the measuring with iptables C On Thu, 31 Oct 2002 18:06:09 -0800, "Kenneth Porter" <shiva@sewingwitch.com> said:> --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". > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >-- Ciprian Niculescu -- http://fastmail.fm - Access all of your messages and folders wherever you are _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Fri, 1 Nov 2002 09:56:36 +0100, "Stef Coene" <stef.coene@docum.org> said:> 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''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.yes i know about it, but why are the 2 measurement different mrtg - all trafic on an interface ipac - with a iptables rule to -s 0/0 -d 0/0 -i and -o eth0 C -- Ciprian Niculescu -- http://fastmail.fm - Access all of your messages and folders wherever you are _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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 |-/ | |...\|_________________________________________________________|/...| _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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.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.I have a script that you can put in the snmd.conf. It gives all counters on 1 line. It works, but there is a limit on how much data you can send if you 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 = "Network interface names" enterprises.ucdavis.257.0.1 = "lo" enterprises.ucdavis.257.0.2 = "eth0" enterprises.ucdavis.257.1.0 = "Root classes" enterprises.ucdavis.257.1.1 = "" enterprises.ucdavis.257.1.2 = " 1:1 " enterprises.ucdavis.257.2.2.1 = "Child information" enterprises.ucdavis.257.3 = "CHILDS info of 1:" Let''s I want to know the child classes of 1:1 snmpwalk server public .1.3.6.1.4.1.2021.257.2.2.1.1 enterprises.ucdavis.257.2.2.1.2 = " 1:10 1:20 1:30 " 2.2.1.1 at the end means : 2 : device 2 = 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, it reads a config file so it knows the tc classes and childs. This config file 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 usefull. But you can have it if you want. 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/