Module: check_mk
Branch: master
Commit: 641be4232fe4e11c838abb32cc7fcce94675b019
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=641be4232fe4e1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 25 13:41:42 2016 +0100
#2950 FIX citrix_controller.sessions: Fixed crash in case active/inactive infos are
missing
---
.werks/2950 | 9 +++++++++
ChangeLog | 1 +
checks/citrix_controller | 5 ++++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/2950 b/.werks/2950
new file mode 100644
index 0000000..18185c5
--- /dev/null
+++ b/.werks/2950
@@ -0,0 +1,9 @@
+Title: citrix_controller.sessions: Fixed crash in case active/inactive infos are missing
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453725685
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 0cae142..565e35c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -207,6 +207,7 @@
* 2912 FIX: mk_oracle mk_oracle.aix: Fixed handling of DBs which names end with
"_[NUMBER]"...
* 2948 FIX: oracle_tablespaces: Fixed exception when section contained empty line
* 2949 FIX: oracle_logswitches oracle_sessions oracle_version: Improved handling of
legacy oracle plugin error cases
+ * 2950 FIX: citrix_controller.sessions: Fixed crash in case active/inactive infos are
missing
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/citrix_controller b/checks/citrix_controller
index 9d79f6c..9f6ac01 100644
--- a/checks/citrix_controller
+++ b/checks/citrix_controller
@@ -129,7 +129,10 @@ def check_citrix_controller_sessions(_no_item, params, info):
if params == None:
params = {}
- session = {}
+ session = {
+ "active" : 0,
+ "inactive" : 0,
+ }
for line in info:
if line[0] == "TotalFarmActiveSessions":
session["active"] = int(line[1])