How to setup alerting on failure or que backing up

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
amplector
New user
New user
Posts: 5
Joined: 2016-05-11 18:26

How to setup alerting on failure or que backing up

Post by amplector » 2020-06-05 19:01

I just need an email notification to be able to know when email flow is stopped (delivery failure or large que). Also, if logging could possibly be sent to a syslog server, I could then setup an alert there.

I would like to know how to implement this solution completely and in the most simple way. I am on version 5.6.4-B2283. I understand that I would go to Scripts and Edit the EventHandlers.vbs file.

What is the proper or some example syntax that I would implement the function OnDeliveryFailed?

Upon researching the forums I find more advanced articles like these below and it only confuses me.

https://www.hmailserver.com/forum/viewtopic.php?t=31345
http://blog.brainsen.com/post/logging-d ... mailserver

mikedibella
Normal user
Normal user
Posts: 230
Joined: 2016-12-08 02:21

Re: How to setup alerting on failure or que backing up

Post by mikedibella » 2020-06-05 19:19

Consider that if HMS can't deliver messages, you won't receive your alert notification of the same if it too is sent via email.

I wrote this a while back:

https://www.hmailserver.com/forum/viewt ... ue#p192749

I have a monitoring service running on the server that executes this little utility every so often and sends an SMS if the queue count crosses a threshold.

amplector
New user
New user
Posts: 5
Joined: 2016-05-11 18:26

Re: How to setup alerting on failure or que backing up

Post by amplector » 2020-06-08 15:10

Interesting. What are some example monitoring services that would pull this off?

User avatar
mattg
Moderator
Moderator
Posts: 21106
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: How to setup alerting on failure or que backing up

Post by mattg » 2020-06-09 02:06

This was one solution posted by a user - it works great for me

https://www.hmailserver.com/forum/viewt ... se#p206767

As for notification services, there are many commercial ones, but I use 'Monit' on my Ubuntu box.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply