Skip to content

Check mydumper-version

Overview

Checks if a newer version of mydumper is available by comparing the installed version against the latest release on the GitHub releases API. Alerts when the installed version is outdated.

Important Notes:

  • Requires mydumper to be installed and available in the system PATH

Data Collection:

  • Runs mydumper --version locally to determine the installed version
  • Queries the GitHub releases API for the latest version of mydumper/mydumper
  • Caches the latest version information locally to reduce API calls (default: 24 hours)

Fact Sheet

Fact Value
Check Plugin Download https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/mydumper-version
Nagios/Icinga Check Name check_mydumper_version
Check Interval Recommendation Every day
Can be called without parameters Yes
Runs on Cross-platform
Compiled for Windows No (runs with Python interpreter)
Uses State File $TEMP/linuxfabrik-monitoring-plugins-cache.db

Help

usage: mydumper-version [-h] [-V] [--always-ok] [--cache-expire CACHE_EXPIRE]
                        [--no-perfdata] [--path PATH] [--timeout TIMEOUT]

Checks if a newer version of mydumper is available by comparing the installed
version against the latest release on the GitHub releases API. Alerts when the
installed version is outdated.

options:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  --always-ok           Always returns OK.
  --cache-expire CACHE_EXPIRE
                        The amount of time after which the cached latest
                        release expires, in hours. Default: 24
  --no-perfdata         Suppress the performance data section from the output.
                        The status message and the exit code are unaffected,
                        so alerting keeps working while trending data is
                        dropped.
  --path PATH           Path to the mydumper binary. Resolved via $PATH when
                        given without a directory. Default: mydumper
  --timeout TIMEOUT     Network timeout in seconds. Default: 8 (seconds)

Documentation:
https://linuxfabrik.github.io/monitoring-plugins/check-plugins/mydumper-version/

Usage Examples

./mydumper-version --cache-expire=8 --always-ok

Output:

mydumper/myloader v0.10.5 is up to date

States

  • OK if the installed version is up to date.
  • WARN if a newer version is available.
  • WARN if mydumper --version does not answer within --timeout.
  • UNKNOWN if mydumper is not found at --path, or if the latest release cannot be fetched from GitHub.
  • --always-ok suppresses all alerts and always returns OK.

Perfdata / Metrics

Name Type Description
mydumper-version Number Installed mydumper version as float. For example, "0.10.5" becomes "0.010005".

Credits, License