check for running service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
benjamin.john
Posts: 4
Joined: Thu Feb 02, 2017 12:37 pm

check for running service

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check for running service

Post 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.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check for running service

Post 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?
Former Nagios employee
benjamin.john
Posts: 4
Joined: Thu Feb 02, 2017 12:37 pm

Re: check for running service

Post by benjamin.john »

Yes, check_init was exactly what I needed. Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check for running service

Post 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.
Former Nagios employee
Locked