Discussion:
[Nagios-users] nagios3 over fcgid+apache2?
b2
2013-08-19 09:57:37 UTC
Permalink
is that possible?

i got working apache2+mod_fcgid setup, but nagios cgi's isnt working. in
apache error logs i got:



getcgivars(): Unsupported REQUEST_METHOD -> ''

I'm guessing you're trying to execute the CGI from a command line.
In order to do that, you need to set the REQUEST_METHOD environment
variable to either "GET", "HEAD", or "POST". When using the
GET and HEAD methods, arguments can be passed to the CGI
by setting the "QUERY_STRING" environment variable. If you're
using the POST method, data is read from standard input. Also of
note: if you've enabled authentication in the CGIs, you must set the
"REMOTE_USER" environment variable to be the name of the user you're
"authenticated" as.

[Mon Aug 19 12:56:58 2013] [warn] [client x.x.x.x] (104)Connection reset
by peer: mod_fcgid: error reading data from FastCGI server
[Mon Aug 19 12:56:58 2013] [error] [client x.x.x.x] Premature end of
script headers: status.cgi



can i do something to get it work?
thanks in advance.
William Leibzon
2013-08-19 10:28:32 UTC
Permalink
Why are you using fast cgi with nagios? Is your nagios being accessed
several times a second?
Post by b2
is that possible?
i got working apache2+mod_fcgid setup, but nagios cgi's isnt working. in
getcgivars(): Unsupported REQUEST_METHOD -> ''
I'm guessing you're trying to execute the CGI from a command line.
In order to do that, you need to set the REQUEST_METHOD environment
variable to either "GET", "HEAD", or "POST". When using the
GET and HEAD methods, arguments can be passed to the CGI
by setting the "QUERY_STRING" environment variable. If you're
using the POST method, data is read from standard input. Also of
note: if you've enabled authentication in the CGIs, you must set the
"REMOTE_USER" environment variable to be the name of the user you're
"authenticated" as.
[Mon Aug 19 12:56:58 2013] [warn] [client x.x.x.x] (104)Connection reset
by peer: mod_fcgid: error reading data from FastCGI server
[Mon Aug 19 12:56:58 2013] [error] [client x.x.x.x] Premature end of
script headers: status.cgi
can i do something to get it work?
thanks in advance.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Sven Nierlein
2013-08-19 10:40:40 UTC
Permalink
Hi,

No, thats not possible and it makes no sense to run the nagios cgis with fastcgi
or fcgid. You would need to rewrite tons of code in the nagios cgis and would gain
almost no performance improvements.

Regards,
Sven
Post by b2
is that possible?
i got working apache2+mod_fcgid setup, but nagios cgi's isnt working. in
getcgivars(): Unsupported REQUEST_METHOD -> ''
I'm guessing you're trying to execute the CGI from a command line.
In order to do that, you need to set the REQUEST_METHOD environment
variable to either "GET", "HEAD", or "POST". When using the
GET and HEAD methods, arguments can be passed to the CGI
by setting the "QUERY_STRING" environment variable. If you're
using the POST method, data is read from standard input. Also of
note: if you've enabled authentication in the CGIs, you must set the
"REMOTE_USER" environment variable to be the name of the user you're
"authenticated" as.
[Mon Aug 19 12:56:58 2013] [warn] [client x.x.x.x] (104)Connection reset
by peer: mod_fcgid: error reading data from FastCGI server
[Mon Aug 19 12:56:58 2013] [error] [client x.x.x.x] Premature end of
script headers: status.cgi
can i do something to get it work?
thanks in advance.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Sven Nierlein ***@consol.de
ConSol* GmbH http://www.consol.de
Franziskanerstrasse 38 Tel.:089/45841-439
81669 Muenchen Fax.:089/45841-111
b2
2013-08-19 11:16:07 UTC
Permalink
Post by Sven Nierlein
Hi,
No, thats not possible and it makes no sense to run the nagios cgis with fastcgi
or fcgid. You would need to rewrite tons of code in the nagios cgis and would gain
almost no performance improvements.
Regards,
Sven
Thanks a lot for your answer.

Loading...