Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name


This asset is forked from an upstream project at https://github.com/sensu-plugins/sensu-plugins-php-fpm that does not yet exist as a Bonsai asset.

v1.0.0 · public · Published 3 months ago

README
Asset Definition
Release Notes
Release Assets

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

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.

×

You must be signed in to report this asset.

Sign In with Github

Download

×

Either download the source code:

Download Source

Or download the asset definition: