Ad Widget

Collapse

Aggregate usage on an interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jswheeler
    Junior Member
    • Feb 2024
    • 22

    #1

    Aggregate usage on an interface

    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?
    Last edited by jswheeler; 26-03-2025, 17:23.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2

    Based on analogy of
    1w:now/w+1w This week
    I would assume
    "1M:now/M+1M" is "This month"

    Comment

    Working...