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@
h>++
r+++(-) y+++>+++++
------END GEEK CODE BLOCK------

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 O.
To: [email protected]
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@ h>++ r+++(-) y+++>+++++
------END GEEK CODE BLOCK------

2012/5/15 Falko T. [email protected]

Sent: Tuesday, May 15, 2012 8:48 PM

Version: 3.1


nginx mailing list
[email protected]
nginx Info Page

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@
h>++
r+++(-) y+++>+++++
------END GEEK CODE BLOCK------

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:

Regards,

Justin D. http://www.twitter.com/jdorfman

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

2012/5/15 Justin D. [email protected]

server accepts handled requests
Regards,

Justin D. http://www.twitter.com/jdorfman

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

Thx!!, now implement this.

I’m a web developer from Argentina, and use nginx ago one year.
web: http://blog.exodica.com.ar

[email protected]
El Tio ~ Programador, hacker y filósofo

nginx Info Page


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@
h>++
r+++(-) y+++>+++++
------END GEEK CODE BLOCK------