diff options
author | varac <varacanero@zeromail.org> | 2014-12-09 09:57:44 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-12-09 09:57:44 +0100 |
commit | e517ef53f15d24f22c31ff44eaa37601e4d5ec14 (patch) | |
tree | 13b7fd19f163709a14bf873e4a2615c15031c026 /provider_base/services | |
parent | 51a49227f83a615f9845461385beba5ef607967d (diff) |
add 'local' contactgroup to local environmet monitoring node
Change-Id: I1618a8c7f2f7c905b354dbe363fc91b690725479
Diffstat (limited to 'provider_base/services')
-rw-r--r-- | provider_base/services/monitor.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/provider_base/services/monitor.json b/provider_base/services/monitor.json index a68ee8d8..ff3a27a3 100644 --- a/provider_base/services/monitor.json +++ b/provider_base/services/monitor.json @@ -2,7 +2,7 @@ "nagios": { "nagiosadmin_pw": "= secret :nagios_admin_password", "domains_internal": "= global.tags.field('domain.internal_suffix').compact.uniq", - "environments": "= Hash[ global.environment_names.select{|e|e!='local'}.map{|e| [e||'default',{'contact_emails'=>global.env(e).provider.contacts.default}]} ]", + "environments": "= Hash[ nagios.hosts.values.map{|h|h['environment']}.uniq.map{|e| [e||'default',{'contact_emails'=>global.env(e).provider.contacts.default}]} ]", "hosts": "= (self.environment == 'local' ? nodes_like_me : nodes[:environment => '!local']).pick_fields('environment', 'domain.internal', 'domain.full_suffix', 'ip_address', 'services', 'openvpn.gateway_address', 'ssh.port')" }, "hosts": "= self.environment == 'local' ? hosts_file(nodes_like_me) : hosts_file(nodes[:environment => '!local'])", |