Ad Widget

Collapse

Item Preprocessing rule

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rihis
    Junior Member
    • Aug 2021
    • 14

    #1

    Item Preprocessing rule

    Hi,

    Please advice me to create a simple Item Preprocessing rule to transform any value that is greater than 100 to 100. For example, if the value is 102.6431 it will be converted to just 100. Or probably this can be done by some else Zabbix function (not Preprocessing)
    Thank you in advance!

    Click image for larger version

Name:	100.JPG
Views:	154
Size:	37.1 KB
ID:	429533
  • johndoe2374
    Member
    • Aug 2021
    • 80

    #2
    I think in that case you can use step called "In range" and set range from 0 to 100. Then check "Custom on fail" checkbox and if received value equals other that from 0 to 100 set it to 100.

    Comment


    • johndoe2374
      johndoe2374 commented
      Editing a comment
      Not an elegant solution, but that'll work if you sure you're receiving correct values. Wasn't able to find how to check for "greater that" condition. Probably beter would be using JavaScript preprocessing. A bit more difficult though.
  • Rihis
    Junior Member
    • Aug 2021
    • 14

    #3
    Hi,
    Thank you, it works

    Comment

    Working...