Jump to content

Exim Mailqueue monitor Linux


kavaa

Recommended Posts

Hi,

 

Is there a possibility that you can add an Exim Mailqueue monitor?

For example if the mailqueue is higher than 200 emails send a notification.

 

We would really like to use that for our webservers.

 

Mostly Cent OS 6.x

 

Thanks

 

Link to comment
Share on other sites

  • 1 year later...
  • Administrators

Does that command print out just the queue size? If so you can write an automation script (bash) to run the command and if the output if greater than 200 or whatever your desired threshold is you can use the REST API to send a notification:

curl https://api.pulseway.com/v2/notifications \
    -u username:password \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"instance_id":"pulsewaySystemInstanceId","title":"Exim mailqueue is greater than 200 on Server01 in group Servers","message":"Exim mailqueue is greater than 200 on Server01 in group Servers.\n\nCurrent Value: 201","priority":"critical"}'

You can get the system identifier from /var/pulseway/pulseway.id

-Paul

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...