README.md
## Sensu-Plugins-php-fpm
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-php-fpm.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-php-fpm)
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-php-fpm.svg)](http://badge.fury.io/rb/sensu-plugins-php-fpm)
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-php-fpm/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-php-fpm)
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-php-fpm/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-php-fpm)
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-php-fpm.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-php-fpm)
## Functionality
## 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](http://sensu-plugins.io/docs/installation_instructions.html)
## Notes