<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=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.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=MsoPlainText>Hi JC,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I don't see a lot of messages in /var/log/xymon, but I do see some messages in the messages log:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='font-size:8.0pt;font-family:"Courier New"'>Dec 30 10:00:39 vipservd kernel: type=1400 audit(1388415639.785:228): avc:  denied  { read } for  pid=22630 comm="httpd" name="xymon.html" dev=dm-0 ino=156411 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:8.0pt;font-family:"Courier New"'>30 10:00:39 vipservd kernel: __ratelimit: 39 callbacks suppressed<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:8.0pt;font-family:"Courier New"'>Dec 30 10:00:39 vipservd kernel: type=1400 audit(1388415639.768:226): avc:  denied  { search } for  pid=22630 comm="httpd" name="xymon" dev=dm-0 ino=162241 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:8.0pt;font-family:"Courier New"'>Dec 30 10:00:39 vipservd kernel: type=1400 audit(1388415639.785:227): avc:  denied  { search } for  pid=22630 comm="httpd" name="server" dev=dm-0 ino=162242 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:8.0pt;font-family:"Courier New"'>Dec 30 10:00:39 vipservd kernel: type=1400 audit(1388415639.785:228): avc:  denied  { read } for  pid=22630 comm="httpd" name="xymon.html" dev=dm-0 ino=156411 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:8.0pt;font-family:"Courier New"'>Dec 30 10:00:39 vipservd kernel: type=1400 audit(1388415639.785:229): avc:  denied  { open } for  pid=22630 comm="httpd" name="xymon.html" dev=dm-0 ino=156411 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file<o:p></o:p></span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Would I just execute the strace like so:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText style='margin-left:.5in'>strace ./xymon.sh<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>David Diep <o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><SPAN style="FONT-FAMILY: 'Arial Narrow','sans-serif'; COLOR: red"><SPAN 
style="FONT-FAMILY: 'Arial Narrow','sans-serif'; COLOR: red"><FONT size=2><SPAN 
style="FONT-FAMILY: 'Arial Narrow','sans-serif'; COLOR: red">
<P style="MARGIN: 0in -49.5pt 0pt 0in" class=MsoNormal><FONT color=#0080ff 
face=Calibri><FONT size=3><STRONG> </STRONG></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN 
style="FONT-SIZE: 12pt"><FONT color=#000000>Look out for those in need this 
winter. When the temperature or wind chill is 32°F or below, the District issues 
a Hypothermia Alert. For assistance during an Alert, call the </FONT><A 
href="http://dhs.dc.gov/page/hypothermia-alert-plan"><FONT color=#0000ff>Shelter 
Hotline</FONT></A><FONT color=#000000> at <STRONG>1-800-535-7252</STRONG> or 
<STRONG>311</STRONG>.<o:p></o:p></FONT></SPAN></P></FONT></FONT></SPAN></FONT></SPAN></SPAN><br><p class=MsoPlainText>-----Original Message-----<br>From: J.C. Cleaver [mailto:cleaver@terabithia.org] <br>Sent: Thursday, December 26, 2013 5:11 PM<br>To: Diep, David (OCTO-Contractor)<br>Cc: xymon@xymon.com<br>Subject: Re: [Xymon] xymond_channel consuming a lot of CPU?</p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>On Mon, December 23, 2013 11:26 am, Diep, David (OCTO-Contractor) wrote:<o:p></o:p></p><p class=MsoPlainText>> Hi,<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> I saw a little bit about this back in 8/31/12 <o:p></o:p></p><p class=MsoPlainText>> (<a href="http://lists.xymon.com/archive/2012-August/035381.html"><span style='color:windowtext;text-decoration:none'>http://lists.xymon.com/archive/2012-August/035381.html</span></a>), but it was <o:p></o:p></p><p class=MsoPlainText>> never resolved? Has anyone else seen xymond_channel consuming so much CPU time?<o:p></o:p></p><p class=MsoPlainText>> I can't imagine this being normal.<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> top - 14:07:56 up 6 days,  2:52,  1 user,  load average: 0.97, 0.63, 0.58<o:p></o:p></p><p class=MsoPlainText>> Tasks: 117 total,   2 running, 115 sleeping,   0 stopped,   0 zombie<o:p></o:p></p><p class=MsoPlainText>> Cpu(s): 22.7%us, 26.7%sy,  0.0%ni, 49.5%id,  0.3%wa,  0.2%hi,  0.0%si, <o:p></o:p></p><p class=MsoPlainText>> 0.7%st<o:p></o:p></p><p class=MsoPlainText>> Mem:    245792k total,   235308k used,    10484k free,     9248k buffers<o:p></o:p></p><p class=MsoPlainText>> Swap:  1304648k total,    96604k used,  1208044k free,    44164k cached<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND<o:p></o:p></p><p class=MsoPlainText>> 24914 xymon     20   0  7080 1388 1148 R 98.7  0.6  22:59.70<o:p></o:p></p><p class=MsoPlainText>> xymond_channel<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Hi David,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>That much CPU time definitely isn't normal... Were you able to get an strace or see anything in the logs from around when that was happening.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>The only thing that immediately comes to mind might be some sort of semaphore/IPC issue causing it to spin on incoming channel messages from xymond.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Regards,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>-jc<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p></div></body></html>