saltstack-formulas / zabbix-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
50 stars 120 forks source link

[FEATURE] Zabbix Agent 2 support #154

Open lmf-mx opened 3 years ago

lmf-mx commented 3 years ago

Zabbix Agent 2 should be supported by the formula. Zabbix Agent 2 has been around for a couple years now and despite some docs needing updates on the official wiki, it works perfectly fine in production.

Most of the values needed to deploy using this formula can simply be overridden by pillars. The key component missing is a fully fleshed out files/default/etc/zabbix/zabbix_agent2.conf.jinja file. There are some sections around the plugins that are beyond me on how to template with the ability to have sessions. See https://www.zabbix.com/documentation/current/manual/config/items/plugins#named_sessions

rosscdh commented 2 years ago

agent2 does not support osx afaik?

ghormoon commented 2 years ago

for basic usage, it works with pillar changes, my pillar for zabbix-agent role looks like this:

zabbix:
  lookup:
    agent:
      pkgs:
        - zabbix-agent2
      service: zabbix-agent2
      config: /etc/zabbix/zabbix_agent2.conf
      pidfile: /run/zabbix/zabbix_agent2.pid
      logfile: /var/log/zabbix/zabbix_agent2.log
      includes:
        - /etc/zabbix/zabbix_agent2.d/*.conf

i guess you can add the missing features through "extra_conf" variable if you want to use something that is agent2 specific