Ad Widget

Collapse

Create trigger with more information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • passu
    Junior Member
    • Sep 2011
    • 4

    #1

    Create trigger with more information

    Hello everybody,

    is it possible to create triggers, which have more information than the standard?

    Now a trigger reacts if there is a value greater than 0. It would be nice if this trigger can send an information why this value is greater than 0.

    An example:
    I have a database query which returns a value grater than 0. The reason is that a process creates some errors. Now I want to send these errors within the trigger message.


    regards!
  • Yello
    Senior Member
    • Apr 2011
    • 309

    #2
    Hi,
    You could configure a remote command that gets triggered by this item. The remote comand would run a script to check the issue. You could then use zabbix_sender to send traps back to zabbix with more detail. Secondary, context oriented triggers could then be set to fire depending on what is returned.


    Regards,
    David

    Comment

    • passu
      Junior Member
      • Sep 2011
      • 4

      #3
      Hi David,

      thanks for your reply.

      What do you mean with "context oriented triggers"? Do you mean that I should create a trigger which reacts if the returned value is like "error"?

      The problem is that I can' t create a trigger with a fix value because each error is a unique problem.

      Comment

      • Yello
        Senior Member
        • Apr 2011
        • 309

        #4
        Hi,
        You use zabbix sender to send return codes back to zabbix. You then set up triggers for each return code value and add a relevent comment in the trigger body. Then you configure an action which prints out {TRIGGER.COMMENT}.

        The trigger comment can tell the recipient of the email what the problem probably is and what the recommended fix should be. That, or something similar, will give you the kind of contextual triggering you're after.


        Regards,
        David

        Comment

        Working...