fixed zabbix install
This commit is contained in:
parent
3153ec19c1
commit
a278a28042
@ -80,7 +80,7 @@ server {
|
|||||||
stub_status on;
|
stub_status on;
|
||||||
access_log off;
|
access_log off;
|
||||||
allow 127.0.0.1;
|
allow 127.0.0.1;
|
||||||
allow ZABBIX-SERVER-IP;
|
# allow ZABBIX-SERVER-IP;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ cp "$_assets"/zabbix/userparameter_mysql.conf "$_agent_conf_d"/
|
|||||||
# NGINX
|
# NGINX
|
||||||
# https://github.com/sfuerte/zbx-nginx
|
# https://github.com/sfuerte/zbx-nginx
|
||||||
# nginxconf already included in default.nginxconf asset
|
# nginxconf already included in default.nginxconf asset
|
||||||
sed -i "s#ZABBIX-SERVER-IP#$_ip#g" /etc/nginx/sites-available/default
|
sed -i "s/# allow ZABBIX-SERVER-IP/allow $_ip/g" /etc/nginx/sites-available/default
|
||||||
cp "$_assets"/zabbix/userparameter_nginx.conf "$_agent_conf_d"/
|
cp "$_assets"/zabbix/userparameter_nginx.conf "$_agent_conf_d"/
|
||||||
mkdir /etc/zabbix/zabbix_agentd.scripts
|
mkdir /etc/zabbix/zabbix_agentd.scripts
|
||||||
cp "$_assets"/zabbix/nginx-stat.py /etc/zabbix/zabbix_agentd.scripts/
|
cp "$_assets"/zabbix/nginx-stat.py /etc/zabbix/zabbix_agentd.scripts/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user