Restart Service
Posted: Mon Dec 02, 2024 9:44 am
I found a guide on how to restart a service via an event handler (https://answerhub.nagios.com/support/s/ ... A-f4a44019) but the problem is that we already have a service check that is monitoring 5 critical services at once. So rather than having 5 different service checks, we combined them into one less network traffic, less service checks to maintain if there is something to change and it just seems cleaner.
The question/problem is how to create the event handler? Will it correctly capture the individual service that is failing/not-running in the check? Currently, if one of the services is not running, it does return CRITICAL can calls out the failed service. But every other service check is still in that returned value. I don't know if this will be a problem or not so I figured I'd ask here first.
The question/problem is how to create the event handler? Will it correctly capture the individual service that is failing/not-running in the check? Currently, if one of the services is not running, it does return CRITICAL can calls out the failed service. But every other service check is still in that returned value. I don't know if this will be a problem or not so I figured I'd ask here first.