HariSekhon / Nagios-Plugins

450+ AWS, Hadoop, Cloud, Kafka, Docker, Elasticsearch, RabbitMQ, Redis, HBase, Solr, Cassandra, ZooKeeper, HDFS, Yarn, Hive, Presto, Drill, Impala, Consul, Spark, Jenkins, Travis CI, Git, MySQL, Linux, DNS, Whois, SSL Certs, Yum Security Updates, Kubernetes, Cloudera etc...
https://www.linkedin.com/in/HariSekhon
Other
1.13k stars 502 forks source link

Issue with check_yum in CloudLinux #390

Closed folax closed 1 year ago

folax commented 1 year ago

Hello. I got another error with check_yum in CloudLinux. Can anybody help me to solve the problem.

[server77] # ./check_software_updates --no-warn-on-lock -C --warn-on-any-update -t 60 -vvv
Nagios Plugin for Yum updates on RedHat/CentOS systems - Version 0.12.5
Author: Hari Sekhon

setting plugin timeout to 60 seconds
running command: /usr/bin/yum --security check-update -C
Returncode: '100'
Output: 'This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 0:21:48 ago on Mon 08 Aug 2022 03:14:33 AM EDT.

qemu-guest-agent.x86_64   15:6.2.0-11.module_el8.6.0+3071+a07c0ea5.2   appstream
vim-common.x86_64         2:8.0.1763-19.el8_6.4                        appstream
vim-enhanced.x86_64       2:8.0.1763-19.el8_6.4                        appstream
vim-filesystem.noarch     2:8.0.1763-19.el8_6.4                        appstream
vim-minimal.x86_64        2:8.0.1763-19.el8_6.4                        baseos   
'
output lines not accounted for: ['qemu-guest-agent.x86_64   15:6.2.0-11.module_el8.6.0+3071+a07c0ea5.2   appstream', 'vim-common.x86_64         2:8.0.1763-19.el8_6.4                        appstream', 'vim-enhanced.x86_64       2:8.0.1763-19.el8_6.4                        appstream', 'vim-filesystem.noarch     2:8.0.1763-19.el8_6.4                        appstream', 'vim-minimal.x86_64        2:8.0.1763-19.el8_6.4                        baseos   ']
YUM WARNING: Yum output signature (5 unique lines) is larger than number of total updates (0). 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
folax commented 1 year ago

[server77] # lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CloudLinux Description: CloudLinux release 8.6 (Leonid Kadenyuk) Release: 8.6 Codename: LeonidKadenyuk

folax commented 1 year ago

UPDATE the issue

HariSekhon commented 1 year ago

I've just pushed a fix, please pull to try version 0.12.6 and let me know if this solves it for you.

folax commented 1 year ago

Thank you Hari. I will test the check on different systems and will write the summary later (1 day testing)

folax commented 1 year ago

The check was tested successfully on systems.

Centos8
Centos6
AlmaLinux 8.6
Centos8(docker container)
CloudLinux release 8.6

Now you can close the issue. Thank you soo much.

HariSekhon commented 1 year ago

Thanks for confirming, closing.