[icinga-checkins] icinga.org: icinga2/master: Make "clr-check-command" template usable on *nix

git at icinga.org git at icinga.org
Thu Aug 18 11:14:12 CEST 2016


Module: icinga2
Branch: master
Commit: 487d2a99077f3a67c41d230feaf226a93df417a8
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=487d2a99077f3a67c41d230feaf226a93df417a8

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Aug 18 10:27:41 2016 +0200

Make "clr-check-command" template usable on *nix

fixes #12474

---

 lib/methods/methods-itl.conf |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/methods/methods-itl.conf b/lib/methods/methods-itl.conf
index fea8322..4e0c892 100644
--- a/lib/methods/methods-itl.conf
+++ b/lib/methods/methods-itl.conf
@@ -37,7 +37,11 @@ System.assert(Internal.run_with_activation_context(function() {
 	}
 
 	template CheckCommand "clr-check-command" use (_Internal) {
-		execute = _Internal.ClrCheck
+		if (_Internal.ClrCheck) {
+			execute = _Internal.ClrCheck
+		} else {
+			execute = _Internal.NullCheck
+		}
 	}
 
 	template NotificationCommand "plugin-notification-command" use (_Internal) {



More information about the icinga-checkins mailing list