#macos #update #check #monitoring #system #plugin #nagios

bin+lib check-macos-updates

A monitoring plugin to check if macOS system updates are available

10 releases

0.3.4 Jul 13, 2024
0.3.3 Jul 12, 2024
0.3.2 Mar 6, 2024
0.2.1 Jul 16, 2023
0.1.1 May 5, 2023

#31 in macOS and iOS APIs

Download history 40/week @ 2024-03-31 2/week @ 2024-06-30 191/week @ 2024-07-07 46/week @ 2024-07-14

239 downloads per month

ISC license

13KB
214 lines

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.

Dependencies

~7.5MB
~140K SLoC