zabbix-agent 59.110.25.215/22
zabbix-server 59.110.26.9/22
此处的步骤都是在zabbix-agent上执行
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
[root@web01 zabbix_agentd.d]
/etc/zabbix/zabbix_agentd .d
[root@web01 zabbix_agentd.d]
-rw-r--r-- 1 root root 96 Jan 30 18:19 zabbix-linux-plugin.conf
-rwxr-xr-x 1 root root 2854 Aug 9 22:23 zabbix_linux_plugin.sh
[root@web01 zabbix_agentd.d]
UserParameter=linux_status[*], /etc/zabbix/zabbix_agentd .d /zabbix_linux_plugin .sh "$1" "$2" "$3"
[root@web01 zabbix_agentd.d]
安装nginx 修改配置文件 并启动nginx
[root@web01 ~]
[root@web01 ~]
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
重新启动nginx
|
此处的步骤都是在zabbix-server上执行,导入模板(如果是修改nginx的端口 直接替换模板内的端口就行)模板名称:zbx_nginx_templates.xml

等待出图

本文转自 小小三郎1 51CTO博客,原文链接:http://blog.51cto.com/wsxxsl/1894428,如需转载请自行联系原作者