GithubHelp home page GithubHelp logo

oliver / check_os_release Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 4.0 39 KB

Nagios plugin to check for outdated OS release

License: MIT License

Python 100.00%
nagios-plugin icinga-plugin debian ubuntu

check_os_release's People

Contributors

al2klimov avatar mortzu avatar oliver avatar trooner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

check_os_release's Issues

Any plans to support Debian LTS?

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!

Don't download CSVs from salsa.debian.org any more

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:

  • mirror https://salsa.debian.org/debian/distro-info-data repo to another place (eg. Github)
  • set that repo as default download location
  • allow specifying the "base directory" for these CSV files on command line, and accept local paths and URLs as parameter

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:

  • how to keep the Github mirror updated automatically?
  • should there be a shorter/easier command line parameter to switch to the local distro-info-data directory?

Reporting OSRELEASE CRITICAL even thouth EOL is hundreds of days into the future

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?

Send custom HTTP user agent to salsa.debian.org

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.

RHEL/CentOS/Fedora support.

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.

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.