Giter VIP home page Giter VIP logo

monitoring-plugins-zypper's People

Contributors

bugfinder avatar cboltz avatar lrupp avatar mnhauke avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

monitoring-plugins-zypper's Issues

Expired repository metadata always results in CRITICAL state

Sometimes zypper lu comes back with a warning that metadata of a repository expired:

# zypper ref
Repository 'Main Repository (NON-OSS)' is up to date.
Repository 'Update Repository (Non-Oss)' is up to date.
Repository 'Main Repository (OSS)' is up to date.
Repository 'Main Update Repository' is up to date.
Repository 'Update repository of openSUSE Backports' is up to date.
Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadata ........................................................................................................................................[done]
Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache .............................................................................................................................................[done]                                       
All repositories have been refreshed.

# zypper lu
Loading repository data...
Warning: Repository 'Main Update Repository' metadata expired since 2024-02-07 10:23:56 CET.

    Warning: Repository metadata expired: Check if 'autorefresh' is turned on (zypper lr), otherwise
    manually refresh the repository (zypper ref). If this does not solve the issue, it could be that
    you are using a broken mirror or the server has actually discontinued to support the repository.

Reading installed packages...
No updates found.

Apparently this should only be a warning as it can happen if there were no updates published in the last 30 days (or some other expiration period).

Expected behavior

At least with using '-o' option this should result in an OK or WARNING state.

Current behavior

Currently check_zypper always returns CRITICAL state:

/usr/lib/nagios/plugins/check_zypper -r -s -w security
Updates CRITICAL : Repository Main Update Repository metadata expired since 2024-02-07 10:23:56 CET.

/usr/lib/nagios/plugins/check_zypper -o -r -s -w security
Updates CRITICAL : Repository Main Update Repository metadata expired since 2024-02-07 10:23:56 CET.

Steps to reproduce

Reproducing this is a bit hit and miss as it depends on the state of enabled repositories.

check_zypper version

/usr/lib/nagios/plugins/check_zypper --version
check_zypper v1.98.10

Environment

OpenSuSE LEAP 15.5 (this has been observed on 15.4 as well)

Installed with zypper:

Name        : monitoring-plugins-zypper
Version     : 1.98.10
Release     : bp155.3.6.1
Architecture: noarch
Install Date: tor 06 feb 2024 07:57:40
Group       : System/Monitoring
Size        : 48874
License     : BSD-3-Clause
Signature   : RSA/SHA512, tor 11 jul 2023 09:21:05, Key ID 8a49eb0325db7ae0
Source RPM  : monitoring-plugins-zypper-1.98.10-bp155.3.6.1.src.rpm
Build Date  : tor 11 jul 2023 09:20:58
Build Host  : lamb76
Relocations : (not relocatable)
Packager    : http://bugs.opensuse.org
Vendor      : openSUSE
URL         : https://github.com/lrupp/monitoring-plugins-zypper
Summary     : Check for software updates via zypper

Logfile

Unfortunately as I was writing this, the repository updated and now I no longer get the same result - so log is probably irrelevant.

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.