Module: check_mk
Branch: master
Commit: 030602626927ea3e278a9e1c5dad732a4ff3a120
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=030602626927ea…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu May 7 10:17:40 2015 +0200
apt: Minor fix in case of no avail. updates
---
checks/apt | 1 +
1 file changed, 1 insertion(+)
diff --git a/checks/apt b/checks/apt
index f452e1b..3dc2da7 100644
--- a/checks/apt
+++ b/checks/apt
@@ -58,6 +58,7 @@ def check_apt(_no_item, params, info):
else:
updates.append(packet)
+ state = 0
if updates:
state = params["normal"]
yield state, "%d normal updates" % len(updates), [
("normal_updates", len(updates)) ]