Create a recipe for zabbix configuration

Hi everyone,

I need your help in creating a recipe for managing a Zabbix configuration file.

The configuration file should remain same on all servers except the hostname parameter in the configuration file.

The configuration should contain the following parameter’s, but the hostname parameter should be the hostname of the machine where the agent is installed. Rest all parameter can be unique in all the servers.

Please advise.

Server=
ServerActive=
StartAgents=5
DebugLevel=3
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Timeout=3
Include=/etc/zabbix/zabbix_agentd.d
Hostname=

Have you looked at the community cookbooks for zabbix? I see several of them out there and probably help you solve this problem already, if not I would probably say a chef template seems like the way to go: https://docs.chef.io/resource_template.html

community cookbooks: https://supermarket.chef.io/cookbooks?q=zabbix

You got an answer on StackOverflow, please don’t cross-post questions unless they have been unanswered for a while.