Module: check_mk
Branch: master
Commit: 9b022aa7b9a79f4981f4ed0700bebbcc406d1b32
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9b022aa7b9a79f…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Jan 20 13:23:24 2016 +0100
#2891 FIX mcafee_av_client: fixed wrong params handling after WATO configuration
---
.werks/2891 | 10 ++++++++++
ChangeLog | 1 +
checks/mcafee_av_client | 5 ++++-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/2891 b/.werks/2891
new file mode 100644
index 0000000..d115a03
--- /dev/null
+++ b/.werks/2891
@@ -0,0 +1,10 @@
+Title: mcafee_av_client: fixed wrong params handling after WATO configuration
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1453292556
+
+
diff --git a/ChangeLog b/ChangeLog
index 173b09d..dfcfd73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -189,6 +189,7 @@
* 2899 FIX: ps: Finally improved performance impact of perfdata when having a lot of
processes...
* 2917 FIX: cisco_asa_failover: Will no longer discover on devices where failover is
disabled...
* 2927 FIX: Fix links to logwatch logfiles in case of several special characters in
the name...
+ * 2891 FIX: mcafee_av_client: fixed wrong params handling after WATO configuration
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/mcafee_av_client b/checks/mcafee_av_client
index 32b3bb9..56bc3bb 100644
--- a/checks/mcafee_av_client
+++ b/checks/mcafee_av_client
@@ -44,7 +44,10 @@ def check_mcafee_av_client(_no_item, params, info):
# the Check_MK server. This might be a problem, if e.g. the agent is located
# in China and the Check_MK server in USA.
age = now - time.mktime(time.strptime(info[0][0], '%Y/%m/%d'))
- warn, crit = params['signature_age']
+ if type(params) == dict:
+ warn, crit = params['signature_age']
+ else:
+ warn, crit = params
if age >= crit:
state = 2