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.
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.
Comment