Skip to content

Commit 6c4e808

Browse files
authored
Merge pull request #13 from manusfreedom/patch-2
Fix service status parsing
2 parents 8c81c63 + c548806 commit 6c4e808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zabbix-zimbra/zbx_zimbra.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ case "$1" in
8181

8282
fork_get_status &
8383

84-
STATUS="$(cat $FILE | grep "$check" | awk '{print $NF}')"
84+
STATUS="$(cat $FILE | grep "`printf '\t'`$check " | awk '{print $NF}')"
8585

8686
if [ "$STATUS" != "Running" ]; then
8787
echo 0

0 commit comments

Comments
 (0)