scripts/monitoring/check_rspamc

12 lines
176 B
Bash
Executable file

#!/bin/sh
echo test | /usr/local/bin/rspamc > /dev/null 2> /dev/null
RC=$?
if [ $RC -gt 0 ] ; then
echo CRITICAL - rspamc returned $RC
exit 2
fi
echo OK - all fine
exit 0