No commit activity in last 3 years
No release in over 3 years
Sensu plugins for php-fpm
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1
~> 0.13
~> 13.0
~> 3.5
~> 3.9
~> 0.85.0
~> 0.9.25

Runtime

 Project Readme

Sensu-Plugins-php-fpm

Gem Version Sensu Bonsai Asset

This is an unofficial fork

This fork is automatically tested, built and published to RubyGems and Bonsai.

Files

  • bin/check-php-fpm.rb
  • bin/metrics-php-fpm.rb

Usage

Make sure you adjust the fastcgi_pass socket to whatever you are using:

location ~ "/fpm-(status|ping)" {
  include       /etc/nginx/fastcgi_params;
  fastcgi_pass  unix:/var/run/php5-fpm.sock;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  access_log off;
  allow 127.0.0.1;
  deny all;
}

Alternatively, but keep in mind that "ifs are evil":

set $pool "php5-fpm";
if ($arg_pool) {
  set $pool $arg_pool;
}
location ~ "/fpm-(status|ping)" {
  include       /etc/nginx/fastcgi_params;
  fastcgi_pass  unix:/var/run/$pool.sock;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  access_log off;
  allow 127.0.0.1;
  deny all;
}

Installation

Installation and Setup

Notes