To prevent an avalanche of error messages, Diafaan SMS Server blocks similar error event for an hour. You won't see the exact same error event in the event log more than once every hour.
If you want to know the queue size more precisely and more regularly then you'll have to poll the status with the the 'request-server-status' HTTP API call.
i made several tests with follwing steps:
1) test mail connections - fully works from Options (with Gmail)
Also I set "Limit to max one mail per every 10 min" and set Event log filter *queue*
also i put checkbox in Options/Advanced "Post an event error when the send queue exceeds 30 messages"
2) i use SMPP connector, I intentionally duplicated messages from "Sent log", selected 40, made right click and "Send again"
3) I got mail notification at 20:12
31.05.2016 20:06:26 (error) Diafaan SMS Server (service):
The send queue exceeds the configured alert treshold of 30 messages
as you see it was generated 20:06 - it arrive a bit later
4) and last but not least - the problem i experienced:
I emptied the queue
then i connected to SMPP connector with test SMPP-client, and generated over 30 messages, i saw them in Queue
but not event was generated in Event log and no mail was send, i repeated it 2 times - no result, so decided to report here - seems like event was not generated and the mail was not sent. Also I waited more then 10 minutes before making queue overlimit again due to this "Post an event error when the send queue exceeds 30 messages" - I thought it restricts new emails...
possibly i did smth wrong, but it worked at least 1 time
Diafaan SMS Server has an option to send email alerts for all events that are logged to the event log. You can enable the alerts in the 'Email alerts' section of the general options (select 'Actions-Options-Email alerts').
If you only want an email alert when the queue exceeds the limit, you can set a filter in the email alerts settings by clicking on 'Edit message template' and changing the 'Event log filter' parameters.
This option only sends one email alert when the queue exceeds the threshold and does not send an alert when the queue drops below the threshold. The best way to monitor the queue size from an external source is to use the 'request-server-status' HTTP API call to request the status of Diafaan SMS Server. The returned XML file contains the actual queue size in the 'MessagesInSendQueue' parameter.
I saw already in Options some similar setting about Queue Limit warning - but it just posts event in event-log when queue is Longer then... (as I understood)
I suggest to add another similar feature - enable Email notification (or HTTP-call) when queue is over XXX items
for example, when Queue count is over some Limit - program starts sending Email each XX minute(s) (via SMPP credentials provided, best way i think) or just makes HTTP-request to certain URL (but need to make sure it is Successfull)
once , queue is less then Limit - stops notifying
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 539
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1066