laradji / zabbix

Zabbix chef cookbook
Apache License 2.0
91 stars 124 forks source link

Permit usage of syslog for zabbix_server #93

Closed guilhem closed 11 years ago

guilhem commented 11 years ago

Don't change behaviour for anyone, default to Logfile But set "nil" or "false" to node["zabbix"]["server"]["log_file"] disable it and use syslog instead

laradji commented 11 years ago

It's missing the log_dir attribute default value no ?

guilhem commented 11 years ago

humm... no I set it to: ::File.join(node['zabbix']['log_dir'], "zabbix_server.log")

laradji commented 11 years ago

Guilhem, Attribute node['zabbix']['log_dir'] don't seem to exist and you use it to define attr log_file , this bug seem to exist before your patch.

guilhem commented 11 years ago

log_dir is set here: https://github.com/laradji/zabbix/blob/master/attributes/default.rb

it's for this reason that I include attribute "default" before using it

laradji commented 11 years ago

Okay, i see it ! :)