Skip to content

Commit

Permalink
Merge pull request #6 from maethor/patch-1
Browse files Browse the repository at this point in the history
Compatibility with couchdb3
  • Loading branch information
Napsty authored Feb 21, 2022
2 parents 6f80bf1 + d5e899d commit 754992e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_couchdb_replication.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ else
elif [[ -n $(echo $cdbresp | grep -i "You are not a server admin") ]]; then
echo "COUCHDB REPLICATION CRITICAL - You are not a server admin"
exit $STATE_CRITICAL
elif [[ -n $(echo $cdbresp | grep -i missing) ]]; then
elif [[ -n $(echo $cdbresp | grep -i '"reason":"missing"') ]]; then
echo "COUCHDB REPLICATION CRITICAL - Replication for $repid not found"
exit $STATE_CRITICAL
elif [[ -z $cdbresp ]]; then
Expand Down

0 comments on commit 754992e

Please sign in to comment.