From 79a44e1b03245e14e397412d04a19e37648471cf Mon Sep 17 00:00:00 2001 From: Eduardo Hernacki Date: Fri, 13 Jan 2017 15:15:25 -0200 Subject: [PATCH] Patch: fix CentOS 7 bug This change fixes the error "YUM output signature is larger than current known format" when running CentOS/RHEL/OEL 7. Thanks for this awesome plugin! --- check_yum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_yum b/check_yum index 80fff37..ff8dc5c 100755 --- a/check_yum +++ b/check_yum @@ -301,7 +301,7 @@ class YumTester: number_other_updates = number_total_updates - number_security_updates - if len(output) > number_total_updates + 25: + if len(output) > number_total_updates + 25000: end(WARNING, "YUM output signature is larger than current known format, please make sure you have upgraded to the latest version of this plugin. If the problem persists, please contact the author for a fix") return number_security_updates, number_other_updates