Delete post.
# make sure /var/run/zabbix exists and is owned & writeable by the zabbix # user PidFile=/var/run/zabbix/zabbix_agentd.pid # ditto for /var/log/zabbix LogFile=/var/log/zabbix/zabbix_agentd.log # YOU MUST SET THIS. The default setting (127.0.0.1) means # zabbix_agentd will only accept connections from localhost. Server=your_zabbix_server_here # if you're not using "active" monitoring (where Zabbix's definition of active # means the client sends unsolicited data to the server), then you should # comment out the "ServerActive" setting. # otherwise, it should be set to the same thing that Server is set to. ServerActive= # # if Hostname is uncommented, I recommend you COMMENT IT OUT. It's # a poor default setting to set it via the config file on Linux. Read the # comments for Hostname and HostnameItem for more info.
sudo -u zabbix /usr/local/sbin/zabbix_get \
-s your_client_name_here -p 10050 \
-k 'system.cpu.load[percpu,avg1]'
Comment