I’ve submitted a pull request, with a patch to the Checkmk macOS OSX agent, that we’re using to provide “ONLY_FROM” support. This implements a feature similar to the Checkmk Windows agent check_mk.user.yml “only_from” option.
Tested on macOS 10.15 Catalina. Uses netstat and awk info, much like is present later in the agent script.
This is my first pull request with the Checkmk project. Advise what I must improve.