Skip to content

Commit 0fe5cce

Browse files
committed
Behave with hostnames containing zimbra service names, thanks to @miquelangeld
1 parent b9b747d commit 0fe5cce

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
@@ -71,7 +71,7 @@ case "$1" in
7171
mv $file.tmp $file
7272
fi
7373

74-
STATUS="$(cat $file | grep "$check" | awk '{print $NF}')"
74+
STATUS="$(cat $file | grep -w "$check" | awk '{print $NF}')"
7575

7676
if [ "$STATUS" != "Running" ]; then
7777
echo 0

0 commit comments

Comments
 (0)