From 946f94e5c27d2b066243ad80579228fad34e1b17 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 12 May 2014 18:38:59 +0200 Subject: support --force-recheck with single host arguments (no services) --- bin/icli | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin/icli') diff --git a/bin/icli b/bin/icli index b25aa79..641893f 100755 --- a/bin/icli +++ b/bin/icli @@ -883,6 +883,13 @@ sub recheck_service { say "Scheduled check of '$service' on '$host'"; } +sub force_recheck_host_all { + my ($host) = @_; + + dispatch_command( 'SCHEDULE_FORCED_HOST_SVC_CHECKS', $host, time() ); + say "Scheduled forced check of * on '$host'"; +} + sub force_recheck_service { my ( $host, $service ) = @_; @@ -904,6 +911,9 @@ sub action_on_host { if ($recheck) { recheck_host_all($h); } + elsif ($force_recheck) { + force_recheck_host_all($h); + } } sub action_on_service { -- cgit v1.2.3