Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ceilometer alllows to invoke a web url when an alarm change state. You can see the ceilometer alarm creation options( http://docs.openstack.org/user-guide-admin/content/ceilometerclient_commands.html ):

--alarm-action <Webhook URL>
URL to invoke when state transitions to alarm. May be used multiple times. Defaults to None.

--ok-action <Webhook URL>
URL to invoke when state transitions to OK. May be used multiple times. Defaults to None.

You can use also Heat in order to set the alarm-action and the ok-action url as you can see in Heat documentation.

http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Ceilometer::Alarm

You have also to develop a web application that expose an url that you can invoke from ceilometer alarm. The language used for your application depends on your programming skill on different languages. You can see some of these solutions:

  • A J2EE application server like tomcat
  • A light web server(nginx or apache) with a php script
  • A javascript web appplication wroted using Node.js