zabbix02

zabbix monitoring template, you will have to get the host cpu, memory, network, disk and other information, the host will automatically associate newly added template

Custom Monitor

Note: For zabbix-agent end is defined, the server may not be modified

Monitoring grammar

UserParameter=<key>,<shell command>

Add Rule

cat >> /etc/zabbix/zabbix_agentd.d/get_hostname.conf<<EOF
UserParameter=get_hostname, echo $HOSTNAME
UserParameter=python_path, which python
EOF

Detection verification

#重启agent
systemctl restart zabbix-agent
zabbix_get -s s101 -p 10050 -k "get_hostname"
zabbix_get -s s101 -p 10050 -k "python_path"

Guess you like

Origin www.cnblogs.com/anyux/p/12008953.html