|
| 1 | +Check icinga-version |
| 2 | +==================== |
| 3 | + |
| 4 | +Overview |
| 5 | +-------- |
| 6 | + |
| 7 | +This plugin lets you track if Icinga is End-of-Life (EOL). To compare against the current/installed version of Icinga, the check has to run on the host running the Icinga2 daemon itself. |
| 8 | + |
| 9 | +This check plugin alerts n days before or after the EOL date is reached. Optionally, it can also alert on available major, minor or patch releases (each independently). |
| 10 | + |
| 11 | + |
| 12 | +Fact Sheet |
| 13 | +---------- |
| 14 | + |
| 15 | +.. csv-table:: |
| 16 | + :widths: 30, 70 |
| 17 | + |
| 18 | + "Check Plugin Download", "https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/icinga-version" |
| 19 | + "Check Interval Recommendation", "Once a day" |
| 20 | + "Can be called without parameters", "Yes" |
| 21 | + "Compiled for Windows", "No" |
| 22 | + "Uses SQLite DBs", "``$TEMP/linuxfabrik-lib-version.db``" |
| 23 | + |
| 24 | + |
| 25 | +Help |
| 26 | +---- |
| 27 | + |
| 28 | +.. code-block:: text |
| 29 | +
|
| 30 | + usage: icinga-version [-h] [-V] [--always-ok] [--check-major] [--check-minor] |
| 31 | + [--check-patch] [--insecure] [--no-proxy] |
| 32 | + [--offset-eol OFFSET_EOL] [--timeout TIMEOUT] |
| 33 | +
|
| 34 | + Tracks if Icinga is EOL. |
| 35 | +
|
| 36 | + options: |
| 37 | + -h, --help show this help message and exit |
| 38 | + -V, --version show program's version number and exit |
| 39 | + --always-ok Always returns OK. |
| 40 | + --check-major Alert me when there is a new major release available, |
| 41 | + even if the current version of my product is not EOL. |
| 42 | + Example: Notify when I run v26 (not yet EOL) and v27 |
| 43 | + is available. Default: False |
| 44 | + --check-minor Alert me when there is a new major.minor release |
| 45 | + available, even if the current version of my product |
| 46 | + is not EOL. Example: Notify when I run v26.2 (not yet |
| 47 | + EOL) and v26.3 is available. Default: False |
| 48 | + --check-patch Alert me when there is a new major.minor.patch release |
| 49 | + available, even if the current version of my product |
| 50 | + is not EOL. Example: Notify when I run v26.2.7 (not |
| 51 | + yet EOL) and v26.2.8 is available. Default: False |
| 52 | + --insecure This option explicitly allows to perform "insecure" |
| 53 | + SSL connections. Default: False |
| 54 | + --no-proxy Do not use a proxy. Default: False |
| 55 | + --offset-eol OFFSET_EOL |
| 56 | + Alert me n days before ("-30") or after an EOL date |
| 57 | + ("30" or "+30"). Default: -30 days |
| 58 | + --timeout TIMEOUT Network timeout in seconds. Default: 8 (seconds) |
| 59 | +
|
| 60 | +
|
| 61 | +Usage Examples |
| 62 | +-------------- |
| 63 | + |
| 64 | +.. code-block:: bash |
| 65 | +
|
| 66 | + ./icinga-version --offset-eol=-30 |
| 67 | +
|
| 68 | +Output: |
| 69 | + |
| 70 | +.. code-block:: text |
| 71 | +
|
| 72 | + Icinga v2.14.6 (EOL unknown) |
| 73 | +
|
| 74 | +
|
| 75 | +States |
| 76 | +------ |
| 77 | + |
| 78 | +* WARN if software is EOL |
| 79 | +* Optional: WARN when new major version is available |
| 80 | +* Optional: WARN when new minor version is available |
| 81 | +* Optional: WARN when new patch version is available |
| 82 | + |
| 83 | + |
| 84 | +Perfdata / Metrics |
| 85 | +------------------ |
| 86 | + |
| 87 | +.. csv-table:: |
| 88 | + :widths: 25, 15, 60 |
| 89 | + :header-rows: 1 |
| 90 | + |
| 91 | + Name, Type, Description |
| 92 | + icinga-version, Number, Installed Icinga version as float. "2.14.6" becomes "2.146". |
| 93 | + |
| 94 | + |
| 95 | +Credits, License |
| 96 | +---------------- |
| 97 | + |
| 98 | +* Authors: `Linuxfabrik GmbH, Zurich <https://www.linuxfabrik.ch>`_ |
| 99 | +* License: The Unlicense, see `LICENSE file <https://unlicense.org/>`_. |
0 commit comments