Script for Nagios

Justin Dorfman jdorfman at netdna.com
Tue May 15 20:29:05 UTC 2012


Hey Tio,

Try adding this to your nginx.conf:

       location /server-status {
                stub_status on;

It will allow your server to output:

Active connections: 2318
server accepts handled requests
201272333 201272328 533628275
Reading: 638 Writing: 250 Waiting: 1430

(Those number are made up)

Then use this plugin:

   - https://github.com/wilhelm-murdoch/Nginx-Nagios-Plugin


Regards,

Justin Dorfman <http://www.twitter.com/jdorfman>

NetDNA <http://www.netdna.com>™
The Science of Acceleration™



On Tue, May 15, 2012 at 12:57 PM, Tio Oscar <tioscar at gmail.com> wrote:

> 2012/5/15 Falko Timme <ft at falkotimme.com>
>
>> **
>> Do you mean running the Nagios/Icinga web interface on nginx? If so,
>> check out this link:
>>
>>
>> http://www.howtoforge.com/icinga-configuration-for-nginx-on-debian-wheezy-ubuntu-11.10
>>
>> ----- Original Message -----
>> *From:* Tio Oscar <tioscar at gmail.com>
>> *To:* nginx at nginx.org
>> *Sent:* Tuesday, May 15, 2012 8:48 PM
>> *Subject:* Script for Nagios
>>
>> Hi guys, I sant because this is my first email to the list.
>>
>> I'm a web developer from Argentina, and use nginx ago one year.
>>
>> In my job, are installing a Negios monitor, and i need a nginx script for
>> check connections by servers.
>>
>> Some of you know or have done one?
>>
>> PD: Sorry my english.
>>
>> --
>> El Tio ~ Programador, hacker y filósofo
>> web: http://blog.exodica.com.ar
>> Linked'in: http://www.linkedin.com/in/ogentilezza
>> Twitter: @exos, Indeti.ca: @exos
>> Tels: [+54 11] 638-LINUX (54689) - [+54 9 11] 6799-4797
>>
>> -----BEGIN GEEK CODE BLOCK-----
>> Version: 3.1
>> GCS/IT d-- s:++ a- C+++$ UBL+++$ P(-) L+++$ !E--- W+++$ !N !o K-? !w---
>> !O !M-- V? PS+++@ !PE Y+(++) PGP++ !t--- !5 X++ R(+) tv--? b- DI D-- G e at h>++ r+++(-) y+++>+++++
>> ------END GEEK CODE BLOCK------
>>
>> ------------------------------
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
> No, i need a script for nagios to check nginx (notify if the current
> connections is over X value, if works, etc), but someone better that a
> simple ping.
>
>
> --
> El Tio ~ Programador, hacker y filósofo
> web: http://blog.exodica.com.ar
> Linked'in: http://www.linkedin.com/in/ogentilezza
> Twitter: @exos, Indeti.ca: @exos
> Tels: [+54 11] 638-LINUX (54689) - [+54 9 11] 6799-4797
>
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GCS/IT d-- s:++ a- C+++$ UBL+++$ P(-) L+++$ !E--- W+++$ !N !o K-? !w--- !O
> !M-- V? PS+++@ !PE Y+(++) PGP++ !t--- !5 X++ R(+) tv--? b- DI D-- G e at h>++ r+++(-) y+++>+++++
> ------END GEEK CODE BLOCK------
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120515/51ec5219/attachment.html>


More information about the nginx mailing list