HI ALL,
   I setup a openstack env by devstack and create a alarm by aodh
   and give a URL to the alarm's <alarm_action>. but when the alarm
   is evaluated and its state is transited from "insufficient data"
   to "alarm". I can not receive any message for the notification. 

stack@zte:~$ aodh alarm update --alarm-action
 http://192.168.122.165:8080/alarm/image 
bd9e6d09-d13f-4d0f-a55e-a8602267cb01
+---------------------------+------------------------------------------------------+
| Field                     | Value         |
+---------------------------+------------------------------------------------------+
| alarm_actions             | [u'http://192.168.122.165:8080/alarm/image'] 
        |
| alarm_id                  | bd9e6d09-d13f-4d0f-a55e-a8602267cb01  |
| comparison_operator       | ge         |
| description               | Alarm when image.size is eq a avg of 60.0 
over 60    |
|                           | seconds         |
| enabled                   | True         |
| evaluation_periods        | 1         |
| exclude_outliers          | False         |
| insufficient_data_actions | []         |
| meter_name                | image.size         |
| name                      | thres-001         |
| ok_actions                | [u'log:///opt/stack/logs/aodh-notifier.log'] 
        |
| period                    | 30         |
| project_id                | 52ec6af5bd0a47ba9fa675c88967758a         |
| query                     | []         |
| repeat_actions            | False         |
| severity                  | low         |
| state                     | insufficient data         |
| state_timestamp           | 2016-05-29T06:50:25.232939         |
| statistic                 | max         |
| threshold                 | 5000000.0         |
| time_constraints          | []         |
| timestamp                 | 2016-05-31T07:15:26.962639         |
| type                      | threshold         |
| user_id                   | b7bfac62328445979e435e9d9946722b         |
+---------------------------+------------------------------------------------------+


a sippet in aodh-evaluator.log:
-------------------------------------------------------------------------------------------
2016-05-31 03:24:25.545 7887 DEBUG aodh.evaluator [-] evaluating alarm 
bd9e6d09-d13f-4d0f-a55e-a8602267cb01 _evaluate_alarm 
/opt/stack/aodh/aodh/evaluator/__init__.py:220
2016-05-31 03:24:25.546 7887 DEBUG aodh.evaluator.threshold [-] query 
stats from 2016-05-31 07:23:25.546035 to 2016-05-31 07:24:25.546035 
_bound_duration /opt/stack/aodh/aodh/evaluator/threshold.py:79
2016-05-31 03:24:25.546 7887 DEBUG aodh.evaluator.threshold [-] stats 
query [{'field': 'timestamp', 'value': '2016-05-31T07:24:25.546035', 'op': 
'le'}, {'field': 'timestamp', 'value': '2016-05-31T07:23:25.546035', 'op': 
'ge'}] _statistics /opt/stack/aodh/aodh/evaluator/threshold.py:114
2016-05-31 03:24:25.896 7887 DEBUG aodh.evaluator.threshold [-] sanitize 
stats [<Statistics {u'count': 3, u'duration_start': 
u'2016-05-31T07:23:30.862221', u'min': 3740163.0, u'max': 25165824.0, 
u'duration_end': u'2016-05-31T07:23:30.865100', u'period': 30, u'groupby': 
None, u'period_end': u'2016-05-31T07:23:55.546035', u'duration': 0.002879, 
u'period_start': u'2016-05-31T07:23:25.546035', u'avg': 
11295206.333333334, u'sum': 33885619.0, u'unit': u'B'}>] _sanitize 
/opt/stack/aodh/aodh/evaluator/threshold.py:85
2016-05-31 03:24:25.897 7887 DEBUG aodh.evaluator.threshold [-] pruned 
statistics to 1 _sanitize /opt/stack/aodh/aodh/evaluator/threshold.py:105
2016-05-31 03:24:25.898 7887 DEBUG aodh.evaluator.threshold [-] comparing 
value 25165824.0 against threshold 5000000.0 _compare 
/opt/stack/aodh/aodh/evaluator/threshold.py:165
---------------------------------------------------------------------------------------------------



stack@zte:~$ aodh alarm show bd9e6d09-d13f-4d0f-a55e-a8602267cb01
+---------------------------+------------------------------------------------------+
| Field                     | Value         |
+---------------------------+------------------------------------------------------+
| alarm_actions             | [u'http://192.168.122.165:8080/alarm/image'] 
        |
| alarm_id                  | bd9e6d09-d13f-4d0f-a55e-a8602267cb01  |
| comparison_operator       | ge         |
| description               | Alarm when image.size is eq a avg of 60.0 
over 60    |
|                           | seconds         |
| enabled                   | True         |
| evaluation_periods        | 1         |
| exclude_outliers          | False         |
| insufficient_data_actions | []         |
| meter_name                | image.size         |
| name                      | thres-001         |
| ok_actions                | [u'log:///opt/stack/logs/aodh-notifier.log'] 
        |
| period                    | 30         |
| project_id                | 52ec6af5bd0a47ba9fa675c88967758a         |
| query                     | []         |
| repeat_actions            | False         |
| severity                  | low         |
| state                     | alarm                                    |
| state_timestamp           | 2016-05-29T06:50:25.232939         |
| statistic                 | max         |
| threshold                 | 5000000.0         |
| time_constraints          | []         |
| timestamp                 | 2016-05-31T07:15:26.962639         |
| type                      | threshold         |
| user_id                   | b7bfac62328445979e435e9d9946722b         |
+---------------------------+------------------------------------------------------+

192.168.122.165 is my server host ip.

In the URL: http://192.168.122.165:8080/alarm/image, I receive no info.
Does something wrong with the URL? Or, need I add some other config in the
config file?

Rajen
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail (and 
any attachment transmitted herewith) is privileged and confidential and is 
intended for the exclusive use of the addressee(s).  If you are not an intended 
recipient, any disclosure, reproduction, distribution or other dissemination or 
use of the information contained is strictly prohibited.  If you have received 
this mail in error, please delete it and notify us immediately.
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to