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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Edouard
Posts: 5
Joined: Wed Apr 08, 2015 4:25 am

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

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

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

Post 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!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Edouard
Posts: 5
Joined: Wed Apr 08, 2015 4:25 am

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

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

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

Post by jolson »

I'm glad you got that working - do you have any questions, or is this thread good to close?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Edouard
Posts: 5
Joined: Wed Apr 08, 2015 4:25 am

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

Post by Edouard »

Hi

You can close it

Edouard
Locked