Alert for passing email deferrals and failures threshold
Hello,
Right now, we are daily monitoring our servers' "View Sent Summary" in order to check if any account is making many email deferrals or failures. This job is being done by hand, meaning that we login to each server in turns every few hours in order to check if everything is working as it's supposed to, in terms of our outgoing emails.
We'd like to transfer this monitoring to scripts. Ideally we want to achieve the following:
As a server admin, we'd like to receive an email every time an account passes our threshold for email deferrals or failures. For example, we set the daily threshold to 50 defers or failures. As soon as any account passes this threshold, send an email to the server admin or a specific email address.
If this is too hard, we can set the script on a cron job which will run every 2-3 hours. The script will email us the current daily values of all the server's accounts, as we see them in "View Sent Summary". This way we will at least stop logging in to the server hour after hour and the whole team will be able to monitor the situation.
Are there any scripts already made for this job? If not, which is the best way to create one for this job?
We're already using our own scripts but i'm not sure if we had made them in the most efficient and productive way (each script was taking us a few days to be created).
PS: Don't know if this thread belongs here or in the Email category. If it's been placed mistakenly, i apologize.
-
Hey there! In WHM >> Contact Manager under the "Notifications" tab, there are the following contact options that you may find helpful: Large Amount of Outbound Email Detected Maximum Hourly Emails Exceeded Outgoing Email Threshold Exceeded So those may be good things to add to your tool as well. Unfortunately, I don't have any contact option for the deferred Tweak Settings tool to trigger a notification, as the only thing that happens is the user receiving a bounce: 0 -
Hello, Thank you for your suggestions. All of the notifications mentioned have been enabled too long ago. They are not enough unfortunately and we wanted something more. Do you think we would be able to make use of the API in order to get what we want? In a short example, here are the 2 scenarios: Scenario A: set the threshold for email deferrals or failures to 20 per 24 hours. If this limit is hit on any account, send email notification to X email address. Scenario B: Every 2 hours send an email to X email address with the top 10 entries from the table of "View Sent Summary" script. 0 -
I'm not finding any API calls that will do that work, either. The best option at this point would be a feature request to have us add some functionality for notifications for those features. 0 -
Thank you so much for checking it out! We'll make it the traditional way then :) 0 -
I'm sorry I don't have more I can offer on this one! 0 -
No problem at all! You 've made more than enough by checking the API! Thank you! 0
Please sign in to leave a comment.
Comments
6 comments