Skip to content

Latest commit

 

History

History

Jamf Pro Health Check

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Jamf Pro Health Check


Overview

  1. This script creates a client-side LaunchDaemon which marks the Mac as "unhealthy" each morning shortly after midnight.
  2. Adding this script to your Jamf Pro daily inventory update policy will mark the Mac as "healthy" each time the policy is executed successfully.
  3. Leverage a vendor's ability to read client-side .plist values to determine if the Mac is "healthy" or "unhealthy", based on the Mac's ability to update its inventory with the Jamf Pro server.

Assumptions


Implementation

  1. Review and adjust the Organization Variables to fit your organization
  2. Test locally (in an elevated Terminal session), replacing the following variable names with the actual values from your customized script:
    • Check the value of the client-side .plist
      • defaults read ${plistFilepath} "${key}"
    • Set Configuration Files to Reset — resetConfiguration — to the desired option during testing
      • None (blank)
      • All
      • LaunchDaemon
      • Script
      • Uninstall
  3. Upload the Jamf-Pro-Health-Check-EA.zsh Extension Attribute to your Jamf Pro server
  4. Upload the Jamf-Pro-Health-Check.zsh script to your Jamf Pro server, using the following Script Parameter Labels:
    • Parameter 4: Script Log Location [ /var/log/org.churchofjesuschrist.log ] (i.e., Your organization's default location for client-side logs)
    • Parameter 5: Configuration Files to Reset (i.e., None (blank) | All | LaunchDaemon | Script | Uninstall ) Script Parameter Labels
  5. Add the script to your inventory-related policies:
    • Daily inventory update
    • Self Service inventory update

Scripts