Ad Widget

Collapse

How to trigger condition with "like" operator?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Monstercheek
    Junior Member
    • Oct 2017
    • 3

    #1

    How to trigger condition with "like" operator?

    Hi Zabbix Forum,

    I simply try to trigger an action with a condition with "Tigger name like string"

    The action needs to message a group if in a host group an alter for low disk space occurs.

    My condition examples look like these:

    Trigger name like Free disk space is less

    Trigger name like 'Free disk space is less'

    Trigger name like "Free disk space is less than"

    None of them is working. Please help.
  • tcilmo
    Senior Member
    • Nov 2016
    • 122

    #2
    Originally posted by Monstercheek
    Hi Zabbix Forum,

    I simply try to trigger an action with a condition with "Tigger name like string"

    The action needs to message a group if in a host group an alter for low disk space occurs.

    My condition examples look like these:

    Trigger name like Free disk space is less

    Trigger name like 'Free disk space is less'

    Trigger name like "Free disk space is less than"

    None of them is working. Please help.

    No quotes needed. The statement needs to look like: Trigger name like Free disk space is less

    I assume you do have triggers with names that match that string? Also, make sure media is configured on your user accounts in Zabbix. You can also check the Action log in the GUI to see if the message is being sent.


    Comment

    • Monstercheek
      Junior Member
      • Oct 2017
      • 3

      #3
      Hi tcilmo,

      many thanks for your feedback.

      Unfortunately there is nothing in "Action log" for this one.

      An example for a trigger name would be: "Mounted filesystem discovery: Free disk space is less than 10% on volume /boot {ITEM.LASTVALUE}"

      Media is set up the same way as for all other but still no success. Usually if media is not configured correctly action log at least shows that it tried but failed but it rather seems the condition does not trigger at all. I assume the like operator is not working the way it should be.

      Any other idea how to solve this?

      Comment

      • tcilmo
        Senior Member
        • Nov 2016
        • 122

        #4
        Originally posted by Monstercheek
        Hi tcilmo,

        many thanks for your feedback.

        Unfortunately there is nothing in "Action log" for this one.

        An example for a trigger name would be: "Mounted filesystem discovery: Free disk space is less than 10% on volume /boot {ITEM.LASTVALUE}"

        Media is set up the same way as for all other but still no success. Usually if media is not configured correctly action log at least shows that it tried but failed but it rather seems the condition does not trigger at all. I assume the like operator is not working the way it should be.

        Any other idea how to solve this?

        Here is what comes to mind. I assume the trigger is actually firing and it appears in the dashboard. If not, no active trigger means no notification. I doubt that is your issue.
        I would double check how the media on the users who need to received the alerts is defined. Specifically the severity portion. If the same severity of the trigger is not defined in the user media, the user\s will not receive that email notification. Make sense?
        Next, I would make use the users who need to receive the notifications have read rights to these servers in Zabbix. No read rights, no notification.

        Those are the things that I have personally had to work through in the past.









        Comment

        • Monstercheek
          Junior Member
          • Oct 2017
          • 3

          #5
          Hi,

          the media setup for the user is the same as for all other users:
          • Type
          • Send to
          • When active
          • Use if severity
            • Not classified
            • Information
            • Warning
            • Average
            • High
            • Disaster
          • Enabled

          The trigger is working just fine and also email notifications work on a higher level (admin users like myself get mails by condition "severity >= warning" which is working fine).

          The action log does not show any try even though the conditions are met. (Host group and trigger name like).

          Comment

          • ciberpiano
            Junior Member
            • Nov 2018
            • 1

            #6
            Hi Monstercheek,

            Were you able to fix your notification with the "Trigger name like" filter?
            I'm stuck the same way you describe.

            Best regards.

            Comment

            Working...