Ad Widget

Collapse

Trigger - match string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheBonaZabbix
    Member
    • Feb 2023
    • 67

    #1

    Trigger - match string

    Hello to all !
    I ask for your valuable help in creating a trigger
    I have an item that returns one of these three strings:

    OK->ksasmndasdmasp
    WARNING->adjasdasldasmld
    CRITICAL->odkfasodkasdask


    I would like the trigger to start only if the item returns CRITICAL string

    I tried to use the function FIND() but failed

    I did some practice but I can’t score.

    Can someone put me on the right track?

    Thank you !
    Andrea
  • vijayk
    Senior Member
    • May 2023
    • 305

    #2
    You can use function last(). This will check last value.

    Refer the link.


    https://www.zabbix.com/documentation...gers/functions
    Last edited by vijayk; 10-10-2023, 11:42.

    Comment

    • TheBonaZabbix
      Member
      • Feb 2023
      • 67

      #3
      Great !!!!
      Many many thanks !

      I did some tests and everything seems to work perfectly !
      Thank you very much !

      Andrea​

      Comment

      Working...