Editing /etc/zabbix/zabbix agentd.conf
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | <code> | + | <code>zabbix agentd.conf</code> [[Zabbix agent]] configuration file for host (monitored machines) |
− | + | apt install zabbix-agent | |
− | + | ||
− | |||
− | |||
Configure [[Zabbix Server]] IP in <code>[[zabbix agentd.conf]]</code> file, in this example (192.168.0.18): | Configure [[Zabbix Server]] IP in <code>[[zabbix agentd.conf]]</code> file, in this example (192.168.0.18): | ||
− | [[sed]] -i s/ | + | [[sed]] -i s/ServerActive=127.0.0.1/ServerActive=192.168.0.18/ /etc/zabbix/zabbix_agentd.conf |
− | [[sed]] -i s/ | + | [[sed]] -i s/Server=127.0.0.1/Server=192.168.0.18/ /etc/zabbix/zabbix_agentd.conf |
− | + | Change <code>Hostname</code> value to your client hostname on <code>zabbix_agentd.conf</code> | |
− | Change <code> | + | [[systemctl restart]] zabbix-agent |
− | [[systemctl restart | ||
− | + | Make sure your firewall is properly configured. | |
− | Make | ||
[[Ubuntu 18.04 LTS]] default <code>zabbix_agentd.conf</code> configuration file from <code>[[zabbix-agent]]</code> package. | [[Ubuntu 18.04 LTS]] default <code>zabbix_agentd.conf</code> configuration file from <code>[[zabbix-agent]]</code> package. | ||
cat /etc/zabbix/zabbix_agentd.conf | grep -v "#" | grep . | cat /etc/zabbix/zabbix_agentd.conf | grep -v "#" | grep . | ||
PidFile=/var/run/zabbix/zabbix_agentd.pid | PidFile=/var/run/zabbix/zabbix_agentd.pid | ||
− | LogFile= | + | LogFile=/var/log/zabbix-agent/zabbix_agentd.log |
LogFileSize=0 | LogFileSize=0 | ||
Server=127.0.0.1 | Server=127.0.0.1 | ||
Line 440: | Line 436: | ||
</pre> | </pre> | ||
− | |||
− | |||
== See also == | == See also == | ||
* {{Zabbix}} | * {{Zabbix}} | ||
− | |||
− | |||
− |
Advertising: