Comments (4)
Thanks for raising this, could you please paste the full output with -v -v -v
so that I can debug your exact situation and find out why it's not picking up the non-security updates any more.
It's likely that updates to cover newer releases has broken this recently as this has been known working for many years, or it's possible that the output format has changed.
from nagios-plugins.
Thanks for the quick response.
The following was done on Rocky 8.6
./check_yum -v -v -v
Nagios Plugin for Yum updates on RedHat/CentOS systems - Version 0.12.3
Author: Hari Sekhonsetting plugin timeout to 30 seconds
running command: /usr/bin/yum --security check-update
Returncode: '100'
Output: 'Last metadata expiration check: 0:25:01 ago on Tue 07 Jun 2022 02:05:57 PM CEST.c-ares.x86_64 1.13.0-6.el8 LCSB-BaseOS
grub2-common.noarch 1:2.02-123.el8 LCSB-BaseOS
grub2-efi-x64.x86_64 1:2.02-123.el8 LCSB-BaseOS
grub2-tools.x86_64 1:2.02-123.el8 LCSB-BaseOS
grub2-tools-extra.x86_64 1:2.02-123.el8 LCSB-BaseOS
grub2-tools-minimal.x86_64 1:2.02-123.el8 LCSB-BaseOS
kernel.x86_64 4.18.0-372.9.1.el8 LCSB-BaseOS
kernel-core.x86_64 4.18.0-372.9.1.el8 LCSB-BaseOS
kernel-modules.x86_64 4.18.0-372.9.1.el8 LCSB-BaseOS
kernel-tools.x86_64 4.18.0-372.9.1.el8 LCSB-BaseOS
kernel-tools-libs.x86_64 4.18.0-372.9.1.el8 LCSB-BaseOS
libsmbclient.x86_64 4.15.5-5.el8 LCSB-BaseOS
libssh.x86_64 0.9.6-3.el8 LCSB-BaseOS
libssh-config.noarch 0.9.6-3.el8 LCSB-BaseOS
libwbclient.x86_64 4.15.5-5.el8 LCSB-BaseOS
openssh.x86_64 8.0p1-13.el8 LCSB-BaseOS
openssh-clients.x86_64 8.0p1-13.el8 LCSB-BaseOS
openssh-server.x86_64 8.0p1-13.el8 LCSB-BaseOS
openssl.x86_64 1:1.1.1k-6.el8_5 LCSB-BaseOS
openssl-libs.x86_64 1:1.1.1k-6.el8_5 LCSB-BaseOS
polkit.x86_64 0.115-13.el8_5.2 LCSB-BaseOS
polkit-libs.x86_64 0.115-13.el8_5.2 LCSB-BaseOS
python3-perf.x86_64 4.18.0-372.9.1.el8 LCSB-BaseOS
samba-client.x86_64 4.15.5-5.el8 LCSB-BaseOS
samba-client-libs.x86_64 4.15.5-5.el8 LCSB-BaseOS
samba-common.noarch 4.15.5-5.el8 LCSB-BaseOS
samba-common-libs.x86_64 4.15.5-5.el8 LCSB-BaseOS
Obsoleting Packages
grub2-tools.x86_64 1:2.02-123.el8 LCSB-BaseOS
grub2-tools.x86_64 1:2.02-106.el8.0.2 @anaconda
grub2-tools-efi.x86_64 1:2.02-123.el8 LCSB-BaseOS
grub2-tools.x86_64 1:2.02-106.el8.0.2 @anaconda
grub2-tools-extra.x86_64 1:2.02-123.el8 LCSB-BaseOS
grub2-tools.x86_64 1:2.02-106.el8.0.2 @anaconda
grub2-tools-minimal.x86_64 1:2.02-123.el8 LCSB-BaseOS
grub2-tools.x86_64 1:2.02-106.el8.0.2 @anaconda
'
YUM CRITICAL: 28 Security Updates Available. 0 Non-Security Updates Available | security_updates_available=28 non_security_updates_available=0 total_updates_available=28
But there are many pending non-security updates.
dnf check-update
Last metadata expiration check: 0:00:19 ago on Tue 07 Jun 2022 02:33:16 PM CEST.ModemManager-glib.x86_64 1.18.2-1.el8 LCSB-BaseOS
NetworkManager.x86_64 1:1.36.0-4.el8 LCSB-BaseOS
NetworkManager-libnm.x86_64 1:1.36.0-4.el8 LCSB-BaseOS
NetworkManager-team.x86_64 1:1.36.0-4.el8 LCSB-BaseOS
NetworkManager-tui.x86_64 1:1.36.0-4.el8 LCSB-BaseOS
...
Cheers,
Karim
from nagios-plugins.
Ah, this is because DNF is not outputting a summary line with the non-security updates like yum used to do, even though DNF answers the same call.
If you run like the plugin is doing:
yum --security check-update
you'll see it's not outputting the non-security updates with the --security
switch and because it is no longer printing a summary line the plugin can't parse the number of unmentioned updates because the tool literally isn't returning them.
In this case we probably need to make a choice to perhaps not return any mention of non-security updates because that mode of the system command doesn't give us the info we need.
You can work around the issue by running this plugin twice in 2 different checks - once in default mode which will use yum --security
and once for --all updates
.
from nagios-plugins.
Thank you for the information @HariSekhon.
I'm currently running both checks as suggested.
from nagios-plugins.
Related Issues (20)
- chain of trust validity fails but the check passes HOT 2
- sni substitution does not work as expected HOT 10
- check_yum.py on Alma 8.4 HOT 3
- check_yum.py Yum output signature (1 unique lines) is larger than number of total updates on Centos 7 HOT 1
- Cannot find summary line in yum output HOT 7
- Cloudera Dataplatform supported ? HOT 1
- check_cassandra_netstats.pl examples for all options pls HOT 2
- Support prometheus-enabled zookeeper mntr metrics HOT 1
- Issue with check_yum in CloudLinux HOT 8
- Issue with check_yum in CloudLinux HOT 6
- jwhois / whois HOT 4
- check_cassandra_tpstats.pl not working on DSE 6.8.25 (compatible with Cassandra 3.11) HOT 1
- check_yum fails to run successful HOT 4
- Cloudera Manager plugins SSL connect attempt failed | --tls-noverify is ignored HOT 7
- Project dependencies may have API risk issues
- Check_yum.py not working on CentOS9 HOT 3
- Nagios Exchange handover HOT 3
- check_yum.py failing on Oracle Linux 8
- Check_yum fails after execute $yum update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nagios-plugins.