Ad Widget

Collapse

Formula syntax - last divided by average

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DembeanCadillac
    Junior Member
    • Mar 2024
    • 2

    #1

    Formula syntax - last divided by average

    I'm trying to create an item that divides the last asterisk.pjsip.available by its 12-hour average, however, I seem to not understand the syntax well.

    Code:
    last(//asterisk.pjsip.available)/avg(//asterisk.pjsip.available,12h)
    The above formula allows me to save the Item, but then I receive an error "Cannot evaluate function "last()": item "ast://asterisk.pjsip.available" does not exist."

    I checked the item "Asterisk: PJSIP available endpoints" and the key listed there is asterisk.pjsip.available. What did I do wrong please? Could this be because asterisk.pjsip.available is a dependent item?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    Shouldn't there be hostname in empty //-s... otherwise it should work without issues...
    func(/host/item,<params>)

    Comment

    Working...