portertech / chef-monitor

An OpsCode Chef cookbook for monitoring services, wrapping the Sensu cookbook.
http://community.opscode.com/cookbooks/monitor
84 stars 101 forks source link

Handle split redis/api/rabbit hosts, hosted redis. #25

Open jhmartin opened 10 years ago

jhmartin commented 10 years ago

The rabbit/redis/api servers may be on different hosts (and perhaps not even search()able in the case of AWS hosted redis). It would be useful if the search blocks could be separated and also overrideable by a static value.

rodriguezsergio commented 10 years ago

Use node.force_override in a wrapper cookbook to get around this issue. That's what I'm doing for my rabbitMQ cluster and it works fine. The force_override precedence is higher than override, so node.override["sensu"]["redis"]["host"] = master_address doesn't supersede your custom value.

portertech commented 10 years ago

This cookbook is an example wrapper cookbook for Sensu, most users must fork it in order to use it. I'm open to a pull-request that improves the user experience for this deployment method/configuration.