There was an error while loading. Please reload this page.
1 parent 6ff630e commit 3de8089Copy full SHA for 3de8089
zabbix-zimbra/zbx_zimbra.sh
@@ -47,10 +47,10 @@ fork_discover() {
47
# Return a list of running services in JSON
48
SRVCS=$($COMMAND status | grep -v ^Host | awk '{$(NF--)=""; print}' | sed 's/^/\t{ \"{#ZIMBRASERVICE}\":\"/' | sed 's/\ $/\" },/')
49
echo "{"
50
- echo "\t\"data\":[\n"
+ echo -e "\t\"data\":[\n"
51
# Remove last comma from the sting, to make a good JSON
52
echo $(echo $SRVCS | sed 's/,\+$//')
53
- echo "\n\t]\n"
+ echo -e "\n\t]\n"
54
echo "}"
55
}
56
0 commit comments