Netflow Questions

Started by skirge01, October 23, 2017, 05:14:42 PM

Previous topic - Next topic
First, when I try to enter the settings according to the guide/wiki  (see 1st attachment) and hit apply, they apparently do not actually save.  I don't receive any errors, but if I leave that screen and come back, it's blank again.

I only see this in the logs:

Oct 23 11:05:48 configd.py: [0b1c1794-d0aa-4cf9-9478-d2522715fb86] returned exit status 1
Oct 23 11:05:48 configd.py: [0b1c1794-d0aa-4cf9-9478-d2522715fb86] stop netflow data aggregator
Oct 23 11:05:48 configd.py: [d9c2366f-4bfa-4c6d-ab85-65d445366031] returned exit status 1
Oct 23 11:05:48 configd.py: [d9c2366f-4bfa-4c6d-ab85-65d445366031] stop netflow collector
Oct 23 11:05:48 configd.py: [43f06e4c-e0c0-4281-b197-3fe1ec746210] start netflow
Oct 23 11:05:47 configd.py: [70453f52-b9c3-4e9c-8577-58036f3c1c86] stop netflow
Oct 23 11:05:47 configd.py: generate template container OPNsense/Netflow
Oct 23 11:05:47 configd.py: [d0586424-7a72-4ef6-90d4-582aa101f660] generate template OPNsense/Netflow
Oct 23 11:03:19 configd.py: [8967650a-8358-4728-8d7a-dc0bb750663d] request pfctl byte/packet counters


Second, this is on my home setup and I'd like to be able to track my monthly bandwidth usage, but I can't find anything which would allow me to see that much data.  I'm thinking that the local cache of 100MB isn't going to stretch very far, but the free collector software out there also doesn't seem to be up to the task.  I can't imagine that any of the "request a quote" options are going to be cost effective for household use.  Any suggestions there?

Hi there,

For 1, your settings look ok. Are you not receiving any data on the insight page?

If for any reason your database was damaged, reset the netflow database from Reporting: Settings to see if that helps.

And 2, there is no daily, weekly, monthly aggregation scheme at this point. The raw data can be exported and inspected or we would need to allow for restricting the from / to dates for the data from the graph page.

In either case, a ticket on GitHub is welcome to discuss such an improvement:

https://github.com/opnsense/core/issues


Cheers,
Franco

PS: Which version of OPNsense do you run?

I'm currently running:
OPNsense 17.7.6-amd64
FreeBSD 11.0-RELEASE-p12

#1
After entering that info and hitting "Apply", I leave the page and go to Insights and it says:

"Local data collection is not enabled at the moment, please configure netflow first
Go to netflow configuration"

When I go back there, those settings are blank again.  Rinse... repeat.   ;D

I tried a reset of the netflow data, but that doesn't appear to have fixed anything.

I will point out that, when I click "Apply" on the Netflow settings page, I get the spinning dots on that button, but no message at the top.  I don't know if that's expected behavior.

#2
If the system holds enough data and I need to manually export it on some frequency to analyze it in Excel or something, that would work for now.  But, I'll go ahead and create a ticket to see if it's something you guys want to pursue.

Thanks.

I was searching through posts and found this.  I also would like an easy way to track daily/monthly usage for upload/download bandwidth, just in case another voice on here helps.