Skip to content

Commit

Permalink
Merge pull request #1 from luohu1/docs
Browse files Browse the repository at this point in the history
docs(): Update README.md
  • Loading branch information
luohu1 authored Feb 20, 2020
2 parents 430bbff + d793091 commit 9c90832
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
# zabbix-template-phpfpm
# Zabbix template for monitoring PHP-FPM status



## User Guide

### Enable PHP-FPM status page.

Change php-fpm configration file and apply the changes.

```bash
$ sudo vim /path/to/php-fpm.conf
pm.status_path = /phpfpm_status
# restart php-fpm
```

Include [nginx.conf](https://github.com/luohu1/zabbix-template-phpfpm/blob/master/nginx.conf#L1-L17) to your nginx configuration file and reload nginx server.

Ensure it works.

```bash
$ curl -s http://127.0.0.1/phpfpm_status
pool: www
process manager: dynamic
start time: 17/May/2019:14:54:02 +0530
start since: 886617
accepted conn: 1619617
listen queue: 0
max listen queue: 0
listen queue len: 0
idle processes: 28
active processes: 1
total processes: 30
max active processes: 31
max children reached: 0
slow requests: 0
```

### Setup zabbix_agentd

Copy `userparameter_phpfpm.conf` to zabbix_agentd sub configuration directory such as `etc/zabbix_agentd.conf.d` and restart zabbix_agentd



Request Zabbix UI to configuration the template and link it to hosts.

- Import `Template_App_phpfpm_3.0.xml`. [zabbix doc](https://www.zabbix.com/documentation/current/manual/xml_export_import/templates)
- Link template to hosts. [zabbix doc](https://www.zabbix.com/documentation/current/manual/config/templates/linking)

### Done



0 comments on commit 9c90832

Please sign in to comment.