Ask Your Question
0

Ceilometer Alarm action is not working

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

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
1

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

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/log.py

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

edit flag offensive delete link more

Comments

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 stack.sh

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

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

Feel free to implement and suggest your notifier upstream.

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 67 times

Last updated: Mar 14 '16