aodh for reboot of virtual machine

asked 2016-11-21 18:02:51 -0500

sungyuehchen gravatar image

updated 2016-11-22 17:44:59 -0500

Hi,

I have a question about the event from aodh. I create an alarm as following:

aodh alarm create --name ins_reboot_start --alarm-action "log://" --description "instance reboot start" --enable True --repeat-actions True --severity "moderate" --event-type compute.instance.reboot.start -t event

Then if I reboot the virtual machine by typing:

$sudo reboot

in the virtual machine, I cannot get any log in /var/log/aodh/listener.log

But if I reboot the virtual machine in horizon by clicking soft reboot (or hard reboot), I can get log.

Is there any way to get "log://" (or "http://") when reboot the virtual machine by typing "sudo reboot"

Thank you.

edit retag flag offensive close merge delete