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>/etc/zabbix/zabbix agentd.conf</code> [[Zabbix agent]] configuration file for host (monitored machines)
 
  
* Installation:  <code>[[apt install]] [[zabbix-agent]]</code>
 
  
  
== Configuration ==
 
Configure [[Zabbix Server]] IP in <code>[[zabbix agentd.conf]]</code> file, in this example (192.168.0.18):
 
 
[[sed]] -i s/'''ServerActive'''=127.0.0.1/ServerActive=192.168.0.18/ /etc/zabbix/zabbix_agentd.conf
 
[[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>
 
[[systemctl restart]] zabbix-agent && [[systemctl status]] zabbix-agent
 
 
 
Make also sure your [[firewall]] is properly configured.
 
 
[[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 .
 
PidFile=/var/run/zabbix/zabbix_agentd.pid
 
LogFile=[[/var/log/zabbix-agent/zabbix_agentd.log]]
 
LogFileSize=0
 
Server=127.0.0.1
 
ServerActive=127.0.0.1
 
[[Hostname]]=Zabbix server
 
Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf
 
 
[[Ubuntu 20.04 LTS]] default <code>zabbix_agentd.conf</code> configuration file from <code>[[zabbix-agent]]</code> package.
 
 
grep -v "#" /etc/zabbix/zabbix_agentd.conf  | [[grep .]]
 
PidFile=/run/zabbix/zabbix_agentd.pid
 
LogFile=/var/log/zabbix-agent/zabbix_agentd.log
 
LogFileSize=0
 
Server=127.0.0.1
 
ServerActive=127.0.0.1
 
Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf
 
  
  
 +
Ubuntu 20.04 default <code>zabbix_agentd.conf</code>
 
<pre>
 
<pre>
 
cat /etc/zabbix/zabbix_agentd.conf
 
cat /etc/zabbix/zabbix_agentd.conf
Line 439: Line 407:
 
# TLSPSKFile=
 
# TLSPSKFile=
 
</pre>
 
</pre>
 
== Related terms ==
 
* <code>[[/etc/zabbix/zabbix_server.conf]]</code>
 
 
== See also ==
 
* {{Zabbix}}
 
 
 
[[Category:Zabbix]]
 

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page:

Advertising: