check-macos-updates

Crates.iocheck-macos-updates
lib.rscheck-macos-updates
version0.3.5
sourcesrc
created_at2023-05-05 12:47:19.58635
updated_at2024-09-02 07:18:18.311255
descriptionA monitoring plugin to check if macOS system updates are available.
homepage
repositoryhttps://github.com/johanthoren/check_macos_updates
max_upload_size
id857654
size46,119
Johan Thorén (johanthoren)

documentation

README

check_macos_updates

$ check_macos_updates -h
A monitoring plugin that checks for available MacOS updates.

Thresholds are defined using monitoring plugin range syntax. Examples:
+------------------+-------------------------------------------------+
| Range definition | Generate an alert if x...                       |
+------------------+-------------------------------------------------+
| 10               | < 0 or > 10, (outside the range of {0 .. 10})   |
+------------------+-------------------------------------------------+
| 10:              | < 10, (outside {10 .. ∞})                       |
+------------------+-------------------------------------------------+
| ~:10             | > 10, (outside the range of {-∞ .. 10})         |
+------------------+-------------------------------------------------+
| 10:20            | < 10 or > 20, (outside the range of {10 .. 20}) |
+------------------+-------------------------------------------------+
| @10:20           | ≥ 10 and ≤ 20, (inside the range of {10 .. 20}) |
+------------------+-------------------------------------------------+


Usage: check_macos_updates [OPTIONS]

Options:
  -f, --force-manual         Force manual check with `softwareupdate -l` (slow)
  -w, --warning <WARNING>    Warning limit for number of updates available [default: 0]
  -c, --critical <CRITICAL>  Critical limit for number of updates available
  -h, --help                 Print help
  -V, --version              Print version

Use together with NRPE or similar, preferably with Opsview.

Commit count: 19

cargo fmt