Skip to main content

Get notified when queue exceeds more than 500 emails

Comments

6 comments

  • Patrick Heinz
    Hi hermano, Didn't tried, but you can do some like this script:
    #!/bin/bash queue=`/usr/sbin/exim -bpc` if [ $queue -gt "500" ]; then mail -s "Queue alert!" some@email.com fi
    0
  • ::Gomez::
    Thanks will try It! I save it as .cgi ?
    0
  • Patrick Heinz
    Hello, Its a shell script. So you can save as .sh, and add on your crontab, setting the time you will prefer to check the queue. Crontab examples
    0
  • kdean
    If you also have Config Server Firewall running, you can just set the LF_QUEUE_ALERT option.
    0
  • ::Gomez::
    If you also have Config Server Firewall running, you can just set the LF_QUEUE_ALERT option.

    That"s exactly what I was looking for. Thanks a lot kdean.
    0
  • cPanelMichael
    Hello, I am happy to see you were able to find a suitable solution. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.