Zabbix Share

Zabbix templates, modules & more
Log in
Choose social to login:
Login With Google
Login With Github

Nav view search

Navigation

Advanced Search
  • Applications
    • 1C
    • Anti-Virus
    • Backup
    • Bug and issue tracking
    • Cluster
    • Clustered File Systems
    • DNS
    • Excel Export
    • Firewall
    • HelpDesk System
    • High Availability (HA)
    • Java Application
    • Mail servers
    • Misc
    • Monitoring System
    • NFS
    • NTP
    • Others
    • Pi-Hole
    • Process Managers
    • Queue managers
    • Security
    • SIEM
    • Skype
    • Ticketing System
    • Time synchronization
    • TV Broadcasting
    • Web-servers
  • Cloud
  • Databases
  • Network Appliances
  • Network Devices
  • Official Templates
  • Operating Systems
  • Power (UPS)
  • Printers
  • SCADA, IoT, Energy, Home Automation, Industrial monitoring
  • Server Hardware
  • Storage Devices
  • Telephony
  • Unsorted
  • Virtualization
  • Zabbix
  • Recently Added
  • Recently Updated
  • Popular
  • Most Rated
  • Top Rated
  • Most Reviewed

PHP-FPM for Zabbix 3.2

php-fpm status for Zabbix 3.2 version.

 

install script


 

# Yum php-fpm

sed -i "s/;pm.status_path/pm.status_path/" /etc/php-fpm.d/www.conf

sed -i "s/;ping/ping/" /etc/php-fpm.d/www.conf

 

systemctl reload php-fpm

 

mkdir -p /srv/zabbix/libexec

wget https://raw.githubusercontent.com/oscm/zabbix/master/php-fpm/php-fpm.xml.sh -P /srv/zabbix/libexec

wget https://raw.githubusercontent.com/oscm/zabbix/master/php-fpm/userparameter_php-fpm.conf -P /etc/zabbix/zabbix_agentd.d/

wget https://raw.githubusercontent.com/oscm/zabbix/master/php-fpm/default.conf -P /etc/php-fpm/conf.d

 

chmod +x  /srv/zabbix/libexec/php-fpm.xml.sh

 

systemctl reload php-fpm

systemctl restart zabbix-agent

 


You can get the latest version:

https://github.com/oscm/zabbix/tree/master/php-fpm

 


 

if you can read Chinese to click the following url and.

http://www.netkiller.cn/monitoring/zabbix/zabbix-agent.html

18.4.6. PHP-FPM

18.4.6.1. 启用 php-fpm status 功能

这里假设你是采用 yum install php-fpm 方式安装的

				
sed -i "s/;pm.status_path/pm.status_path/" /etc/php-fpm.d/www.conf
sed -i "s/;ping/ping/" /etc/php-fpm.d/www.conf

systemctl reload php-fpm
				
				
18.4.6.2. 配置 nginx
				
server {
    listen       80;
    server_name  localhost;

    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

	location /stub_status {
        stub_status on;
        access_log   off;
        allow 127.0.0.1;
        deny all;
    }
    location ~ ^/(status|ping)$ {
        access_log off;
        allow 127.0.0.1;
        deny all;
        fastcgi_pass 127.0.0.1:9000;
		fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
        include fastcgi_params;
    }
}
				
				
				
Rating
501
1 vote

Listing Details

Type
Template
Min Zabbix version
3.2.x
Features
  • Zabbix Agent
Link
github.com/oscm/zabbix/tree/master/php-fpm
Created
2016-11-25
Modified
2016-11-25 03:42:48
Tags
netkiller, php-fpm
Author
netkiller
Owner
Neo Chan
RecommendReportOwner's listing
All resources created by third parties; use at your own risk
© 2001-2018 by Zabbix SIA. All rights reserved. Trademark Policy · Contact us