Ad Widget

Collapse

bandwidth/data transfer monitoring per day or month

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mitch2k
    Junior Member
    • Mar 2018
    • 14

    #1

    bandwidth/data transfer monitoring per day or month

    Hi,

    I want to monitor & alert on the total data traffic on certain ethernet ports (servers/network devices).
    I want to have a rough estimate of data that passes each day/month on the device.
    I also want to alert if more then x amount of data on a daily base goes over an interface.

    What I now have done:

    created 2 items:

    Total incoming bytes on eth0
    net.if.in[eth0,bytes]

    Total outgoing bytes on eth0
    net.if.out[eth0,bytes]

    and 2 calculated items:

    Total incoming bytes on eth0 during last day
    net.if.in.lastday[eth0]

    Total outgoing bytes on eth0 during last day
    net.if.out.lastday[eth0]

    The calculated items have this formula:
    last("net.if.in[{#IFNAME},bytes]")-last("net.if.in[{#IFNAME},bytes]",,1d)

    This kinda works, but givens only the data for the previous day from NOW (so 21h yesterday to 21h today)

    Couple of questions:
    - Is there maybe a better approach to do this?
    - Is there a way to display data for the current day? so from midnight to now. Same for a month, from midnight the first till now.
    - Ideally, i would be able to create something like this:



    Thanks!
Working...