Archived
1
0

Change CRITICAL statuses to WARNING (as missing updates are not CRITICAL

as long as the machine is still running). Also only go to WARNING state
when at least 30 security updates are missing. (Otherwise it goes to
warning every 2 days.)
This commit is contained in:
Markus Birth 2016-12-13 16:17:15 +01:00
parent 9289a05e0b
commit 2516fe7189

View File

@ -328,7 +328,7 @@ class YumTester:
if self.no_warn_on_updates:
status = OK
else:
status = CRITICAL
status = WARNING
if number_updates == 1:
message = "1 Update Available"
else:
@ -351,7 +351,9 @@ class YumTester:
if self.no_warn_on_updates:
status = OK
else:
status = CRITICAL
status = OK
if number_security_updates >= 30:
status = WARNING
if number_security_updates == 1:
message = "1 Security Update Available"
elif number_security_updates > 1:
@ -362,7 +364,7 @@ class YumTester:
if self.no_warn_on_updates:
status = OK
else:
status = WARNING
status = OK
if number_other_updates == 1:
message += ". 1 Non-Security Update Available"