#!/bin/shReturnString=$(/sbin/gmirror status)ReturnStatus=$?echo $ReturnStringif [ $ReturnStatus -ne 0 ]; then exit 1fiexit 0
Name: ExitStatusCondition: status notequal 0Action: Alert
Name: GMirrorTestType: CustomPath: /usr/local/bin/check_gmirror.shTests: ExecStatus
#!/bin/shReturnString=$(/sbin/gmirror status)echo $ReturnStringif echo $ReturnString | grep -q 'COMPLETE'; then exit 0fiexit 1