Module: check_mk
Branch: master
Commit: f61b36348bf7447ff7780201454009afc6be89c8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f61b36348bf744…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jun 3 16:55:19 2013 +0200
apache_status: fix exception if parameter is None
---
ChangeLog | 1 +
checks/apache_status | 3 +++
2 files changed, 4 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index c6f7623..d2d9db6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,7 @@
* windows_agent: Now available as 64 bit version
* agent_vsphere: fix problem where sensors were missing when
you queried multiple host systems via vCenter
+ * apache_status: fix exception if parameter is None
Notifications:
* Flexible Notification can now filter service levels
diff --git a/checks/apache_status b/checks/apache_status
index 991aebf..79f53b6 100644
--- a/checks/apache_status
+++ b/checks/apache_status
@@ -100,6 +100,9 @@ def inventory_apache_status(info):
return inv
def check_apache_status(item, params, info):
+ if params == None:
+ params = {}
+
all_data = apache_status_parse(info)
if item not in all_data:
return (3, 'Unable to find instance in agent output')