-
Notifications
You must be signed in to change notification settings - Fork 137
Using MunkiReport with Jamf
As of MunkiReport v.5, MunkiReport does not require the installation of Munki to function. The only change that needs to be done is to trigger the MunkiReport Runner on a recurring basis. For those using Jamf, a simple Jamf Policy is well suited to triggering this.
Note that for clients to check in, a MunkiReport server must be setup and the MunkiReport client package must be installed on the machines in order for the script below to function. This can be distributed via Jamf as well, but distributing a package via Jamf is out of the scope of this article.
In Jamf, navigate to Settings : Computer Management : Scripts
and create a new script for MunkiReport.
Name the script and fill out any other optional fields, and select Python as the script type.
For the script contents, use the entire postflight
script or use the following script, which will limit the run to every hour.
#!/bin/sh
# Run the munkireport runner every hour
logfile=/Library/MunkiReport/Logs/MunkiReport.log
triggerfile=/Users/Shared/.com.github.munkireport.run
# Make sure the log file exists
test -e $logfile || touch $triggerfile
test -e $logfile || touch $logfile
# If the log file is older than 60 minutes, run munkireport
if test "`find $logfile -mmin +60`"; then
touch $triggerfile
fi
In Jamf, navigate to Computers : Policies
and create a new policy for triggering MunkiReport.
Set the policy to trigger when desired. It is recommended that this be "Recurring Check-In", but that may be dependent on the current frequency of this check in.
Add the script payload and connect to the script created for MunkiReport.
Scope the Policy to the machines that you would like to check in.
- General Upgrade Procedures
- How to Upgrade Versions
- Troubleshooting Upgrades
- Migrating sqlite to MySQL