1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| [iyunv@Node ~]# grep -v ^# /etc/zabbix/zabbix_agentd.conf |grep -v ^$
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=192.168.31.150 //Proxy地址
ListenPort=10050
ServerActive=192.168.31.150 //Proxy地址
Hostname=192.168.31.160
Include=/etc/zabbix/zabbix_agentd.d/
UserParameter=Memory.total,/etc/zabbix/scripts/Memory_status.sh Memory_total
UserParameter=Memory.used,/etc/zabbix/scripts/Memory_status.sh Memory_used
UserParameter=Memory.free,/etc/zabbix/scripts/Memory_status.sh Memory_free
UserParameter=Swap.total,/etc/zabbix/scripts/Memory_status.sh Swap_total
UserParameter=Swap.used,/etc/zabbix/scripts/Memory_status.sh Swap_used
UserParameter=Swap.free,/etc/zabbix/scripts/Memory_status.sh Swap_free
UserParameter=Total.total,/etc/zabbix/scripts/Memory_status.sh Total_total
UserParameter=Total.used,/etc/zabbix/scripts/Memory_status.sh Total_used
UserParameter=Total.free,/etc/zabbix/scripts/Memory_status.sh Total_free
[iyunv@Node ~]#
|