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 505 forks source link

Issue with check_yum in CloudLinux #389

Closed folax closed 2 years ago

folax commented 2 years ago

Hello. Can anybody help me? I got an error:

Nagios Plugin for Yum updates on RedHat/CentOS systems - Version 0.10.3
Author: Hari Sekhon

setting plugin timeout to 30 seconds
running command: /usr/bin/yum --security check-update
Returncode: '0'
Output: 'This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 0:40:26 ago on Mon 01 Aug 2022 04:26:16 AM EDT.

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`

My system is CloudLinux 8.6.

HariSekhon commented 2 years ago

Is that all the output from -vvv mode?

folax commented 2 years ago

Yes. that's all:


[05:06] [serv66] # ./check_software_updates -vvv
Nagios Plugin for Yum updates on RedHat/CentOS systems - Version 0.10.3
Author: Hari Sekhon

setting plugin timeout to 30 seconds
running command: /usr/bin/yum --security check-update
Returncode: '0'
Output: 'This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 0:08:48 ago on Mon 01 Aug 2022 05:45:40 AM EDT.
'
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
[05:54] [serv66] #
HariSekhon commented 2 years ago

Try using the latest version, you are on 0.10.3 but in this repo there is 0.12.3 which has had updates for your system.

folax commented 2 years ago

The same in the latest version:

[05:54] [serv66] # ./check_software_updates_new -vvv
Nagios Plugin for Yum updates on RedHat/CentOS systems - Version 0.12.3
Author: Hari Sekhon

setting plugin timeout to 30 seconds
running command: /usr/bin/yum --security check-update
Returncode: '0'
Output: 'This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 0:11:27 ago on Mon 01 Aug 2022 05:45:40 AM EDT.
'
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
[05:57] [serv66] #
folax commented 2 years ago

The OS system is: CloudLinux release 8.6

HariSekhon commented 2 years ago

Ok, please try version 0.12.5 that I've just pushed, this should solve your problem.

folax commented 2 years ago

Thank you so much. Now it works. I will test it on all systems.

[06:16] [serv66] # ./check_software_updates_new
YUM OK: 0 Security Updates Available. 0 Non-Security Updates Available | security_updates_available=0 non_security_updates_available=0 total_updates_available=0

[06:16] [serv66] # ./check_software_updates_new --no-warn-on-lock -C --warn-on-any-update -t 60
YUM OK: 0 Security Updates Available. 0 Non-Security Updates Available | security_updates_available=0 non_security_updates_available=0 total_updates_available=0
HariSekhon commented 2 years ago

Thanks for confirming, closing ticket.