Ad Widget

Collapse

Trigger works once after saving then stops working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mblake4u
    Junior Member
    • Dec 2010
    • 2

    #1

    Trigger works once after saving then stops working

    Hi,

    I've got an item configured (which I can see in Latest Data):
    log[C:\Progra~1\freeFTPd\freeFTPd-ftp.log,@FreeFTPd-REGEX1]

    The global FreeFTPd-REGEX1 regex is simple:
    .*FTP.*server.*started.*

    I've then got a trigger defined:
    {HOSTNAME:log[C:\Progra~1\freeFTPd\freeFTPd-ftp.log,@FreeFTPd-REGEX1].str(started)}=1

    I've then got an action which sends an e-mail when the trigger is triggered.

    The problem is that the trigger will work only sometimes - I can't predict when it'll work but it's usually after making a change to the trigger. If seems like once the trigger is in 'problem' state it won't trigger again until 'reset'?

    TIA Michael
  • Ori0n
    Member
    • Dec 2010
    • 35

    #2
    Zabbix never knows when your event "ends". You'll have a similar problem when triggering off of received traps. Change your trigger to something like:

    Code:
    ({HOSTNAME:log[C:\Progra~1\freeFTPd\freeFTPd-ftp.log,@FreeFTPd-REGEX1].str(started)}=1)&({HOSTNAME:log[C:\Progra~1\freeFTPd\freeFTPd-ftp.log,@FreeFTPd-REGEX1].nodata(30)}=0)
    and see what happens. This assumes that this event happens with a frequency greater than 30 seconds. If it happens more frequently, you'll lost some fidelity.

    Comment

    • danrog
      Senior Member
      • Sep 2009
      • 164

      #3
      Out of curiosity, what version of the Windows agent are you using?

      Comment

      • mblake4u
        Junior Member
        • Dec 2010
        • 2

        #4
        Thanks for the replies - it's working now and I'm getting a problem and ok e-mail each time it triggers.

        I'm using version 1.8.3 of the agent and 1.8.2 server version.

        Couple more questions - is there a reference for triggers? I've looked at the documentation but it doesn't seem to detail all the triggers.

        Also can I modify the trigger so I only receive one e-mail (either the problem or ok e-mail)?

        Cheers, Michael

        Comment

        • Ori0n
          Member
          • Dec 2010
          • 35

          #5
          This would be the best reference for Triggers:

          http://www.zabbix.com/documentation/...onfig/triggers

          Comment

          Working...