kavaa Posted May 29, 2015 Posted May 29, 2015 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
Keith Page Posted October 20, 2016 Posted October 20, 2016 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 Paul Posted October 20, 2016 Administrators Posted October 20, 2016 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now