I've been struggling with an issue where my windows services are flapping. By using the Windows Discovery Template (LLD), I've been able to detect new services, which I love from an integrity perspective, but loathe when they stop/start. I've put in a means to restart the service, but what I'd like is to prevent being notified when it stops and starts.
Alert if service stops
{Template Windows Service Discovery:service_state[{#SERVICENAME}].last(0)}>0
What I'd like and have gleaned from the Zabbix docs is
If service stays above 1 for 5 minutes, alert.
{Template Windows Service Discovery:service_state[{#SERVICENAME}].max(5m)}>0
I'm still getting emails as soon as the service stops on the first check, so I know it's not working. Any assistance is much appreciated.
Thanks,
bildz
Alert if service stops
{Template Windows Service Discovery:service_state[{#SERVICENAME}].last(0)}>0
What I'd like and have gleaned from the Zabbix docs is
If service stays above 1 for 5 minutes, alert.
{Template Windows Service Discovery:service_state[{#SERVICENAME}].max(5m)}>0
I'm still getting emails as soon as the service stops on the first check, so I know it's not working. Any assistance is much appreciated.
Thanks,
bildz
Comment