Posted May 29, 20159 yr 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 Â
October 20, 20168 yr 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.Â
October 20, 20168 yr 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
Create an account or sign in to comment