Code Monkey home page Code Monkey logo

check_os_release's Introduction

check_os_release

License

Nagios/Icinga Plugin for checking OS Release Schedule

Monitors /etc/os-release and warns you before the support for your distribution ends and you should consider upgrading soon. Currently only Debian, Raspbian and Ubuntu are supported, Pull Requests welcome!

Install

Place the file check_os_release somewhere (e.g. /usr/local/bin/) and make it executable.

Command Line Options

usage: check_os_release [ -w value ] [ -c value ] [ -l ]
    -w Warn if supports ends in less then given months      [default: 3]
    -c Critical if supports ends in less then given months  [default: 1]
    -l Use Debian LTS                                       [default: false]
    -h print this help screen
    -v show version

Nagios command and service definition example

define command {
        command_name check_os_release
        command_line /usr/local/bin/check_os_release -w $ARG1$ -c $ARG2$ -l
}

define service {
        use                     generic-service
        host_name               servername
        service_description     OS Release
        check_command           check_os_release!2!1
}

License

MIT (c) 2018, 2019 Sebastian Raff

check_os_release's People

Contributors

hobbyquaker avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gerbyte

check_os_release's Issues

date: invalid date ‘+check_os_release_critical month’

Following error I have on all Ubuntu 14.04 and 16.04 versions.

date: invalid date ‘+check_os_release_critical month’
/usr/lib/nagios/plugins/check_os_release: line 109: [: 2021-04-01: unary operator expected
OK: Support for ubuntu 16.04 ends at 2021-04-01

Issue with local of Debian version CSV files

The Debian repository has been updated and a restriction has been applied to restrict public access to the CSV files.

They do not want the .CSV files within the repo to be accessed for scraping purposes but have provided public interfaces for them. You can find the commit here: https://salsa.debian.org/debian/distro-info-data/-/commit/c5fe392b95dec80b383bffd9e1649ac6159bf794

The important details:

This data is available publicly at:

Please could you update these?

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.