<div dir="ltr"><div><div>Hi, <br><br></div>Just opened /var/log/ceilometer/ceilometer-alarm-evaluator.log file and found following errors:<br><br>2014-10-20 16:32:15.263 23166 TRACE ceilometer.alarm.service<br>2014-10-20 16:33:07.854 30437 ERROR ceilometer.alarm.service [-] alarm evaluation cycle failed<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service Traceback (most recent call last):<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometer/alarm/service.py", line 96, in$<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service alarms = self._assigned_alarms()<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometer/alarm/service.py", line 139, i$<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service 'value': True}])<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometerclient/v2/alarms.py", line 61, $<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service return self._list(options.build_url(self._path(), q))<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometerclient/common/base.py", line 57$<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service resp, body = self.api.json_request('GET', url)<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometerclient/common/http.py", line 18$<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service resp, body_iter = self._http_request(url, method, **kwargs)<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service File "/usr/lib/python2.7/dist-packages/ceilometerclient/common/http.py", line 15$<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service raise exc.CommunicationError(message=message)<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service CommunicationError: Error communicating with <a href="http://193.168.4.121:8777">http://193.168.4.121:8777</a> [Errno 111]$<br>2014-10-20 16:33:07.854 30437 TRACE ceilometer.alarm.service<br><br></div>How do I fix it?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 20, 2014 at 4:02 PM, david jhon <span dir="ltr"><<a href="mailto:djhon9813@gmail.com" target="_blank">djhon9813@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi all,<br><br></div>I am working with Ceilometer, Havana-All-in-one on Ubuntu 12.04. Initially, ceilometer configuration installed four ceilometer services:<br><br>ceilometer-agent-central<br>ceilometer-agent-compute<br>ceilometer-api<br>ceilometer-collector<br><br></div>but later I came to know that there should be two other services running as well: ceilometer-alarm evaluator, ceilometer-alarm-notifier, I installed these services as given on the link: <a href="http://www.brucemartins.com/2014/03/openstack-havana-ceilometer-alarm.html" target="_blank">http://www.brucemartins.com/2014/03/openstack-havana-ceilometer-alarm.html</a><br><br></div>I created alarm at a resource by using this command: ceilometer -k alarm-threshold-create --name tester_cpu_high --description 'overheating?' --meter-name cpu_util --threshold 3.0 --comparison-operator gt --statistic avg --period 10 --query resource_id=e0bbdad3-ebdb-4acd-8fb5-cd2e10bb10f4<br><br></div>but whenever I check the status of alarm, it shows me 'insufficient data' status. <br><br></div>I tested it by running different applications on my instance but they made no change in alarm_status. <br><br></div><div>Here is the log from /var/log/ceilometer/ceilometer-agent-compute.log:<br><br>2014-10-20 15:37:13.957 23126 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecessor: <ceilometer.sample.Sample obj$<br>2014-10-20 15:37:14.023 23126 WARNING ceilometer.transformer.conversions [-] dropping sample with no predecessor: <ceilometer.sample.Sample obj$<br><br>/var/log/ceilometer/ceilometer-api.log :<br><br>2014-10-20 15:37:10.652 23136 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware<br>2014-10-20 15:37:10.653 23136 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-bGIm6r as cache directory for signing c$<br>2014-10-20 15:37:13.039 23136 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware<br>2014-10-20 15:37:13.039 23136 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-y7L_NW as cache directory for signing c<br><br></div>Please tell me which step is missing or what exact procedure should be followed in order to monitor a meter for a resource. <br><br></div>Moreover, what steps should be taken in order to add new meter. How would I debug ceilometer source code in /usr/lib/python2.7/ceilometer/* if I follow the following link: <a href="http://docs.openstack.org/developer/ceilometer/contributing/plugins.html" target="_blank">http://docs.openstack.org/developer/ceilometer/contributing/plugins.html</a><br><br></div>Thank you!<br><br><br></div>Regards,<br></div>Jhon David<br><div><div><div><div><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br></div>