Module: check_mk
Branch: master
Commit: d4111528f0692f5ce8eab21550414de74d053554
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d4111528f0692f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 2 12:09:01 2012 +0100
Make ping_levels apply to PING services
---
ChangeLog | 2 ++
modules/check_mk.py | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f586e33..d0a8bc8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -220,6 +220,8 @@
* New configuration variable ping_levels for configuring parameters
for the host checks.
* cmk --notify: new macros $MONITORING_HOST$, $OMD_ROOT$ and $OMD_SITE$
+ * make ping_levels also apply to PING services for ping-only hosts
+ (thanks to Bernhard Schmidt)
Checks & Agents:
* if/if64: new ruleset if_disable_if64_hosts, that force if on
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 5708d28..6eb24b2 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1770,10 +1770,11 @@ define service {
outfile.write("""
define service {
use\t\t\t\t%s
+ check_command\t\t\tcheck-mk-ping!%s
%s host_name\t\t\t%s
}
-""" % (pingonly_template, extra_service_conf_of(hostname,
"PING"), hostname))
+""" % (pingonly_template, check_icmp_arguments(hostname),
extra_service_conf_of(hostname, "PING"), hostname))
def create_nagios_config_hostgroups(outfile):