From: Peter Palfrader Date: Sun, 24 Feb 2013 16:18:24 +0000 (+0100) Subject: fix X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=a094e6053e02ebcfc70ff580fc6b1c769f7e9fff;p=mirror%2Fdsa-nagios.git fix --- diff --git a/config/build-nagios b/config/build-nagios index 53b441d..2729e75 100755 --- a/config/build-nagios +++ b/config/build-nagios @@ -178,7 +178,6 @@ def addService(hosts, service, files, servers) exclude_keys = %w(nrpe runfrom remotecheck depends - no-servicegroups hosts hostgroups excludehosts excludehostgroups) if servers[host]['no-servicegroups'] exclude_keys << 'servicegroups' @@ -335,7 +334,7 @@ config['servers'].keys.sort.each{ |name| set_if_unset server, 'use' , HOST_TEMPLATE_NAME set_if_unset server, 'check_command', HOST_ALIVE_CHECK unless server['pingable'] == false - print_block files['hosts'] , 'host' , server , %w(hostgroups pingable) + print_block files['hosts'] , 'host' , server , %w(hostgroups pingable no-servicegroups)