Erikmitk / Check_MK

Some Check_MK tweaks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some Check_MK tweaks

macOS support

A slightly tweaked macosx agent compared to the official one. As of 2.0.0p19 this agent has the following improvements:

  • reports macOS version (e.g. 10.16 (20A4299v))

  • reports correct size of APFS volumes

  • filters out temporarely appearing filesystems

  • reports network statistics somewhat correctly

  • runs ntp check only on macOS 10.12 and below since broken with newer macOS releases

  • runs timemachine check only on macOS 10.13 and below since broken with newer macOS releases

  • on recent Intel Macs reports thermals and fan speeds by using macOS' powermetrics tool

  • on older Intel Macs reports thermal sensors if HardwareMonitor is available or iStatistica

  • on Apple Silicon Macs reports thermal sensors and fan speeds if iStatistica is available

  • reports SMART health data and disk temperatures if smartctl is available (brew install smartmontools)

  • reports battery info and status

  • reports outstanding security updates

  • reports a warning if security updates require a reboot

  • supports HW/SW inventory (Mac/cpu/OS/devices info, serial numbers, installed apps, homebrew packages)

  • bundled with a LaunchDaemon that needs to be loaded as below (if you want more fine grained control who can access the agent's output see here for example):

    launchctl load -w /Library/LaunchDaemons/de.mathias-kettner.check_mk.plist

It looks like this with an old MacPro having plenty of hardware sensors, running with available HardwareMonitor.app and macOS prior to 10.15:

It looks like this with a new M1 MacBook Air having plenty of hardware sensors, running with iStatistica.app and macOS 11:

The fully searchable HW/SW inventory looks like this on a MacBook Pro:

Inventory history can be used to track software changes (Apps and homebrew packages):

Agent plugins

About

Some Check_MK tweaks

License:GNU General Public License v2.0


Languages

Language:Shell 95.2%Language:Python 4.8%