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 3
3
# Zabbix script to check Zimbra services and perform service discovery.
4
4
# Supports Zimbra 8.6 and "two-worded" service names
5
5
# Author: Lorenzo Milesi <maxxer@yetopen.it>
6
- # Copyright : YetOpen S.r.l. 2014
6
+ # Copytight : YetOpen S.r.l. 2015
7
7
# License: GPLv3
8
8
9
9
# uncomment for debug
@@ -20,18 +20,18 @@ case "$1" in
20
20
exit 0;
21
21
fi
22
22
# error
23
- return 1;
23
+ exit 1;
24
24
;;
25
25
discover)
26
26
# Return a list of running services in JSON
27
27
echo " {"
28
- echo " \t\" data\" :[\n"
28
+ echo -e " \t\" data\" :[\n"
29
29
SRVCS=$( $COMMAND status | grep Running | awk ' {$(NF--)=""; print}' | sed ' s/^/\t{ \"{#ZIMBRASERVICE}\":\"/' | sed ' s/\ $/\" },/' )
30
30
# Remove last comma from the sting, to make a good JSON
31
31
echo $( echo $SRVCS | sed ' s/,\+$//' )
32
- echo " \n\t]\n"
32
+ echo -e " \n\t]\n"
33
33
echo " }"
34
- return 0;
34
+ exit 0;
35
35
;;
36
36
* )
37
37
# move on...
You can’t perform that action at this time.
0 commit comments