I'd like to only restart Window Services that are critical for our environment. I currently have an Action which can restart ALL Window's Services, but I'd like to be more prescriptive about which ones it attempts to restart while still being able to monitor and have triggers that go off for other services.
This Trigger Prototype:
{{Template OS Windows:service.info[{#SERVICE.NAME},state].min(#3)}<>0} triggers when services are not running.
And my Action's custom script is "net start {TRIGGER.DESCRIPTION}" which goes off the trigger description of {SERVICE.NAME}. The trigger prototype also has the tag Type = WinService.
This is all explained in the video https://www.youtube.com/watch?v=CMlp...Shee_A&index=6 presented by Zabbix.
I'm trying to think of a better way to restart specific services. Not sure if this would be done better with the global regular expressions or something else I haven't thought of, but here is my current idea:
I'm going to create two trigger prototypes. One will be the same as above but it will be more like this:
{{Template OS Windows:service.info[{#SERVICE.NAME},state].min(#3)}<>0} and {Template OS Windows:service.info[{#SERVICE.NAME},displayname]}<>"critical service1" or "critical service2" or "critical service3"}
where we exclude the "critical service" and I make the severity of the trigger either Information or Not Classified. I'm not sure if this works yet.
The second trigger prototype will be the opposite where it only is triggered by the explicit critical services and excludes any other dynamic services and has a trigger severity of High. The Action will then only run on windows services with a High trigger severity.
If you have any ideas on an easier way to go about this I would appreciate it. Thanks!
This Trigger Prototype:
{{Template OS Windows:service.info[{#SERVICE.NAME},state].min(#3)}<>0} triggers when services are not running.
And my Action's custom script is "net start {TRIGGER.DESCRIPTION}" which goes off the trigger description of {SERVICE.NAME}. The trigger prototype also has the tag Type = WinService.
This is all explained in the video https://www.youtube.com/watch?v=CMlp...Shee_A&index=6 presented by Zabbix.
I'm trying to think of a better way to restart specific services. Not sure if this would be done better with the global regular expressions or something else I haven't thought of, but here is my current idea:
I'm going to create two trigger prototypes. One will be the same as above but it will be more like this:
{{Template OS Windows:service.info[{#SERVICE.NAME},state].min(#3)}<>0} and {Template OS Windows:service.info[{#SERVICE.NAME},displayname]}<>"critical service1" or "critical service2" or "critical service3"}
where we exclude the "critical service" and I make the severity of the trigger either Information or Not Classified. I'm not sure if this works yet.
The second trigger prototype will be the opposite where it only is triggered by the explicit critical services and excludes any other dynamic services and has a trigger severity of High. The Action will then only run on windows services with a High trigger severity.
If you have any ideas on an easier way to go about this I would appreciate it. Thanks!
Comment