Skip to content

Commit

Permalink
Merge branch 'jamfpro-ea' into jamfpro-jsonschema
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchristians committed Apr 5, 2024
2 parents 9539615 + 97446de commit 0233199
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 0233199

Please sign in to comment.