Custom plugin for Watchman Monitoring to provide results of Addigy MDM Watchdog.
No alerting, this plugin provides reporting only.
The .plugin and .plist file need to be installed in /Library/MonitoringClient/Plugins
or use the installer package.
Addigy MDM Watchdog by Addigy to be installed.
Provides results of /Library/Application\ Support/mdm-watchdog/state.json
on the local computer, which reports last_mdm_kickstart
and last_software_update_kickstart
date and time.
Provides the results of log show --style syslog --predicate 'process == "mdm-watchdog"' -last 2h
which is the last 2 hours of logs from Apple's unified log that included the mdm-watchdog
process.
Which includes:
MDMEnrolled
MDMIdentityError
MDMClientStuck
MDMSoftwareUpdatesStuck
MDMClientRestarted
SoftwareUpdateDaemonRestarted
LastMDMKickstart
LastSoftwareUpdateDaemonKickstart
Output is not pretty, but usable.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.