fixed zabbix install
This commit is contained in:
21
assets/zabbix/userparameter_nginx.conf
Normal file
21
assets/zabbix/userparameter_nginx.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
# in nginx config:
|
||||
# location /nginx_status {
|
||||
# # Turn on nginx stats
|
||||
# stub_status on;
|
||||
# # I do not need logs for stats
|
||||
# access_log off;
|
||||
# # Security: Only allow access from IP #
|
||||
# allow $1;
|
||||
# # Send rest of the world to /dev/null #
|
||||
# deny all;
|
||||
# }
|
||||
|
||||
UserParameter=nginx.accepted[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a accepted
|
||||
UserParameter=nginx.active[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a active
|
||||
UserParameter=nginx.handled[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a handled
|
||||
UserParameter=nginx.reading[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a reading
|
||||
UserParameter=nginx.total[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a requests
|
||||
UserParameter=nginx.waiting[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a waiting
|
||||
UserParameter=nginx.writing[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a writing
|
||||
|
||||
UserParameter=nginx.version,nginx -v 2>&1
|
||||
Reference in New Issue
Block a user