ipac/iptables + mrtg accounting
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
Signature · 8 lines
Ciprian Niculescu -- http://fastmail.fm - IMAP accessible web-mail _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--On Thursday, October 31, 2002 9:13 PM +0000 [email protected]
Quoted 3 lines · 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 9 lines · Kenneth Porter
--On Thursday, October 31, 2002 9:13 PM +0000 [email protected]
Quoted 3 lines · 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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
the point is that ipac do the measuring with iptables
C
Quoted 13 lines · Kenneth Porter
--On Thursday, October 31, 2002 9:13 PM +0000 [email protected]
Quoted 3 lines · 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 9 lines
Ciprian Niculescu -- http://fastmail.fm - Access all of your messages and folders wherever you are _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 17 lines · Stef Coene
Quoted 9 lines · Kenneth Porter
--On Thursday, October 31, 2002 9:13 PM +0000 [email protected]
Quoted 3 lines · 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.
Quoted 3 lines
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
Signature · 9 lines
Ciprian Niculescu -- http://fastmail.fm - Access all of your messages and folders wherever you are _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 8 lines · Stef Coene
Quoted 7 lines · Kenneth Porter
--On Thursday, October 31, 2002 9:13 PM +0000 [email protected]
Quoted 3 lines · 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,
Quoted 6 lines
Quoted 2 lines
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.
Quoted 3 lines
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.
Quoted 13 lines
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 10 lines
... ___________________________________________________________ ... | /| |\ | | /-| Pedro Larroy Tovar. PiotR | http://omega.resa.es/piotr |-\ | | /--| No MS-Office attachments please. |--\ | o-|--| e-mail: [email protected] |--|-o | \-| finger [email protected] for public key and info |-/ | |...\|_________________________________________________________|/...| _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 17 lines · Pedro Larroy
Quoted 8 lines · Stef Coene
Quoted 7 lines · Kenneth Porter
--On Thursday, October 31, 2002 9:13 PM +0000 [email protected]
Quoted 3 lines · 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,
Quoted 7 lines
Quoted 2 lines
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.
Quoted 8 lines
I have some perl scripts for measuring with rrdtool.
Quoted 3 lines
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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/