-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Cleaned up" by properly encoding the Extension Attributes for import…
…ing into a JSS
- Loading branch information
1 parent
cbba24c
commit 09e8a98
Showing
3 changed files
with
38 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!DOCTYPE extensionAttribute PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extensionAttribute> | ||
<displayName>Watchman Monitoring Computer URL</displayName> | ||
<displayInCategory/> | ||
<dataType>string</dataType> | ||
<description>This will display a computer's Watchman Monitoring URL, where its full status can be reviewed.</description> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -f /Library/MonitoringClient/Utilities/ExportStatus ]; then | ||
echo "<result>`defaults read /Library/MonitoringClient/ClientData/UnifiedStatus.plist ClientURL`</result>" | ||
else | ||
echo "<result>Watchman Monitoring not installed</result>" | ||
<displayName>Watchman Monitoring Computer URL</displayName> | ||
<description>Displays the URL to a monitored computer's record in Watchman Monitoring.</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -f /Library/MonitoringClient/Utilities/ExportStatus ]; then | ||
echo "<result>`defaults read /Library/MonitoringClient/ClientData/UnifiedStatus.plist ClientURL`</result>" | ||
else | ||
echo "<result>Watchman Monitoring not installed</result>" | ||
fi</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!DOCTYPE extensionAttribute PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extensionAttribute> | ||
<displayName>Watchman Monitoring Error Condition</displayName> | ||
<displayInCategory/> | ||
<dataType>string</dataType> | ||
<description>This attribute return true when Watchman Monitoring is reporting an error.</description> | ||
<scriptContentsMac>#!/bin/sh | ||
|
||
if [ -f /Library/MonitoringClient/Utilities/ExportStatus ]; then | ||
if [ defaults read /Library/MonitoringClient/ClientData/UnifiedStatus.plist CurrentWarning ]; then | ||
result="Has Issue" | ||
else | ||
result="No problems detected" | ||
fi | ||
echo "<result>$result</result>" | ||
fi | ||
echo "<result>Watchman Monitoring not installed</result>" | ||
fi | ||
</scriptContentsMac> | ||
<displayName>Watchman Monitoring Status</displayName> | ||
<description>This attribute returns "Has issue" when Watchman Monitoring is reporting an error.</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
| ||
if [ -f /Library/MonitoringClient/Utilities/ExportStatus ]; then | ||
if [ defaults read /Library/MonitoringClient/ClientData/UnifiedStatus.plist CurrentWarning ]; then | ||
result="Has issue" | ||
else | ||
result="No problems detected" | ||
fi | ||
echo "<result>$result</result>" | ||
fi | ||
echo "<result>Watchman Monitoring not installed</result>" | ||
fi | ||
</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!DOCTYPE extensionAttribute PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extensionAttribute> | ||
<displayName>Watchman Monitoring Heath Report</displayName> | ||
<displayInCategory/> | ||
<dataType>string</dataType> | ||
<description>This will display a list of all Watchman Monitoring plugins active on the computer, and their reported status.</description> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -f /Library/MonitoringClient/Utilities/ExportStatus ]; then | ||
echo "<result>`/Library/MonitoringClient/Utilities/ExportStatus -v`</result>" | ||
else | ||
echo "<result>Watchman not installed</result>" | ||
<displayName>Watchman Monitoring-Full Report</displayName> | ||
<description>Displays a list of all plugins active on the computer, and their status.</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -f /Library/MonitoringClient/Utilities/ExportStatus ]; then | ||
echo "<result>`/Library/MonitoringClient/Utilities/ExportStatus -v`</result>" | ||
else | ||
echo "<result>Watchman Monitoring not installed</result>" | ||
fi</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |