I’m still trying to find out how to enable bandwidth usage and bandwidth monitoring, providing these features are available on Virtualmin GPL.
By bandwidth usage I mean the ability to check how much GB of data has been transferred in/out during a certain period of time.
And by bandwidth monitoring I mean the ability to set alerts (interface and/or emails) when certain threshold has been reached. For instance, if I assign 50 GB of monthly data transfer to a specific domain and it has used 80%, etc, already during that month.
It should launch a “bw.pl” process from cron which calculates all the bandwidth information… if you look at root’s crontab, do you see an entry there to run bw.pl?
You might want to check your syslog and similar, to see if the cron job throws any errors. It should also mention that it is being run at the configured interval in the syslog.
Oh, and a little hint for Eric/developers. A few days ago I started doing some file hosting on my server. Before that time I had no need for bandwidth monitoring, but now I do, so I started looking into that topic.
First, I was a bit confused about the terminology. “Bandwidth” in my view refers to “network speed”, measured e.g. in “kBit per second”. You rather use it as “total traffic consumed by transfers”. It’s okay once you know what it is called, but just saying that at first I thought the feature was for limiting network speed that a domain can use to say 50 MBit/s of a 100 MBit line. (And I was astonished how Virtualmin was going to accomplish that.)
Then a cosmetic/comfort thing. It’d be nice to have a button to display the bandwidth usage graph in a more prominent place. Right now I need to go to Virtualmin/System Settings/Bandwidth Monitoring and click “Show Usage Graph” there.
And while are at it, a more prominent way to force on-the-spot creation to AWStats report would also be nice. Right now I need to select the domain and go to Logs and Reports/AWstat config, then click “Return to list of reports”, there click the domain in question, where I finally find the “Generate Report Now” button.
I can see the value is slightly different now (491.02 GB), when compared to previous one (479.58 GB).
Now, I cannot tell if this higher value is because of running this command or it was like that before. I just forgot to check first the current value prior to executing that command. I’m sorry.
The thing is that datacenter is reporting usage of way more than 2 TB, from their own bandwidth monitoring tool they provide to customers.
When I first installed Webmin/Virtualmin, the bandwidth monitoring seemed to be working. A couple of weeks later when I need these numbers for billing, I’m getting the “No bandwidth usage statistics have been collected yet.” error message. The bw.pl command runs manually without errors, and I’ve placed it in root’s crontab. When I try to change the accounting period to monthly for 365 days, it doesn’t save the 365 value. The page refreshes with that value blank.
Can I use this to check the bandwidth monitoring bandwidth usage for users OpenVPN and SSH tunneling ?
I use centos and have installed Virtualmin gpl and I have activated the bandwidth monitoring in Virtualmin. But bandwidth usage still 0 byte.
I use openvz and I opened ports 443, 143, 8080 and 80
I just turn Administration user and home directory on Features and Plugins Virtualmin.