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:
parent
9289a05e0b
commit
2516fe7189
@ -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"
|
||||
|
Reference in New Issue
Block a user