Ad Widget

Collapse

How to clear an event log trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahahum
    Member
    • Jan 2009
    • 79

    #1

    How to clear an event log trigger

    Hello,

    I am monitoring an event log for any errors. I am having success on this portion, but I'm unsure how to make the trigger clear after a certain amount of time. There is never anything logged in this particular log other than errors so there is not an informational event I can look for to clear the trigger.

    Here is what I have tried, but it doesn't ever clear.

    (({GPSERVER:eventlog[eConnect].logseverity(0)}=4)|({TRIGGER.VALUE}=1&({GPSERVER: eventlog[eConnect].nodata(30)}=1)))

    Can someone help here?

    Thanks!

    Adam
  • ahahum
    Member
    • Jan 2009
    • 79

    #2
    Bumpity

    Bump please?

    Comment

    • HullZabbix
      Senior Member
      • Feb 2011
      • 104

      #3
      Here's what I have for my event log monitoring

      {TemplateServers:eventlog[System].logseverity(0)}=4 & {TemplateServers:eventlog[System].nodata(10)}#1

      This clears the trigger almost straight away.

      I think your brackets are slightly messed up. Why do you have TRIGGER.VALUE in there?

      ({GPSERVER:eventlog[eConnect].logseverity(0)}=4 | {TRIGGER.VALUE}=1) & {GPSERVER: eventlog[eConnect].nodata(30)}#1
      Last edited by HullZabbix; 21-09-2011, 11:26.

      Comment

      • ahahum
        Member
        • Jan 2009
        • 79

        #4
        Originally posted by AxidaZabbix
        Here's what I have for my event log monitoring

        {TemplateServers:eventlog[System].logseverity(0)}=4 & {TemplateServers:eventlog[System].nodata(10)}#1

        This clears the trigger almost straight away.

        I think your brackets are slightly messed up. Why do you have TRIGGER.VALUE in there?

        ({GPSERVER:eventlog[eConnect].logseverity(0)}=4 | {TRIGGER.VALUE}=1) & {GPSERVER: eventlog[eConnect].nodata(30)}#1
        This works perfectly, thank you very much.

        I do not know why I had trigger.value in there...just messing around trying to get something to work

        Comment

        • kachijs
          Junior Member
          • Oct 2011
          • 12

          #5
          {TemplateServers:eventlog[System].logseverity(0)}=4 & {TemplateServers:eventlog[System].nodata(10)}#1

          first trigger works for me too, but 2nd is not working. Problem just keeps showing @ dashboard even though i ack this problem.

          What am i doing wrong? I simulate error appearing. I start service (error while starting) System log gets error and then no error continues but still warning is shown.

          any help ? tnx

          Comment

          • HullZabbix
            Senior Member
            • Feb 2011
            • 104

            #6
            I wouldn't use the second example trigger - it doesn't make sense. If

            {TemplateServers:eventlog[System].logseverity(0)}=4 & {TemplateServers:eventlog[System].nodata(10)}#1

            works for you then use it! Unless it's missing something you need?

            Comment

            • kachijs
              Junior Member
              • Oct 2011
              • 12

              #7
              Originally posted by AxidaZabbix
              I wouldn't use the second example trigger - it doesn't make sense. If

              {TemplateServers:eventlog[System].logseverity(0)}=4 & {TemplateServers:eventlog[System].nodata(10)}#1

              works for you then use it! Unless it's missing something you need?

              {TemplateServers:eventlog[System].logseverity(0)}=4 this trigger works for me (it shows problem) for item eventlog[System,WinHTTP], but 2nd {TemplateServers:eventlog[System].nodata(10)}#1 is not working for me (as i understand this trigger has to clean dashboard if no error is appearing in 10sec

              Comment

              • HullZabbix
                Senior Member
                • Feb 2011
                • 104

                #8
                They aren't seperate triggers! It's a single expression

                {TemplateServers:eventlog[System].logseverity(0)}=4 & {TemplateServers:eventlog[System].nodata(10)}#1

                The & joins them. The point of this trigger is to alert if there's an error in the System log, which will clear itself after 10 seconds.

                Comment

                • kachijs
                  Junior Member
                  • Oct 2011
                  • 12

                  #9
                  Originally posted by AxidaZabbix
                  They aren't seperate triggers! It's a single expression

                  {TemplateServers:eventlog[System].logseverity(0)}=4 & {TemplateServers:eventlog[System].nodata(10)}#1

                  The & joins them. The point of this trigger is to alert if there's an error in the System log, which will clear itself after 10 seconds.
                  yes i know that.
                  [img=http://www63.zippyshare.com/thumb/63900259/file.html][/img]

                  Here. i get my error showing @ dashboard but after 180 sec (3min) it still showing @ dashboard even tho no new error (winHTTP) is created @ system log.
                  Last edited by kachijs; 13-10-2011, 15:44.

                  Comment

                  • HullZabbix
                    Senior Member
                    • Feb 2011
                    • 104

                    #10
                    Originally posted by kachijs
                    yes i know that.
                    [img=http://www63.zippyshare.com/thumb/63900259/file.html][/img]

                    Here. i get my error showing @ dashboard but after 180 sec (3min) it still showing @ dashboard even tho no new error (winHTTP) is created @ system log.
                    Have you tried running it with just [WinHTTP] rather than [System,WinHTTP].

                    This will be picking up errors from both event logs. I'm not sure if that's your intention?

                    Also I'd set "Event generation" to Multiple.

                    Comment

                    • HullZabbix
                      Senior Member
                      • Feb 2011
                      • 104

                      #11
                      I think I've just realised what your trying to do

                      Are you trying to trigger an alert when you get an error (severity 4), in the "System" log which has a source of "WinHTTP" ?

                      If not, what exactly are you trying to do?

                      Comment

                      • kachijs
                        Junior Member
                        • Oct 2011
                        • 12

                        #12
                        Originally posted by AxidaZabbix
                        Have you tried running it with just [WinHTTP] rather than [System,WinHTTP].

                        This will be picking up errors from both event logs. I'm not sure if that's your intention?

                        Also I'd set "Event generation" to Multiple.
                        WinHTTP Is not an error log it a "phrase" (test phrase) that i use from picking up messages from System log.

                        Comment

                        • kachijs
                          Junior Member
                          • Oct 2011
                          • 12

                          #13
                          Originally posted by AxidaZabbix
                          I think I've just realised what your trying to do

                          Are you trying to trigger an alert when you get an error (severity 4), in the "System" log which has a source of "WinHTTP" ?

                          If not, what exactly are you trying to do?
                          yes this is exactly what im trying to do.

                          Comment

                          • HullZabbix
                            Senior Member
                            • Feb 2011
                            • 104

                            #14
                            Ok I think I understand now.


                            If WinHTTP is part of the description in the event log then what you want is:

                            {TemplateServers:eventlog[System].str("WinHTTP")}=1 & {TemplateServers:eventlog[System].nodata(10)}#1

                            But if it's the source, then you want this:

                            {TemplateServers:eventlog[System].logsource("WinHTTP")}=1 & {TemplateServers:eventlog[System].nodata(10)}#1

                            If you want it only to trigger on error (rather than error or warning or information) then you want this:

                            {TemplateServers:eventlog[System].logsource("WinHTTP")}=1 & {TemplateServers:eventlog[System].logseverity(0)}=4 & {TemplateServers:eventlog[System].nodata(10)}#1

                            Comment

                            • HullZabbix
                              Senior Member
                              • Feb 2011
                              • 104

                              #15
                              Last edited by HullZabbix; 13-10-2011, 16:06.

                              Comment

                              Working...