portertech / chef-monitor

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

Allow to specify that you would like to use local_ipv4 instead of public_ipv4 #1

Closed jschneiderhan closed 11 years ago

jschneiderhan commented 11 years ago

Added a ["monitor"]["use_local_ipv4"] attribute which defaults to false. I have my AWS security group for my sensu server setup so that it only allows rabbitmq connections from particular security groups. When the public IP is used it seems to be filtering all traffic regardless of origin (which makes sense).

portertech commented 11 years ago

Ah, if you use public_hostname, it will resolve to the internal address from within the region. This is good.