#242: errorlib: make SMS sending facility more generic
-------------------------+--------------------------------------------------
Reporter: simko | Owner: jluker
Type: enhancement | Status: new
Priority: critical | Milestone: v1.0
Component: MiscUtil | Version:
Keywords: |
-------------------------+--------------------------------------------------
CFG_SITE_EMERGENCY_PHONE_NUMBERS should be based on email addresses,
not on phone numbers, and it should work irrespective of CERN context.
0) For CERN sites, we have CFG_SITE_EMERGENCY_PHONE_NUMBERS which is
used to send SMS in case the bibsched queue is stopped for a reason,
requiring ultra-fast human intervention. The configuration looks like
this:
{{{
$ grep EMER /opt/cds-invenio/etc/invenio-local.conf
CFG_SITE_EMERGENCY_PHONE_NUMBERS = 0041761111111,0041762222222
}}}
Behind the scenes, the facitily sends SMS messages via email2sms
gateway of the form `[email protected]`.
We should do two things:
1) Kill this config variable CFG_SITE_EMERGENCY_PHONE_NUMBERS, or
better said, transform it into direct email sending facility, to be
configured like this:
{{{
CFG_SITE_ADMIN_EMERGENCY_EMAILS =
[email protected],[email protected]
}}}
This will still permit the SMS sending, but also special emergency
email account addresses, e.g. John Doe might have a dedicated
emergency gmail account that is being received on his Android mobile
phone instantly. This will also allow using more than one email2sms
gateway, e.g. if the support team is distributed across several
countries.
2) Moreover, the configuration could allow the notion of time
intervals as a bonus, so that e.g. John Doe would be alerted only
during night. The time limit feature can be shared from bibtask,
i.e. reused from there. The configuration might look like:
{{{
CFG_SITE_ADMIN_EMERGENCY_CONTACTS = {
'06:00-18:00': ['team-in-
[email protected]','[email protected]',],
'18:00-06:00': ['[email protected]',],
'Sunday 22:00-06:00': ['[email protected]',]
}
}}}
The alerter would process all the entries and would alert respective
people if the time is matching. (See the time limit option of
bibsched tasks.)
--
Ticket URL: <http://invenio-software.org/ticket/242>
Invenio <http://invenio-software.org>