My internet provider caps my data usage with a limit of 1.2 T per month. I want to track usage on my egress firewall interface. I have a zabbix agent running on this device and already collect interface statistics. The value for the interface are agent standard net.if.in[<myintefacename>]. These values start at zero and grow until reboot or the counter wraps (not sure about the last bit, but I think that's what happens)
How can I show cumulative usage, for some point in time, ideally monthly?
I've tried the function
trendsum(/pfsense/net.if.in[igb0],1h:now/h)
and this seems to get hourly accumulated data. My question is, in the time spec, I don't fully understand the right syntax to get this to aggregate on a monthly basis. Does this seem right?
trendsum(/pfsense/net.if.in[igb0],1M:now/M). I don't think this is what I want b/c it would accumulate for one full month from my current day. Today is March 26 so I think this will go back to Feb 26 and provide me an accumulated value. How do I, or can I just show current month?
How can I show cumulative usage, for some point in time, ideally monthly?
I've tried the function
trendsum(/pfsense/net.if.in[igb0],1h:now/h)
and this seems to get hourly accumulated data. My question is, in the time spec, I don't fully understand the right syntax to get this to aggregate on a monthly basis. Does this seem right?
trendsum(/pfsense/net.if.in[igb0],1M:now/M). I don't think this is what I want b/c it would accumulate for one full month from my current day. Today is March 26 so I think this will go back to Feb 26 and provide me an accumulated value. How do I, or can I just show current month?
Comment