bwmon log to file

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Post Reply
Indigo
Posts: 23
Joined: Fri May 08, 2015 1:00 am

bwmon log to file

Post by Indigo »

i want to track router daily/monthly/yearly bandwith usage in my homeautomation system

is there a possibility to output bwmon stats to a file?
i want something like average down/upload rate for the last minute and accumulated down/upload volume per day
file should not be appended, values should be overwritten every minute.

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: bwmon log to file

Post by Lantis »

At the bottom of the bandwidth usage page you can download the data
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Indigo
Posts: 23
Joined: Fri May 08, 2015 1:00 am

Re: bwmon log to file

Post by Indigo »

actually, i need a file to parse, automatically

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: bwmon log to file

Post by Lantis »

It already logs to files in /tmp and /usr/data, but you won’t be able to parse them easily (they aren’t human readable).

You can try using the bw_get command to get specific information.

Otherwise you’re out of luck without rewriting it yourself.
Other users have automated the download of the CSV file for similar purposes, but I don’t know exactly how they did it.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply