Ad Widget

Collapse

Getting total datatraffic per month

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RoelofMiddeljans
    Junior Member
    • Oct 2007
    • 5

    #1

    Getting total datatraffic per month

    Hello,

    I'm working with Zabbix for three and a half month now and I'm having a problem.

    I want to monitor the total datatraffic per month.

    For example:
    Every first day of the month at 0:00 I want to know the difference between the current and the previous value.

    I want to keep an eye on the datatraffic limit of the webhost and be warned when it's getting too high.

    At the moment I use an Userparameter with an item (interval 86400 sec and delta (simple change)) to get the total amount of traffic per day:

    UserParameter=network.traffic.total[*],echo "$((`/sbin/ifconfig $1 |grep bytes|cut -d":" -f2|cut -d" " -f1` + /sbin/ifconfig $1 |grep bytes|cut -d":" -f3|cut -d" " -f1`))"

    Is there a solution to get the total data traffic per month, or is it only possible to do this per day (86400 sec)?

    I know it is possible to work it out with a cronjob and push the value to the server, but I want use only Zabbix for it.

    Thanks,

    Roelof

    __________________
    Using:
    - 1 Host (50 items)
    - Zabbix ver 1.4.2 (for Linux)
    Last edited by RoelofMiddeljans; 14-11-2007, 13:54. Reason: Explanation
  • just2blue4u
    Senior Member
    • Apr 2006
    • 347

    #2
    great idea!

    This is very interesting for me, too.
    Big ZABBIX is watching you!
    (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)

    Comment

    • michaeltje
      Member
      • Aug 2007
      • 44

      #3
      Im interessted aswell!

      Comment

      Working...