Gliebster
09-02-2001, 01:18 PM
I host a few sites on a commercially hosted dedicated redhat 7.1 server and would like to be able to track how much bandwidth I have consumed per month. Is there any software I can stick on the system to do this?
![]() | View Full Version : bandwidth monitoring Gliebster 09-02-2001, 01:18 PM I host a few sites on a commercially hosted dedicated redhat 7.1 server and would like to be able to track how much bandwidth I have consumed per month. Is there any software I can stick on the system to do this? Palm 09-02-2001, 01:24 PM bandmin.org Or you can search at google for MRTG, which is also a good software. Gliebster 09-02-2001, 03:11 PM Thanks. I installed bandmin. Everything seemed to be going okay until I ran 'bandminstart' I get this and I'm not sure what to do now. /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o failed /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed iptables v1.2.1a: can't initialize iptables table `filter': iptables who? (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. Note: /etc/modules.conf is more recent than /lib/modules/2.4.2-2/modules.dep /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o failed /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters iptables v1.2.1a: can't initialize iptables table `filter': iptables who? (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. Any help would be appreciated. mpkapadia 09-02-2001, 03:23 PM Hello By any chance you are on a plesk Machine Regards Manish Kapadia Gliebster 09-02-2001, 03:59 PM nope, just RH7.1 w/apache, mysql, perl, php, webmin, postfix, etc.... Jm4n 09-02-2001, 04:51 PM Do you have iptables support compiled into your kernel? Apparently this bandwidth monitor uses iptables (2.4 kernel firewalling) to be able to track bandwidth, and it looks like you don't have this compiled in. I haven't personally played with iptables yet (I still like ipchains), but I think (from the looks of the errors you're getting) you can compile it as a module, thus you won't need to recompile the kernel or reboot... but I'm not positive. Best bet is to find an 'iptables Howto'. Just type those words into Google and you should be okay from there. Hope this helps. Gliebster 09-02-2001, 08:17 PM the readme says this if it's of any value to anyone trying to help "To use this package you must have a OS that has either ipfwadm, ipchains, ipf or ipfw" Jm4n 09-02-2001, 10:22 PM ipchains et al are the older firewall, for the 2.2 kernels -- though I personally still use ipchains, since some of my machines can't be upgraded to 2.4 just yet, and I don't want to run two different firewalls... iptables is new to the 2.4 kernel. It sounds like that readme might be a tad out of date, because the error output you show tells me it is looking for iptables support. The end result is that you need iptables (or ipchains) support in your kernel, and it doesn't look like you do. I don't specifically know how to check for iptables support, but for ipchains: ipchains -n -L This will either list out your current rules (which should be just 3 lines if no rules are in place), or give you an error (because ipchains isn't enabled). I'm sure there's a similar procedure for iptables... either way you need some sort of IP packet filtering enabled... mpkapadia 09-03-2001, 02:19 AM I get the very same error when i try to do bandminstart Also tried to give ipchains -n -L This is what i get Chain input (policy ACCEPT): Chain forward (policy ACCEPT): Chain output (policy ACCEPT): What to do next ? Regards Manish bdraco 09-03-2001, 06:16 AM The bandmin in bandmin.org is out of date, you probably want to try this one..... rpm -Uvh http://www.burst.net/~nick/bandmin-0.92b7-0.noarch.rpm mpkapadia 09-03-2001, 06:51 AM Hi, Thanks a lot, I just upgraded it and it started working for me, Thank you once again, I dont know how they can keep outdated stuff on their site, The one you have mentioned here works fine on my Rh 7.1 server Regards Manish Kapadia Travis 09-03-2001, 10:39 PM Hi Nick, I offered you FTP access to bandmin.org so you can keep it up to date, but never heard back from you. If you still want it, e-mail me at travis@qwk.net. Gliebster 09-04-2001, 12:10 AM I ran that rpm and it seemed to work but now cron sends me this error: ipchains: No chain by that name ipchains: No chain by that name when I go to the bandmin html pages, the stats for all days is 0. bdraco 09-04-2001, 12:13 AM Originally posted by Travis Hi Nick, I offered you FTP access to bandmin.org so you can keep it up to date, but never heard back from you. If you still want it, e-mail me at travis@qwk.net. Did you email me ??? I didn't seem to get/hear anything about it. nick@darkorb.net Gliebster 09-04-2001, 01:07 PM nevermind. it seems to work now. |