Ad Widget

Collapse

Understanding last formula

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jevers
    Junior Member
    • Dec 2021
    • 2

    #1

    Understanding last formula

    Hi There,

    I am defining a formula to calculate success rate of a counter. Both itens are Zabbix Trappers ones. The script runs 07-59/5 in crontab and send data to the itens. In some cases no values are received. I used this formula:
    (last(//nudr-prov-successful-responses-recv,#1:now-1m)/ last(//nudr-prov-requests-sent,#1:now-1m)) * 100 , update interval 0, Scheduling m08-59/15. I used <#num<:time shift>> structure to make sure if no value is sent, the calculated item will not collect the last value received, for example one hour before and caulate the rate with invalid values, generating a false impression that everything is ok. Could you please confirm if this is the best way to avoid using old values to calculate the success rate?
    Thanks in advance.
Working...