Hi,
I will check which Windows services are not running.
What I tried:
- create a discovery for services
Startup type of {#SERVICE.DISPLAYNAME} ({#SERVICE.NAME})
service.info[{#SERVICE.NAME},startup]
Status of {#SERVICE.DISPLAYNAME} ({#SERVICE.NAME})
service.info[{#SERVICE.NAME},state]
- create a trigger for discoverd services
Windows Service {#SERVICE.DISPLAYNAME} is not running
service.info[{#SERVICE.NAME},state].last()}<>0
This things working 'fine'.
For the trigger, I check if the startup-type = 0|1 and then the last state: not running=error,
but there are services they have startup-type 0|1 and, after the start, they finished automated.
How can I exclude this serivces (more than one) with a rule / expression / in the discovery?
Thanks a lot for your quick help.
Best regards
lustigerpinguin
I will check which Windows services are not running.
What I tried:
- create a discovery for services
Startup type of {#SERVICE.DISPLAYNAME} ({#SERVICE.NAME})
service.info[{#SERVICE.NAME},startup]
Status of {#SERVICE.DISPLAYNAME} ({#SERVICE.NAME})
service.info[{#SERVICE.NAME},state]
Windows Service {#SERVICE.DISPLAYNAME} is not running
service.info[{#SERVICE.NAME},state].last()}<>0
For the trigger, I check if the startup-type = 0|1 and then the last state: not running=error,
but there are services they have startup-type 0|1 and, after the start, they finished automated.
How can I exclude this serivces (more than one) with a rule / expression / in the discovery?
Thanks a lot for your quick help.
Best regards
lustigerpinguin
Comment