Nagios check for nginx with separate metrics

Francis Daly francis at
Wed Nov 13 22:00:40 UTC 2013

On Wed, Nov 13, 2013 at 05:10:25PM +0200, Nikolaos Milas wrote:
> On 27/10/2013 9:09 μμ, Nikolaos Milas wrote:

Hi there,

> >All of the available (to my knowledge) nginx Nagios checks 

> >produce comprehensive output which includes all "metrics" together, 

> >Output with a single metric at a time is important for use in 
> >server/network monitoring systems.

If *everyone* who writes a checker provides multiple metrics at once, that
kind of suggests that a single metric at a time isn't all that important.

> >Does anyone know whether such an nginx Nagios check exists (and where) 
> >or we would have to modify source code of one of these plugins to 
> >achieve the required behavior? 

I suspect you're going to have to write your own -- maybe from scratch,
maybe a wrapper around one you like.

Presumably they all ask for a url where nginx serves "stub_status", and
process the numbers returned. In your version, just ignore the numbers
you don't care about. (Or cache them and serve slightly-stale information,
to avoid making the same request three times in succession.)

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list