diff options
author | varac <varacanero@zeromail.org> | 2014-02-27 22:43:23 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-02-27 22:43:23 +0100 |
commit | 0cd0076f945c0e02bfdc50ff483ceebceec131e2 (patch) | |
tree | 21c631e5bdee5e3019c7fbe4dfac1b04ef325599 /puppet/modules/site_check_mk/templates/use_ssh.mk | |
parent | e8cd9ab2d4480aa7c16d15f5db664fa650d4c655 (diff) | |
parent | 66cc1345c3af4e814d98c8e4b90d90158ac9d399 (diff) |
Merge branch 'one_monitornode_rules_them_all' into 0.6
Diffstat (limited to 'puppet/modules/site_check_mk/templates/use_ssh.mk')
-rw-r--r-- | puppet/modules/site_check_mk/templates/use_ssh.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/puppet/modules/site_check_mk/templates/use_ssh.mk b/puppet/modules/site_check_mk/templates/use_ssh.mk index 4c5523db..0bebebcf 100644 --- a/puppet/modules/site_check_mk/templates/use_ssh.mk +++ b/puppet/modules/site_check_mk/templates/use_ssh.mk @@ -1,5 +1,6 @@ # http://mathias-kettner.de/checkmk_datasource_programs.html datasource_programs = [ - ( "ssh -l root -i /etc/check_mk/.ssh/id_rsa -p <%= @ssh_port %> <HOST> check_mk_agent", ALL_HOSTS ), -] +<% nagios_hosts.sort.each do |name,config| %> + ( "ssh -l root -i /etc/check_mk/.ssh/id_rsa -p <%=config['ssh_port']%> <%=config['domain_internal']%> check_mk_agent", [ "<%=config['domain_internal']%>" ], ),<%- end -%> +] |