lrupp / monitoring-plugins-zypper Goto Github PK
View Code? Open in Web Editor NEWCheck for software updates via zypper
License: BSD 2-Clause "Simplified" License
Check for software updates via zypper
License: BSD 2-Clause "Simplified" License
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).
At least with using '-o' option this should result in an OK or WARNING state.
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.
Reproducing this is a bit hit and miss as it depends on the state of enabled repositories.
/usr/lib/nagios/plugins/check_zypper --version
check_zypper v1.98.10
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
Unfortunately as I was writing this, the repository updated and now I no longer get the same result - so log is probably irrelevant.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.