I installed this on a number of machines and all are working well with the exception of five RHEL 8 machines (all the others are CentOS 9).
The output is as follows:
$ /usr/local/ncpa/plugins/check_yum.py --cache-only -vvv
Nagios Plugin for Yum updates on RedHat/CentOS systems - Version 0.12.7
Author: Hari Sekhon
setting plugin timeout to 30 seconds
running command: /usr/bin/yum --security check-update -C
Returncode: '0'
Output: 'Not root, Subscription Management repositories not updated
Last metadata expiration check: 0:12:54 ago on Fri 15 Mar 2024 12:04:07 PM PDT.
'
YUM WARNING: Cannot find summary line in yum output. Please make sure you have upgraded to the latest version from https://github.com/HariSekhon/Nagios-Plugins. If the problem persists, please raise a ticket at https://github.com/HariSekhon/Nagios-Plugins/issues with the full -vvv output
I'm wondering if the "Not root, Subscription Management repositories not updated" line is throwing things off perhaps? Works fine on all of the CentOS machines.
I installed this on a number of machines and all are working well with the exception of five RHEL 8 machines (all the others are CentOS 9).
The output is as follows: $ /usr/local/ncpa/plugins/check_yum.py --cache-only -vvv Nagios Plugin for Yum updates on RedHat/CentOS systems - Version 0.12.7 Author: Hari Sekhon
setting plugin timeout to 30 seconds running command: /usr/bin/yum --security check-update -C Returncode: '0' Output: 'Not root, Subscription Management repositories not updated Last metadata expiration check: 0:12:54 ago on Fri 15 Mar 2024 12:04:07 PM PDT. ' YUM WARNING: Cannot find summary line in yum output. Please make sure you have upgraded to the latest version from https://github.com/HariSekhon/Nagios-Plugins. If the problem persists, please raise a ticket at https://github.com/HariSekhon/Nagios-Plugins/issues with the full -vvv output
I'm wondering if the "Not root, Subscription Management repositories not updated" line is throwing things off perhaps? Works fine on all of the CentOS machines.
Thanks, Tim