File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 33# Zabbix script to check Zimbra services and perform service discovery.
44# Supports Zimbra 8.6 and "two-worded" service names
55# Author: Lorenzo Milesi <maxxer@yetopen.it>
6- # Copyright : YetOpen S.r.l. 2014
6+ # Copytight : YetOpen S.r.l. 2015
77# License: GPLv3
88
99# uncomment for debug
@@ -20,18 +20,18 @@ case "$1" in
2020 exit 0;
2121 fi
2222 # error
23- return 1;
23+ exit 1;
2424 ;;
2525 discover)
2626 # Return a list of running services in JSON
2727echo " {"
28- echo " \t\" data\" :[\n"
28+ echo -e " \t\" data\" :[\n"
2929 SRVCS=$( $COMMAND status | grep Running | awk ' {$(NF--)=""; print}' | sed ' s/^/\t{ \"{#ZIMBRASERVICE}\":\"/' | sed ' s/\ $/\" },/' )
3030# Remove last comma from the sting, to make a good JSON
3131echo $( echo $SRVCS | sed ' s/,\+$//' )
32- echo " \n\t]\n"
32+ echo -e " \n\t]\n"
3333echo " }"
34- return 0;
34+ exit 0;
3535 ;;
3636 * )
3737 # move on...
You can’t perform that action at this time.
0 commit comments