Page 1 of 1

Check if a specific service is doing his job (hasnt crashed)

Posted: Mon Apr 13, 2015 9:59 am
by Edouard
Hi,

Is there any plugin which make nagios able to detect if a service (nginx, elasticsearch, postfix...) is currently running AND is doing his job? (so it hasn't crashed) ?
Currently, I use a separate bash script who take the http code of the service (with curl), and restart service if code output is wrong

Any ideas?

Edouard

Re: Check if a specific service is doing his job (hasnt cras

Posted: Mon Apr 13, 2015 10:06 am
by jolson
There are many scripts available on the Nagios Exchange that may do what you want them to. Here is an example script for nginx: http://exchange.nagios.org/directory/Pl ... pl/details.

You can find more by searching the exchange: http://exchange.nagios.org/.

Thanks, and let me know if that helps!

Re: Check if a specific service is doing his job (hasnt cras

Posted: Mon Apr 13, 2015 11:25 am
by Edouard
Hi,

Thanks, I finally managed to use the Nagios Haproxy Stats plugin to monitor services. (as the services states are already known by Haproxy, Nagios will only have to ask Haproxy and not to collect metrics itself)

Edouard

Re: Check if a specific service is doing his job (hasnt cras

Posted: Mon Apr 13, 2015 11:41 am
by jolson
I'm glad you got that working - do you have any questions, or is this thread good to close?

Re: Check if a specific service is doing his job (hasnt cras

Posted: Tue Apr 14, 2015 2:55 am
by Edouard
Hi

You can close it

Edouard