Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
check_fastcgi.pl is a nagios plugin created for checking the availability and status of a php-cgi FastCGI server.
Current Version
0.1
Last Release Date
2009-09-30
Owner
Rodolfo Gonzalez
Website
http://www.rodolfogonzalez.com.mx/
Compatible With
check_fastcgi.pl is a plugin created for checking the availability of a php-cgi FastCGI server operating with TCP in a local or remote host. You can try it with some other FastCGI application server, it should work. The plugin is writen in Perl and needs the following modules, which can be installed from CPAN ("perl -MCPAN -e shell" is my favorite way to do this): FCGI::Client IO::Socket::INET Getopt::Long The script takes the following parameters: my $host = ''; # server host my $port = 9999; # tcp port my $script = ''; # test script (absolute path starting at / - root directory -) my $query_string = ''; # query string my $expected = 'OK'; # expected string my $timeout = 5; # timeout in seconds You'll need to write a script which you'll need to place somewhere in the filesystem of the computer where the FastCGI server is running on. For example, create a test.php file with this inside: and place it in /var/www/test.php. Then, the "script" parameter should be "/var/www/test.php" and the "expected" parameter should be "OK" (which is the default). The command line for a server on TCP port 9999 on localhost would be then: check_fastcgi.pl -H 127.0.0.1 -p 9999 -s /var/www/test.php -e OK Notice that connecting to a php-cgi server (with check_tcp, for example), is not always a sign of a healthy php-cgi, so the execution of a script is necessary to confirm that everything is ok with the server. php-cgi tends to freeze and stay listening to connections but returning end of file >:-/ This plugin is released under the terms of the GNU GPL version 3 (you can find it here: http://www.gnu.org/licenses/gpl-3.0.txt )
You must be logged in to submit a review.
To:
From: