Ad Widget

Collapse

Trigger Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rcollier
    Member
    • Sep 2013
    • 53

    #1

    Trigger Help

    Hello all,

    I have a trigger configured on a primary server (let's call it server1) that looks for the string "disabled". I also have a trigger configured on a second host (lets call it server2). Server2 is a redundant server that will kick in if the application running on server1 goes down.

    So, as I said before, I have a trigger configured on server1 that looks for the string disabled (located in a log file). What I want to do is configure a trigger that will only fire if the string "disabled" is found in both log files located on both servers. (as of right now server2 is always in a disabled status while server1 is active).

    For example, server1 goes down, server2 should pick up the slack. I do not want an alert in this case. I do want an alert if both server1 goes down and server2 goes down.

    How do I do this? I was thinking of something like this:

    {server1:log[/home/Zabbix/listeneroutput].str(disabled)}=1 & {server2:log[/home/Zabbix/listeneroutput].str(disabled)}=1

    Does this look right? Or, would I need to configure a dependency?

    I appreciate your help.
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    Should work as defined besides I would put the string in double quotes.

    Comment

    • rcollier
      Member
      • Sep 2013
      • 53

      #3
      Why would you put them in double quotes?

      Comment

      • steveboyson
        Senior Member
        • Jul 2013
        • 582

        #4
        Because it is a string and usually strings which are not bound to a variable have double quotes around. It might work - but using double quotes you're on the safe side.

        Comment

        • rcollier
          Member
          • Sep 2013
          • 53

          #5
          This trigger is still not working as it should. Does anyone have any tips or suggestions to help resolve this issue? I'm out of ideas here on how to fix this.

          Comment

          Working...