Page 1 of 1

check for running service

Posted: Thu Feb 02, 2017 1:08 pm
by benjamin.john
i need to be notified when a service stops on a host. does anyone have a linux plugin that allows you to set a critical threshold for a service that stops running? the 'check_services' plugin that comes with nrpe does not have this feature.

thanks in advance!
ben

Re: check for running service

Posted: Thu Feb 02, 2017 2:11 pm
by rkennedy
You should be able to use check_init_service, which I believe is bundled with NRPE by default - otherwise there are versions if it floating around online. You will probably need to add a sudoers entry for the user that is executing your NRPE checks.

Re: check for running service

Posted: Wed Mar 01, 2017 2:17 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up or has the issue otherwise been resolved?

Re: check for running service

Posted: Fri Mar 03, 2017 12:12 pm
by benjamin.john
Yes, check_init was exactly what I needed. Thanks!

Re: check for running service

Posted: Fri Mar 03, 2017 12:55 pm
by tmcdonald
Great to hear! I'll be closing this thread now, but feel free to open another if you need anything in the future.