Ad Widget

Collapse

Item that calculates sum of last values ​​equal to 0?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cesarsj
    Senior Member
    • Dec 2018
    • 154

    #1

    Item that calculates sum of last values ​​equal to 0?


    Is it possible to create a calculated item that calculates the sum of the last collected value of several items equal to zero? This is why our backup checks on a server return the exit code, and zero is successful. I would like an item to sum and alert if the total was less than the total backups.
  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    You only need it to the trigger? If it's you just need to sum all itens and check if the sum is greater than 0
    {template:key1+template:key2+...+template:key3}>0

    Comment

    • cesarsj
      Senior Member
      • Dec 2018
      • 154

      #3
      Originally posted by splitek
      You value can be 0/1 only? And can you revert your items to be 1 not 0? If not then it will not be easy to do.
      No, because I want the values ​​equal to the exit code: https://lxadm.com/Rsync_exit_codes . Example: Backups with latest values 0 = 44. Less than 44 triggers the trigger

      Comment

      Working...