Skip to content

Commit 9c90832

Browse files
authored
Merge pull request #1 from luohu1/docs
docs(): Update README.md
2 parents 430bbff + d793091 commit 9c90832

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,53 @@
1-
# zabbix-template-phpfpm
1+
# Zabbix template for monitoring PHP-FPM status
2+
3+
4+
5+
## User Guide
6+
7+
### Enable PHP-FPM status page.
8+
9+
Change php-fpm configration file and apply the changes.
10+
11+
```bash
12+
$ sudo vim /path/to/php-fpm.conf
13+
pm.status_path = /phpfpm_status
14+
# restart php-fpm
15+
```
16+
17+
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.
18+
19+
Ensure it works.
20+
21+
```bash
22+
$ curl -s http://127.0.0.1/phpfpm_status
23+
pool: www
24+
process manager: dynamic
25+
start time: 17/May/2019:14:54:02 +0530
26+
start since: 886617
27+
accepted conn: 1619617
28+
listen queue: 0
29+
max listen queue: 0
30+
listen queue len: 0
31+
idle processes: 28
32+
active processes: 1
33+
total processes: 30
34+
max active processes: 31
35+
max children reached: 0
36+
slow requests: 0
37+
```
38+
39+
### Setup zabbix_agentd
40+
41+
Copy `userparameter_phpfpm.conf` to zabbix_agentd sub configuration directory such as `etc/zabbix_agentd.conf.d` and restart zabbix_agentd
42+
43+
44+
45+
Request Zabbix UI to configuration the template and link it to hosts.
46+
47+
- Import `Template_App_phpfpm_3.0.xml`. [zabbix doc](https://www.zabbix.com/documentation/current/manual/xml_export_import/templates)
48+
- Link template to hosts. [zabbix doc](https://www.zabbix.com/documentation/current/manual/config/templates/linking)
49+
50+
### Done
51+
52+
53+

0 commit comments

Comments
 (0)