项目作者: hobbyquaker

项目描述 :
Nagios/Icinga Plugin for checking OS Release Schedule
高级语言: Shell
项目地址: git://github.com/hobbyquaker/check_os_release.git
创建时间: 2018-01-24T17:29:12Z
项目社区:https://github.com/hobbyquaker/check_os_release

开源协议:MIT License

下载


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

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

Nagios command and service definition example

  1. define command {
  2. command_name check_os_release
  3. command_line /usr/local/bin/check_os_release -w $ARG1$ -c $ARG2$ -l
  4. }
  5. define service {
  6. use generic-service
  7. host_name servername
  8. service_description OS Release
  9. check_command check_os_release!2!1
  10. }

License

MIT (c) 2018, 2019 Sebastian Raff