Hi,
I'm struggling with a trigger action where it is ignoring a condition.
So a trigger action is created to restart a Windows service when Zabbix detects it's stopped.
I added a few conditions where I don't want this to happen because I stop a service on purpose during an offline backup of a database.
So far so good.
There is another trigger action to execute a script on a host when a ups is running on battery (and capacity below a certain value).
That is working fine as well, as a remote command a batch file is run on a specified client to stop certain services.
But when I add another condition to the screenshot above so a service is NOT restarted when ups is on battery, that condition is getting ignored?
So conditions C, D and E are working but when B is added, it is still restarting a service even though the trigger that that ups is on battery has status = problem.
I tried playing around with AND/OR calculations but I can't get it to work when this "ups on battery condition" is added.
I tried it with removing conditions C, D and E but still I see a service being restarted (I used the W32Time server for testing)?
Anyone got a clue why this condition for the ups on battery trigger is ignored here and why other conditions like the service names are working?
This is on Zabbix 6.4
I'm struggling with a trigger action where it is ignoring a condition.
So a trigger action is created to restart a Windows service when Zabbix detects it's stopped.
I added a few conditions where I don't want this to happen because I stop a service on purpose during an offline backup of a database.
So far so good.
There is another trigger action to execute a script on a host when a ups is running on battery (and capacity below a certain value).
That is working fine as well, as a remote command a batch file is run on a specified client to stop certain services.
But when I add another condition to the screenshot above so a service is NOT restarted when ups is on battery, that condition is getting ignored?
So conditions C, D and E are working but when B is added, it is still restarting a service even though the trigger that that ups is on battery has status = problem.
I tried playing around with AND/OR calculations but I can't get it to work when this "ups on battery condition" is added.
I tried it with removing conditions C, D and E but still I see a service being restarted (I used the W32Time server for testing)?
5448:20250220:103940.569 Executing command 'C:\Program Files\Zabbix Agent\shutdown_by_ups.bat'
5444:20250220:104222.833 Executing command 'c:\windows\system32\net start W32Time'
5444:20250220:104222.833 Executing command 'c:\windows\system32\net start W32Time'
Anyone got a clue why this condition for the ups on battery trigger is ignored here and why other conditions like the service names are working?
This is on Zabbix 6.4
Comment