check for running service

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check for running service

Postby benjamin.john » Thu Feb 02, 2017 1:08 pm

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!
Posts: 1
Joined: Thu Feb 02, 2017 12:37 pm

Re: check for running service

Postby rkennedy » Thu Feb 02, 2017 2:11 pm

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.
Posts: 6503
Joined: Mon Oct 05, 2015 11:45 am

Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests