scripts/monitoring/check_rspamc

13 lines
176 B
Text
Raw Normal View History

2019-10-05 18:29:04 +02:00
#!/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