[Xymon] xymond_channel consuming a lot of CPU?

Diep, David (OCTO-Contractor) David.Diep at dc.gov
Mon Dec 30 16:10:47 CET 2013


Hi JC,



I don't see a lot of messages in /var/log/xymon, but I do see some messages in the messages log:



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

30 10:00:39 vipservd kernel: __ratelimit: 39 callbacks suppressed

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

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

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

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



Would I just execute the strace like so:



strace ./xymon.sh



David Diep





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 Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan> at 1-800-535-7252 or 311.


-----Original Message-----
From: J.C. Cleaver [mailto:cleaver at terabithia.org]
Sent: Thursday, December 26, 2013 5:11 PM
To: Diep, David (OCTO-Contractor)
Cc: xymon at xymon.com
Subject: Re: [Xymon] xymond_channel consuming a lot of CPU?



On Mon, December 23, 2013 11:26 am, Diep, David (OCTO-Contractor) wrote:

> Hi,

>

> I saw a little bit about this back in 8/31/12

> (http://lists.xymon.com/archive/2012-August/035381.html), but it was

> never resolved? Has anyone else seen xymond_channel consuming so much CPU time?

> I can't imagine this being normal.

>

>

> top - 14:07:56 up 6 days,  2:52,  1 user,  load average: 0.97, 0.63, 0.58

> Tasks: 117 total,   2 running, 115 sleeping,   0 stopped,   0 zombie

> Cpu(s): 22.7%us, 26.7%sy,  0.0%ni, 49.5%id,  0.3%wa,  0.2%hi,  0.0%si,

> 0.7%st

> Mem:    245792k total,   235308k used,    10484k free,     9248k buffers

> Swap:  1304648k total,    96604k used,  1208044k free,    44164k cached

>

>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND

> 24914 xymon     20   0  7080 1388 1148 R 98.7  0.6  22:59.70

> xymond_channel





Hi David,



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.



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.





Regards,



-jc


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131230/3faab338/attachment.html>


More information about the Xymon mailing list