Giter VIP home page Giter VIP logo

Comments (4)

powerflo23 avatar powerflo23 commented on June 11, 2024

I have the same problem on RHEL7.9 -> 3.10.0-1160.71.1.el7.x86_64

....

 --> sssd-common-pac-1.14.0-43.el7_3.11.x86_64 from rhel-7-server-rpms excluded (updateinfo)
No packages needed for security; 0 packages available
Security: kernel-3.10.0-1160.76.1.el7.x86_64 is an installed security update
Security: kernel-3.10.0-1160.71.1.el7.x86_64 is the currently running version
Uploading Enabled Repositories Report
Loaded plugins: priorities, product-id, subscription-manager
'
output lines not accounted for: ['Security: kernel-3.10.0-1160.76.1.el7.x86_64 is an installed security update', 'Security: kernel-3.10.0-1160.71.1.el7.x86_64 is the currently running version']
YUM WARNING: Yum output signature (1 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

The Problem ist only with no option or with option -W. No Problem with the option -A

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

setting plugin timeout to 30 seconds
running command: /usr/bin/yum check-update
Returncode: '0'
Output: 'Loaded plugins: changelog, enabled_repos_upload, package_upload, priorities,
              : product-id, search-disabled-repos, subscription-manager
825 packages excluded due to repository priority protections
Security: kernel-3.10.0-1160.76.1.el7.x86_64 is an installed security update
Security: kernel-3.10.0-1160.71.1.el7.x86_64 is the currently running version
Uploading Enabled Repositories Report
Loaded plugins: priorities, product-id, subscription-manager
'
YUM WARNING: Kernel security update is installed but requires a reboot

when i am set in line 429 the using_dnf = False to True, no problem.

No packages needed for security; 0 packages available
Security: kernel-3.10.0-1160.76.1.el7.x86_64 is an installed security update
Security: kernel-3.10.0-1160.71.1.el7.x86_64 is the currently running version
Uploading Enabled Repositories Report
Loaded plugins: priorities, product-id, subscription-manager
'
YUM CRITICAL: 1 Security Update Available. 0 Non-Security Updates Available | security_updates_available=1 non_security_updates_available=0 total_updates_available=1

On RHEL8 no problems
./new.py
YUM CRITICAL: Kernel security update is installed but requires a reboot
./new.py -W
YUM CRITICAL: Kernel security update is installed but requires a reboot
./new.py -A
YUM WARNING: Kernel security update is installed but requires a reboot

from nagios-plugins.

HariSekhon avatar HariSekhon commented on June 11, 2024

I've just pushed a fix, please git pull and try version 0.12.7.

from nagios-plugins.

jdfeathe avatar jdfeathe commented on June 11, 2024

I had to change DEFAULT_TIMEOUT from 30 to 60 on my server but this works now. Thank you!!

from nagios-plugins.

HariSekhon avatar HariSekhon commented on June 11, 2024

Thanks for confirming.

The -t / --timeout switch means you shouldn't need to edit the DEFAULT_TIMEOUT in the code, but it's up to you.

from nagios-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.