Skip to content

Commit

Permalink
Merge pull request #48 from seanchristians-vention/jamfpro-ea
Browse files Browse the repository at this point in the history
Service status Jamf Pro extension attribute
  • Loading branch information
bartreardon authored Mar 5, 2024
2 parents a1d0aa0 + 97446de commit 2ecc76f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions MDM/Jamf Pro/service-status-ea.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/zsh

# Indicate if all the Outset daemons are enabled or not.

outsetStatusRaw=$(/usr/local/outset/outset --service-status)
enabledDaemons=$(echo $outsetStatusRaw | grep -c 'Enabled$')

healthyStatus="Not Healthy"

if [ $enabledDaemons -eq 6 ]; then
healthyStatus="Healthy"
fi

echo "<result>$healthyStatus</result>"

0 comments on commit 2ecc76f

Please sign in to comment.