Jump to content

Recommended Posts

Posted

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

 

  • 1 year later...
Posted

I came here for the same thing. 

A command like 

exim -bpc

Can give us a print out of the number in the queue, but how to trigger pulseway when that number spikes. 

  • Administrators
Posted

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

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...