Warning |
---|
The Abiquo streaming API (outbound API and M module) will be deprecated in Abiquo 6.2. You can replace this feature using polling to obtain events from the Abiquo REST API. For more details, please contact Abiquo Customer Service |
The Abiquo Events Notifier is a Python application that uses the Abiquo Outbound API and the Abiquo API to monitor the Abiquo platform and send emails to notify users of events in Abiquo. You can configure the users, as well as the types of events that will trigger notification emails. By default, the Email Notifier accesses the Abiquo API every five seconds but you should tune this value for your installation. You can run the Abiquo Events Notifier on the Abiquo Server or on a separate server with access to Abiquo API.
Download the Abiquo Email Notifier script from the Abiquo Enterprise Support website.
...
Abiquo Events Notifier require some additional python packages to run. You can get them from the default repository in CentOS6 or from a third party repository such as RPMforge in CentOS5 for example.
python-pycurl
python-dateutil
CentOS6 additional packages installation example:
...
Set the polling interval, which is the amount of time between API checks. The default is 5 seconds and the recommended value is between 5 and 10 seconds, but you should tune the polling value for your installation.
...
Polling Interval configuration in notifier.cfg file
Code Block |
---|
[main] polling_interval = 5 |
Set the IP of Abiquo API Server, a valid Cloud Admin user account registered in Abiquo and change the port if this is required in your setup.
...
...
Abiquo API configuration in notifier.cfg file
Code Block |
---|
[abiquo] api_ip = 10.10.10.10 api_user = event-notifier api_pwd = event-password api_port = 80 |
Field | Description |
---|---|
api_ip | IP address of the Abiquo API Server |
api_user | Cloud Admin username |
api_pwd | Cloud Admin password |
api_port | Abiquo API Server port |
Code Block |
---|
[email] from = events@abiquoserver subject = New events have occurred in the Abiquo environment body = The new events are: smtp_ip = localhost smtp_port = 25 |
Field | Description |
---|---|
from | Sender email address |
subject | Subject |
smtp_ip | Outgoing mail server IP address. The default is localhost |
smtp_port | The default outgoing mail server port is 25 |
Initialize the rules database
...