check_sm_spool.sh - A plugin to call the built in API on a smartermail server to get the number of emails in queue.
- -h The host e.g. mail.domain.com
- -u Admin username
- -p Admin user's password
- -w number of queued emails that will trigger a warning alert
- -c number of queued emails that will trigger a critical alert
- -q The queue to check default | waiting | virus | spam
- the default queue/spool will be used if option isn't provided. See SmarterMail documentation (https://help.smartertools.com/SmarterMail/current/topics/systemadmin/manage/spool/managespool.aspx) for queue descriptions
- OK - $x messages in the $y queue. (if $x is below both thresholds)
- WARNING - $x messages in the $y queue. (if $x is above the -w threshold but less than -c)
- CRITICAL - $x messages in the $y queue. (if $x is above the -c threshold)