OneOaaS / graphtrees

此项目当前不再更新,只适用于3.0和3.2版本
105 stars 53 forks source link

Only garbage was found in the patch input. #17

Closed bcsdias closed 7 years ago

bcsdias commented 7 years ago
zabbix@debian:/usr/share/zabbix$ sudo patch -Np0 <graphtree3.2.x.patch
patch: **** Only garbage was found in the patch input.

why?

Debian 8 Zabbix 3.2.4 clean/new installation

zhausong commented 7 years ago

Hi @bcsdias try it

wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/3.2.X/zabbix-3.2.X.tar.gz
tar xf zabbix-3.2.4.tar.gz
cd frontends/php
wget https://raw.githubusercontent.com/OneOaaS/graphtrees/master/graphtree3.2.x.patch
#yum install -y patch
patch  -Np0 <graphtree3.2.x.patch
chown -R ${WEB_USER} oneoaas/
cd ../
mv php /usr/share/zabbix (Web root should be /usr/share/zabbix)
if use apache,chown -R apache:apache oneoaas/

if you use deb install, some php file path is diffrent