Module: check_mk
Branch: master
Commit: 39e4b5979a141177b1c26b675888d930f18f1123
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=39e4b5979a1411…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Wed Feb 1 11:45:47 2017 +0100
4343 FIX apt: Fixed wrong state information of pending updates of normal and security
updates
If normal updates were pending for installation the service changes
to warn. Additional the security updates were also at least warn,
because the same state was used. Now the state is reset and will be
calculated only for security updates.
Change-Id: I90f86ddbf6077961b7a7300ba294c5e8242e2eee
---
.werks/4343 | 13 +++++++++++++
ChangeLog | 3 ++-
checks/apt | 1 +
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/4343 b/.werks/4343
new file mode 100644
index 0000000..d73ace5
--- /dev/null
+++ b/.werks/4343
@@ -0,0 +1,13 @@
+Title: apt: Fixed wrong state information of pending updates of normal and security
updates
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i4
+Date: 1485945687
+
+If normal updates were pending for installation the service changes
+to warn. Additional the security updates were also at least warn,
+because the same state was used. Now the state is reset and will be
+calculated only for security updates.
diff --git a/ChangeLog b/ChangeLog
index 8d73c60..2b6ffd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,7 +42,7 @@
* 4232 FIX: tsm_storagepools: Fixed missing perfdata
* 4259 FIX: aix_sap_processlist: fixed ValueError; if process has stopped and does
not report any start time
* 4261 FIX: db2_logsizes: fixed wrong discovery condition
- * 4262 FIX: wmi_cpuload: fixed missing section handling...
+ * 4262 FIX: wmi_cpuload: fixed missing section handling
* 4263 FIX: oracle_crs_res: fixed UnboundLocalError; 'crs_nodename'
referenced before assignment...
* 4264 FIX: wmic_process: fixed invalid info handling
* 4211 FIX: esx_vsphere_counters: No longer crash when counters are available for
instances without a read value
@@ -80,6 +80,7 @@
* 4016 FIX: Windows Agents: fixed broken custom windows performance counter
monitoring (winperf section)
* 4306 FIX: cisco_fru_power: fixed empty FRU current handling
* 4333 FIX: tsm_storage_pools: fixed incomplete data handling
+ * 4343 FIX: apt: Fixed wrong state information of pending updates of normal and
security updates...
Multisite:
* 4169 View action: Default values of sticky, notification and persistent options can
now be configured via global settings....
diff --git a/checks/apt b/checks/apt
index a931211..6c6d47c 100644
--- a/checks/apt
+++ b/checks/apt
@@ -83,6 +83,7 @@ def check_apt(_no_item, params, info):
state = params["normal"]
yield state, "%d normal updates" % len(updates), [
("normal_updates", len(updates)) ]
+ state = 0
if sec_updates:
state = params["security"]
text = " (%s)" % ", ".join(sec_updates)