/usr/share/check_mk/checks-man/timemachine is in check-mk-server 1.2.8p16-1ubuntu0.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | title: Age of latest backup by timemachine
agents: macosx
catalog: os/services
license: GPL
distribution: check_mk
description:
Checks the age of latest backup by timemachine.
Therefor on the agent the command {tmutil latestbackup} is executed.
Returns {WARN} or {CRIT} if the latest backup is older than given ages.
Returns {CRIT} if the tmutil command returns an error.
examples:
# set default levels to 21600 sec (6h) for WARN and 43200 sec (12h) for CRIT
timemachine_default_levels = { "age": ( 86400, 172800 ) }
# Check timemachine backups on a box called MyMAC with default levels
checks += [
("MyMAC", "timemachine", None, timemachine_default_levels),
]
# or use individual levels for warn and crit
checks += [
("MyMAC", "timemachine", None, {'age': (10000, 20000)}),
]
inventory:
Finds exactly one service on every MAC OS machine having tmutil installed.
[parameters]
parameters (dict): with the element
{"age"}: (int, int): {WARN} and {CRIT} levels for maximum age of latest backup
in seconds
[configuration]
timemachine_default_levels(dict): The standard levels for {WARN} and
{CRIT}, preset to { "age": ( 86400, 172800 ) } which is 1 day / 2 days
|