@@ -148,24 +148,38 @@ yum install grep gawk lsof jq fcgi
148
148
```
149
149
150
150
#### 1.2. Install Zabbix PHP-FPM template
151
- Download the latest version of the template:
151
+ First, please, download the template archive: you can use either the [ latest published release] ( https://github.com/rvalitov/zabbix-php-fpm/releases/latest ) (the latest stable version, I hope :sweat_smile : ) or use the active development version (that contains all the latest features and updates).
152
+ Below we will download the archive to a temporary directory ` /tmp ` that usually presents in all OS.
153
+ If you don't have such directory, please, create it first.
154
+
155
+ ##### 1.2.1. To use stable release
156
+ To download a stable release, run command:
152
157
153
158
``` console
154
- wget https://github.com/rvalitov/zabbix-php-fpm/archive/master.zip -O /tmp/zabbix-php-fpm.zip
155
- ```
159
+ curl -L $(curl -s https://api.github.com/repos/rvalitov/zabbix-php-fpm/releases/latest | grep 'zipball_' | cut -d\" -f4) --output /tmp/zabbix-php-fpm.zip
160
+ ```
161
+
162
+ ##### 1.2.2. To use development version
156
163
157
- Unzip the archive:
164
+ To download a developement version, run command:
165
+
166
+ ``` console
167
+ wget https://github.com/rvalitov/zabbix-php-fpm/archive/master.zip -O /tmp/zabbix-php-fpm.zip
168
+ ```
169
+ ##### 1.2.3. Unzip and configure
170
+
171
+ Unzip the downloaded archive:
158
172
159
173
``` console
160
- unzip /tmp/zabbix-php-fpm.zip -d /tmp
174
+ unzip -j /tmp/zabbix-php-fpm.zip "*/zabbix/*" "*/ispconfig/*" -d /tmp/zabbix-php-fpm
161
175
```
162
176
163
177
Copy the required files to the Zabbix agent configuration directory:
164
178
165
179
``` console
166
- cp /tmp/zabbix-php-fpm-master/zabbix /userparameter_php_fpm.conf /etc/zabbix/zabbix_agentd.d/
167
- cp /tmp/zabbix-php-fpm-master/zabbix /zabbix_php_fpm_discovery.sh /etc/zabbix/
168
- cp /tmp/zabbix-php-fpm-master/zabbix /zabbix_php_fpm_status.sh /etc/zabbix/
180
+ cp /tmp/zabbix-php-fpm/userparameter_php_fpm.conf /etc/zabbix/zabbix_agentd.d/
181
+ cp /tmp/zabbix-php-fpm/zabbix_php_fpm_discovery.sh /etc/zabbix/
182
+ cp /tmp/zabbix-php-fpm/zabbix_php_fpm_status.sh /etc/zabbix/
169
183
```
170
184
171
185
Configure access rights:
@@ -331,7 +345,7 @@ Please, use one of the methods below to adjust the settings of ISPConfig.
331
345
Apply the patch using the following command:
332
346
333
347
``` console
334
- patch /usr/local/ispconfig/server/conf/php_fpm_pool.conf.master --input=/tmp/zabbix-php-fpm-master/ispconfig /ispconfig.patch --output=/usr/local/ispconfig/server/conf-custom/php_fpm_pool.conf.master --reject-file=-
348
+ patch /usr/local/ispconfig/server/conf/php_fpm_pool.conf.master --input=/tmp/zabbix-php-fpm/ispconfig.patch --output=/usr/local/ispconfig/server/conf-custom/php_fpm_pool.conf.master --reject-file=-
335
349
```
336
350
337
351
##### 1.5.2. Method #2 . Manually adjust the template
@@ -399,7 +413,7 @@ Delete temporary files:
399
413
400
414
``` console
401
415
rm /tmp/zabbix-php-fpm.zip
402
- rm -rf /tmp/zabbix-php-fpm-master /
416
+ rm -rf /tmp/zabbix-php-fpm/
403
417
```
404
418
405
419
### 2. On Zabbix Server
0 commit comments