Ad Widget

Collapse

Help with Invalid Parameter Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xcenai
    Junior Member
    • Feb 2022
    • 1

    #1

    Help with Invalid Parameter Error

    I'm trying to calculate ink percentage levels for our printers in a custom template

    I have two items:
    • ItemA : inkMax
    • itemB: inkNow
    formula I use to calculate ink level is:
    (last(inkNow) / inkMax ) * 100

    But I keep getting incorrect expression errors
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2


    Example 1

    Calculating percentage of free disk space on '/'.
    Use of function last:

    100*last(//vfs.fs.size[/,free])/last(//vfs.fs.size[/,total])
    Zabbix will take the latest values for free and total disk spaces and calculate percentage according to the given formula.


    last(//inkNow)/last(//inkMax)*100

    Comment

    Working...