From db776b9be300ed816e8fc4a3bb27eda9969944bd Mon Sep 17 00:00:00 2001 From: loopway Date: Fri, 16 Aug 2024 23:44:27 +0200 Subject: [PATCH 1/2] reenable timemachine backup check 10.14+ reenable timemachine backup check for 10.14+ with a comment --- agents/check_mk_agent.macosx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/agents/check_mk_agent.macosx b/agents/check_mk_agent.macosx index 98f39ad..6324c1f 100644 --- a/agents/check_mk_agent.macosx +++ b/agents/check_mk_agent.macosx @@ -400,16 +400,13 @@ if [ -r "$MK_CONFDIR/fileinfo.cfg" ] ; then IFS=$OLD_IFS fi -# Doesn't work since 10.14 due to missing permissions for tmutil -case $osver in - 10.?.*|10.1[0-3].*) - if command -v tmutil >/dev/null 2>&1 - then - echo '<<>>' - tmutil latestbackup 2>&1 - fi - ;; -esac +# Full Disk Access has to be allowed to /bin/sh for this to work on macOS 10.14+ +# Only allow it if you are aware what the security implications of it are!!! +if command -v tmutil >/dev/null 2>&1 +then + echo '<<>>' + tmutil latestbackup 2>&1 +fi # temperatures and sensors, requires HardwareMonitor.app. On newer machines/OSes # HardwareMonitor.app has no access to relevant sensors any more and if macOS' From 985b1abf75fb1e71d59067f364455bb3c5ba8e32 Mon Sep 17 00:00:00 2001 From: loopway Date: Fri, 16 Aug 2024 23:45:46 +0200 Subject: [PATCH 2/2] update agent version update agent version to a more recent version --- agents/check_mk_agent.macosx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/check_mk_agent.macosx b/agents/check_mk_agent.macosx index 6324c1f..aa65070 100644 --- a/agents/check_mk_agent.macosx +++ b/agents/check_mk_agent.macosx @@ -37,7 +37,7 @@ export LC_ALL=C OrigLANG=${LANG} unset LANG -CMK_VERSION="2.0.0p19" +CMK_VERSION="2.3.0p11" export MK_LIBDIR='/usr/local/lib/check_mk_agent' export MK_CONFDIR='/etc/check_mk' export MK_VARDIR='/var/lib/check_mk_agent'