Ad Widget

Collapse

Data since a date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tserreyn
    Junior Member
    • Jun 2012
    • 26

    #1

    Data since a date

    OK, so I have been beating my head on how to accomplish this in a graph.

    First some background:

    We are connected to the internet via excede satellite.
    On the 20th of the month our bandwidth total resets to 0.
    We have a limit of 150GB/month via satellite.

    I want to be able to graph the usage of our internet over a month, with data alerts on how much we have used per day/month. I want to alert if any day goes over 80% of the days allotment.

    So far I have been able to scrape the data from the actual cable modem to get the total TX bytes, total RX bytes, and added them together for TotalBytesTransferred. This data increases constantly.

    I was curious if the time shift functions would be helpful here?

    Has anyone ever done anything like this? I saw someone doing something with a script logging the information into rrd, but I want to do this directly in Zabbix.
  • aeassured
    Junior Member
    • Sep 2017
    • 8

    #2
    Assuming your "total transferred" is just a sum of the last entry and not a sum of all the precedeing entries, you could make a triggers that alert based on the sum of the data in the period of time you're looking to evaluate.

    The function sum:


    would likely handle this. You'd do a sum with the time shift value set to "1d" to get the last 24 hours.

    The challenge being that would be a fluid number.

    The other thing you could do is set an item to be the "Daily" value and have it increase as the day rolls on, then the next day the value resets at zero, then set a trigger on it.

    The forecast function here may help you as well.

    Comment

    • tserreyn
      Junior Member
      • Jun 2012
      • 26

      #3
      yes daily is easy

      Yes, with the time shift the daily function for the last 24 hours is fairly simple.

      My problem is how to do this for (since the 20th of the month) type totals.

      Comment

      • aeassured
        Junior Member
        • Sep 2017
        • 8

        #4
        Could you so a sum and set the start point as "dayofmonth" the first?

        Comment

        Working...