<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hello Mike/Bill,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for your reply.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">@Bill:
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">ceilometer statistics -m cpu --period 60  shows the output (huge data)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal">   | 0.0      | 2014-03-18T02:24:54        | 2014-03-18T02:24:54        |<o:p></o:p></p>
<p class="MsoNormal">| 60     | 2014-03-18T02:34:20 | 2014-03-18T02:35:20 | 1     | 1.29465e+13   | 1.29465e+13   | 1.29465e+13   | 1.29465e+13       | 0.0      | 2014-03-18T02:34:54        | 2014-03-18T02:34:54        |<o:p></o:p></p>
<p class="MsoNormal">| 60     | 2014-03-18T02:44:20 | 2014-03-18T02:45:20 | 1     | 1.294736e+13  | 1.294736e+13  | 1.294736e+13  | 1.294736e+13      | 0.0      | 2014-03-18T02:44:54        | 2014-03-18T02:44:54        |<o:p></o:p></p>
<p class="MsoNormal">| 60     | 2014-03-18T02:54:20 | 2014-03-18T02:55:20 | 1     | 1.29481e+13   | 1.29481e+13   | 1.29481e+13   | 1.29481e+13       | 0.0      | 2014-03-18T02:54:54        | 2014-03-18T02:54:54        |<o:p></o:p></p>
<p class="MsoNormal">| 60     | 2014-03-18T05:46:20 | 2014-03-18T05:47:20 | 1     | 0.0           | 0.0           | 0.0           | 0.0               | 0.0      | 2014-03-18T05:46:24        | 2014-03-18T05:46:24        |<o:p></o:p></p>
<p class="MsoNormal">| 60     | 2014-03-18T05:50:20 | 2014-03-18T05:51:20 | 1     | 0.0           | 0.0           | 0.0           | 0.0               | 0.0      | 2014-03-18T05:50:56.553000 | 2014-03-18T05:50:56.553000 |<o:p></o:p></p>
<p class="MsoNormal">+--------+---------------------+---------------------+-------+---------------+---------------+---------------+-------------------+----------+----------------------------+----------------------------+<o:p></o:p></p>
<p class="MsoNormal">root@controller:/var/log/ceilometer#<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">@Mike:  as you can see from the below output that I am able to create alarms, but I would like to know where these logs are getting generated after alarm triggered ? I have mentioned ‘log://’.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But there is nothing in my logfile:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@controller:/var/log/ceilometer# ceilometer alarm-threshold-create --name lowcpuutlization --project-id 536518d5b38d4f3e9dcab26403d4d6e8 --user-id admin --description Threshholdvalue --state alarm --enabled True --alarm-action 'log://'
 --meter-name cpu --period 60 --evaluation-periods 1  --statistic avg --comparison-operator 'lt' --threshold 30 --repeat-actions True     +---------------------------+------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal">| Property                  | Value                                                            |<o:p></o:p></p>
<p class="MsoNormal">+---------------------------+------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal">| alarm_actions             | [u'log://']                                                      |<o:p></o:p></p>
<p class="MsoNormal">| user_id                   | admin                                                            |<o:p></o:p></p>
<p class="MsoNormal">| name                      | lowcpuutlization                                                 |<o:p></o:p></p>
<p class="MsoNormal">| enabled                   | True                                                             |<o:p></o:p></p>
<p class="MsoNormal">| rule                      | {u'meter_name': u'cpu', u'evaluation_periods': 1, u'period': 60, |<o:p></o:p></p>
<p class="MsoNormal">|                           | u'statistic': u'avg', u'threshold': 30.0, u'query': [],          |<o:p></o:p></p>
<p class="MsoNormal">|                           | u'comparison_operator': u'lt'}                                   |<o:p></o:p></p>
<p class="MsoNormal">| alarm_id                  | 094fa622-b1f4-4b16-adf4-024ce89728e2                             |<o:p></o:p></p>
<p class="MsoNormal">| state                     | alarm                                                            |<o:p></o:p></p>
<p class="MsoNormal">| insufficient_data_actions | []                                                               |<o:p></o:p></p>
<p class="MsoNormal">| repeat_actions            | True                                                             |<o:p></o:p></p>
<p class="MsoNormal">| ok_actions                | []                                                               |<o:p></o:p></p>
<p class="MsoNormal">| project_id                | 536518d5b38d4f3e9dcab26403d4d6e8                                 |<o:p></o:p></p>
<p class="MsoNormal">| type                      | threshold                                                        |<o:p></o:p></p>
<p class="MsoNormal">| description               | Threshholdvalue                                                  |<o:p></o:p></p>
<p class="MsoNormal">+---------------------------+------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal">root@Tcontroller:/var/log/ceilometer# ceilometer alarm-list                                                                   +------------------+----------------------+-------------------+---------+------------+--------------------------------------+----------------------------------+----------------------------------+<o:p></o:p></p>
<p class="MsoNormal">| Name             | Description          | State             | Enabled | Continuous | Alarm ID                             | User ID                          | Project ID                       |<o:p></o:p></p>
<p class="MsoNormal">+------------------+----------------------+-------------------+---------+------------+--------------------------------------+----------------------------------+----------------------------------+<o:p></o:p></p>
<p class="MsoNormal">| cpu_high_going   | instance running hot | insufficient data | True    | False      | f8718b08-4155-4477-b216-d81013dc5a8f | 2371a648e9fc415b8e9601e7acd503d8 | 536518d5b38d4f3e9dcab26403d4d6e8 |<o:p></o:p></p>
<p class="MsoNormal">| cpuutlization    | Threshholdvalue      | insufficient data | True    | True       | 0027e9f1-be4e-4088-8c2e-7febf9923453 | admin                            | 536518d5b38d4f3e9dcab26403d4d6e8 |<o:p></o:p></p>
<p class="MsoNormal">| lowcpuutlization | Threshholdvalue      | alarm             | True    | True       | 094fa622-b1f4-4b16-adf4-024ce89728e2 | admin                            | 536518d5b38d4f3e9dcab26403d4d6e8 |<o:p></o:p></p>
<p class="MsoNormal">| memory_over_load | Threshhold_value     | insufficient data | True    | False      | 6133d8de-670d-4c64-996b-930c9c843a2c | admin                            | 536518d5b38d4f3e9dcab26403d4d6e8 |<o:p></o:p></p>
<p class="MsoNormal">+------------------+----------------------+-------------------+---------+------------+--------------------------------------+----------------------------------+----------------------------------+<o:p></o:p></p>
<p class="MsoNormal">root@Tcontroller:/var/log/ceilometer#<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""><br>
</span><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Log file:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">root@Tcontroller:/var/log/ceilometer# tail -f ceilometer-alarm-notifier.log ceilometer-alarm-evaluator.log<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">its empty
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1F497D">L</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Mike Spreitzer [mailto:mspreitz@us.ibm.com]
<br>
<b>Sent:</b> Tuesday, March 18, 2014 9:58 PM<br>
<b>To:</b> openstack@lists.openstack.org<br>
<b>Subject:</b> Re: [Openstack] Ceilometer: alarm not generating<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Also try selecting for CPU<95% and apply no load; this will tell you whether the problem is about getting any data/evaluations/notifications at all or something else.</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Regards,</span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Mike</span> <br>
<br>
<br>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">From:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Bill Arnold/Watson/IBM@IBMUS</span>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">To:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif""><<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>>,
</span><br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">Date:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">03/18/2014 12:17 PM</span>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">Subject:        </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Re: [Openstack] Ceilometer:  alarm not generating</span>
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal"><br>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Do you mean to use the cpu meter not cpu_util?
<br>
Also, there is no filtering so the statistics query done by the alarm evaluator would return information for all vms.<br>
Try (roughly)<br>
ceilometer statistics -m cpu --period 60</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""><br>
-Bill Arnold</span><br>
<img border="0" width="16" height="16" id="_x0000_i1026" src="cid:image001.gif@01CF4365.604B76F0" alt="Inactive hide details for ---03/18/2014 03:24:34 AM---Hello All, I have configured Havana set up on Ubuntu 12.04 with Ceilomete"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#424282">---03/18/2014
 03:24:34 AM---Hello All, I have configured Havana set up on Ubuntu 12.04 with Ceilometer.</span><br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F"><br>
From: </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif""><<a href="mailto:m.channappa.negalur@accenture.com">m.channappa.negalur@accenture.com</a>><span style="color:#5F5F5F"><br>
To: </span><<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>>,
<span style="color:#5F5F5F"><br>
Date: </span>03/18/2014 03:24 AM<span style="color:#5F5F5F"><br>
Subject: </span>[Openstack] Ceilometer:  alarm not generating</span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal"><br>
<br>
<span style="font-size:10.0pt;font-family:"Calibri","sans-serif""><br>
Hello All, <br>
I have configured Havana set up on Ubuntu 12.04 with Ceilometer.<br>
<br>
Ceilometer is not producing any alarm even though condition is met , Below is the detail<br>
<br>
root@controller:/var/log/ceilometer# ceilometer alarm-threshold-create --name cpuutlization --project-id 536518d5b38d4f3e9dcab26403d4d6e8 --user-id admin --description Threshholdvalue --state alarm --enabled True --alarm-action 'log://' --meter-name cpu --period
 60 --evaluation-periods 1  --statistic avg --comparison-operator 'gt' --threshold 30 --repeat-actions True<br>
+---------------------------+------------------------------------------------------------------+<br>
| Property                  | Value                                                            |<br>
+---------------------------+------------------------------------------------------------------+<br>
| alarm_actions             | [u'log://']                                                      |<br>
| user_id                   | admin                                                            |<br>
| name                      | cpuutlization                                                    |<br>
| enabled                   | True                                                             |<br>
| rule                      | {u'meter_name': u'cpu', u'evaluation_periods': 1, u'period': 60, |<br>
|                           | u'statistic': u'avg', u'threshold': 30.0, u'query': [],          |<br>
|                           | u'comparison_operator': u'gt'}                                   |<br>
| alarm_id                  | eb56440e-2510-4be3-80b6-dfbd7262cfb2                             |<br>
| state                     | alarm                                                            |<br>
| insufficient_data_actions | []                                                               |<br>
| repeat_actions            | True                                                             |<br>
| ok_actions                | []                                                               |<br>
| project_id                | 536518d5b38d4f3e9dcab26403d4d6e8                                 |<br>
| type                      | threshold                                                        |<br>
| description               | Threshholdvalue                                                  |<br>
+---------------------------+------------------------------------------------------------------+<br>
<br>
I launched my stack and using stress command I increased cpu load , according to above condition once my condition met there should be some logs in my  ceilometer-alarm-evaluator.log ceilometer-alarm-notifier.log …but nothing is there in my log ..<br>
<br>
Is there any addition configurations need to be done ..?<br>
<br>
Regards,<br>
Malleshi C N </span><o:p></o:p></p>
<p><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray"><br>
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by
 you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of
 internal compliance with Accenture policy. <br>
______________________________________________________________________________________<br>
<br>
</span><a href="www.accenture.com"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">www.accenture.com</span></a><tt><span style="font-size:10.0pt">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>Mailing list: </tt></span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><span style="font-size:10.0pt">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</span></tt></a><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a></tt><br>
<tt>Unsubscribe : </tt></span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><span style="font-size:10.0pt">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</span></tt></a><tt><span style="font-size:10.0pt">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>Mailing list: </tt></span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><span style="font-size:10.0pt">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</span></tt></a><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a></tt><br>
<tt>Unsubscribe : </tt></span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><span style="font-size:10.0pt">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</span></tt></a><o:p></o:p></p>
</div>
</body>
</html>