oliver / check_os_release Goto Github PK
View Code? Open in Web Editor NEWNagios plugin to check for outdated OS release
License: MIT License
Nagios plugin to check for outdated OS release
License: MIT License
When requesting distro-info-data via HTTP, a custom user agent string should be sent, so that the server admin can detect which traffic is caused by this plugin. The user agent string should contain "check_os_release" so that this plugin can be found by googling.
Hi,
Found I needed this, alongside debian/ubuntu support. This plugin seemed the best of the lot, so grabbed it for the Debian side, which works lovely. Other stuff still needed doing, so I now think I have some code that works for the RedHat derived stuff (with a lot of thanks to wikipedia for the aggregated data). RH do not seem to publish in a meaningful form anything like the distro-info package for Debian/Ubuntu that I could find, so had to create CSV's for it. It sucks, but should work for now.
Tried to open a PR but permission denied, hence raising issue.
Where to go with this now?
K.
PS. Only tested against CentOS thus far, and a bit lightly at that, but I think the code lines up for other distros. People can feel free to offer improvements though.
I am looking for a icinga plugin to check the eol state of Oracle Linux OS.
Any ideas to get this running?
Hey there, thanks for the great plugin.
Are there any plans to support Debian LTS, too? Or maybe support some kind of an import flag for own csv-files with the missing data?
Thanks!
The two CSV files at https://salsa.debian.org/debian/distro-info-data cannot be downloaded any more, with HTTP error 403 "Forbidden, restricted to authenticated users". I don't know if that's a temporary measure or if the admins want to permanently prevent automatic downloading from scripts like these (see also hobbyquaker/check_os_release#2 (comment)). I didn't find any mention of this block at eg. https://salsa.debian.org/salsa/support/-/issues. But it would be good to find a solution that does not involve periodic accesses to salsa.debian.org from each user.
Possible solution:
This way the script still works out of the box without requiring any packages to be installed or kept up-to-date; but if people want to avoid a runtime dependency on Github (or on any internet service), they can specify the path to their local distro-info-data directory.
Open Points:
Using this on Ubuntu 22.04 LTS for a while now, multiple instances, but since a newer LTS has been released, it reports "OSRELEASE CRITICAL", even though it states that the current "release 'jammy' will be EOL in 1087 days".
It makes no difference whether I add "--eolCriticalDays 90" or whatever value, it keeps reporting CRITICAL. Which is far from the truth.
My Python-fu is way too rusty to pinpoint the cause. Anyone care to look into this?
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.