Ask Your Question

Ceilometer Alarm action is not working

asked 2016-03-13 15:38:03 -0500

Umar Usaf gravatar image

What should be the value of alarm-action if I want to achieve an action like writing something to a file. A demo example in python will be greatly appreciated. In alarm docs at openstack log:// is given but their isn't any concrete action is available.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-14 01:43:31 -0500

yprokule gravatar image

So basically log:// notifier is writing a message to the ceilometer/alarm-notifier.log . Code for it is available at python*/site-packages/ceilometer/alarm/notifier/

U may also be interested in file that is for sending info about fired alarm to http/https consumer.

edit flag offensive delete link more


Thanks but I found it at /opt/stack/ceilometer/ceilometer/alarm/notifier. Can I change the code to override this behavior i.e instead to appending to the alarm-notifier.log, it starts writing on a particular file. If yes, will these changes remain intact after

Umar Usaf gravatar imageUmar Usaf ( 2016-03-14 15:29:54 -0500 )edit

@Umar - U definitely can change code :) Though I doubt it will remain intact after running

Feel free to implement and suggest your notifier upstream.

yprokule gravatar imageyprokule ( 2016-03-15 00:28:24 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-03-13 15:38:03 -0500

Seen: 96 times

Last updated: Mar 14 '16