Ad Widget

Collapse

How can I manage real-time events?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gid
    Junior Member
    • Jun 2015
    • 14

    #1

    How can I manage real-time events?

    Hi folks,

    Say I want to send, via zabbix_sender, a real-time event reporting that an error of type A occurred. I can obviously define an item called errors_type_A and whenever the error occurs, send error_type_A=1, and then on the server set a trigger so that when it's non-zero an alert must be sent out.

    OK, but then, somehow, I must automatically reset the value to 0, so that I can catch the next similar event.

    Can Zabbix handle this? Or via another mechanism that I'm not aware of?

    Thanks,

    George
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    What will define a cleared status? If it takes administrator action, have them run a sender command to set it back to 0 when it's fixed.

    If it's just time, have your script do an "at now + 10 min" to send a clear in 10 minutes.

    Comment

    • gid
      Junior Member
      • Jun 2015
      • 14

      #3
      If the client sends a 1 and then immediately a 0 (for a "clear"), will that still allow the trigger to fire so as not to miss the event? I mean, will the trigger "have the time" to fire? I guess it will, if the trigger examines every input item as it comes in.

      Comment

      • LenR
        Senior Member
        • Sep 2009
        • 1005

        #4
        I didn't mean to imply sending the 0 (clear) immediately.

        Comment

        • gid
          Junior Member
          • Jun 2015
          • 14

          #5
          The "immediately" part was all mine. I can't wait 10min or even 10sec. Events come in at a very fast rate, so the largest delay I'd be willing to accept is just 1sec.

          Comment

          • gid
            Junior Member
            • Jun 2015
            • 14

            #6
            EDIT: I had a question but I figured it out myself so nevermind...
            Last edited by gid; 04-11-2015, 17:46. Reason: I figured it out myself

            Comment

            Working...