Update check_phpfpm_status to 0.10

This commit is contained in:
Jan Wagner 2015-02-20 23:35:10 +01:00
parent 712a20a381
commit 17038528de
3 changed files with 11 additions and 10 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/perl -w
# check_phpfpm_status.pl
# Version : 0.9
# Version : 0.10
# Author : regis.leroy at makina-corpus.com
# based on previous apache status work by Dennis D. Spreen (dennis at spreendigital.de)
# Based on check_apachestatus.pl v1.4 by
@ -21,11 +21,12 @@ use Digest::MD5 qw(md5 md5_hex);
# Nagios specific
# Update Nagios Plugin path according to your platform/installation
use lib "/usr/local/nagios/libexec";
use utils qw($TIMEOUT);
# Globals
my $Version='0.9';
my $Version='0.10';
my $Name=$0;
my $o_host = undef; # hostname
@ -98,7 +99,7 @@ sub help {
-p, --port=PORT
Http port
-u, --url=URL
Specific URL to use, instead of the default "http://<hostname or IP>/fpm-status"
Specific URL (only the path part of it in fact) to use, instead of the default "/fpm-status"
-s, --servername=SERVERNAME
ServerName, (host header of HTTP request) use it if you specified an IP in -H to match the good Virtualhost in your target
-S, --ssl
@ -113,7 +114,7 @@ sub help {
Debug mode (show http request response)
-t, --timeout=INTEGER
timeout in seconds (Default: $o_timeout)
-w, --warn=REQPERSEC,PROC_MAX_REACHED,QUEUE_MAX_REACHED
-w, --warn=MIN_AVAILABLE_PROCESSES,PROC_MAX_REACHED,QUEUE_MAX_REACHED
number of available workers, or max states reached that will cause a warning
-1 for no warning
-c, --critical=MIN_AVAILABLE_PROCESSES,PROC_MAX_REACHED,QUEUE_MAX_REACHED
@ -164,8 +165,8 @@ sub check_options {
'r:s' => \$o_realm, 'realm:s' => \$o_realm,
'p:i' => \$o_port, 'port:i' => \$o_port,
'V' => \$o_version, 'version' => \$o_version,
'w:s' => \$o_warn_thresold,'warn:s' => \$o_warn_thresold,
'c:s' => \$o_crit_thresold,'critical:s' => \$o_crit_thresold,
'w=s' => \$o_warn_thresold,'warn=s' => \$o_warn_thresold,
'c=s' => \$o_crit_thresold,'critical=s' => \$o_crit_thresold,
't:i' => \$o_timeout, 'timeout:i' => \$o_timeout,
);

View file

@ -1,6 +1,6 @@
Homepage: https://raw.github.com/regilero/check_phpfpm_status/master/check_phpfpm_status.pl
Watch: https://raw.github.com/regilero/check_phpfpm_status/master/check_phpfpm_status.pl Version\ :\ ([0-9.]+)
Recommends: libwww-perl, monitoring-plugins-common | nagios-plugins-common
Version: 0.9
Version: 0.10
Uploaders: Jan Wagner <waja@cyconet.org>
Description: plugin to check the fpm-status page report from php-fpm

View file

@ -3,13 +3,13 @@ Description:
Patches check_phpfpm_status to use debian specific paths.
diff --git a/check_phpfpm_status/check_phpfpm_status b/check_phpfpm_status/check_phpfpm_status
index ae2f68e..e2280a7 100644
index 678170b..d0c099b 100644
--- a/check_phpfpm_status/check_phpfpm_status
+++ b/check_phpfpm_status/check_phpfpm_status
@@ -21,7 +21,7 @@ use Digest::MD5 qw(md5 md5_hex);
@@ -22,7 +22,7 @@ use Digest::MD5 qw(md5 md5_hex);
# Nagios specific
# Update Nagios Plugin path according to your platform/installation
-use lib "/usr/local/nagios/libexec";
+use lib "/usr/lib/nagios/plugins";
use utils qw($TIMEOUT);