Ad Widget

Collapse

Item Prototype to calculate total incoming bandwidth for the past month

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sven Kodali
    Junior Member
    • May 2023
    • 20

    #1

    Item Prototype to calculate total incoming bandwidth for the past month

    Hi,

    I'd like to add an item prototype to my existing VMWare Guest template to provide a sum of total incoming bandwidth on VM network interfaces.

    I've been trying a number of different key / formula combinations but Zabbix keeps classifying them as invalid. Any suggestions?

    This is my item prototype:
    Name: Total inbound Traffic (Monthly)
    Type: Calculated
    Key: vmware.vm.net.if.in.total[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME}]
    Type of information: Numeric (Unsigned)
    Formula: sum(/*/vmware.vm.net.if.in[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME}],1M)
    Units: GB
    Update interval: 1m

    For the above, the error is
    • Invalid parameter "/1/params": invalid first parameter in function "sum".
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    That "*" is too much..
    do you have item "vmware.vm.net.if.in[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME}]" ?
    OOB, there is "vmware.vm.net.if.in[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},bps]" (and pps)

    and giving 1M as parameter to sum for every minute... you are going to kill your server... 43.2k values to summarize every minute... And all you actually need is do it once a month...

    sum(//vmware.vm.net.if.in[{$VMWARE.URL},{$VMWARE.VM.UUID},{#IFNAME},bps],1h) works...
    Last edited by cyber; 25-03-2025, 15:04.

    Comment

    Working...