Feature request - thresholds for CPU utilisation (not load average)
I see that Buchan asked for this a few years back. Has anyone done this. I would like to start alerting on %CPU not LOAD. I would still like to graph LOAD and have that show up under trends. The % CPU is already in Trends being graphed it would be nice just to pull that over to the CPU column.
Here is the first request: http://lists.xymon.com/archive/2008-February/017968.html
Thanks
Bill Richardson
On 07-12-2011 17:13, Bill Richardson wrote:
I see that Buchan asked for this a few years back. Has anyone done this. I would like to start alerting on %CPU not LOAD. I would still like to graph LOAD and have that show up under trends. The % CPU is already in Trends being graphed it would be nice just to pull that over to the CPU column.
In 4.3.x, add this to your analysis.cfg:
HOST=foo DS cpu vmstat.rrd:cpu_idl >=25 COLOR=green TEXT="CPU load normal" DS cpu vmstat.rrd:cpu_idl <25 COLOR=yellow TEXT="High CPU load" DS cpu vmstat.rrd:cpu_idl <10 COLOR=red TEXT="Critical CPU load"
Regards, Henrik
On Wed, Dec 7, 2011 at 4:50 PM, Henrik Størner <henrik at hswn.dk> wrote:
On 07-12-2011 17:13, Bill Richardson wrote:
I see that Buchan asked for this a few years back. Has anyone done this. I would like to start alerting on %CPU not LOAD. I would still like to graph LOAD and have that show up under trends. The % CPU is already in Trends being graphed it would be nice just to pull that over to the CPU column.
In 4.3.x, add this to your analysis.cfg:
HOST=foo DS cpu vmstat.rrd:cpu_idl >=25 COLOR=green TEXT="CPU load normal" DS cpu vmstat.rrd:cpu_idl <25 COLOR=yellow TEXT="High CPU load" DS cpu vmstat.rrd:cpu_idl <10 COLOR=red TEXT="Critical CPU load"
FYI: The column name is missing in the DS example in the docs:
Example: Flag "conn" status a yellow if responsetime exceeds 100 msec. .br DS tcp.conn.rrd:sec >0.1 COLOR=yellow TEXT="Response time &V exceeds &U seconds"
Ralph Mitchell
On Thu, Dec 8, 2011 at 8:41 AM, <henrik at hswn.dk> wrote:
On Thu, 8 Dec 2011 08:32:59 -0500, Ralph Mitchell <ralphmitchell at gmail.com> wrote:
FYI: The column name is missing in the DS example in the docs:
Thanks - fixed.
Also, when I put in
TEXT="cpu load....."
the opening double-quote shows in the display. Putting the double-quote before the TEXT:
"TEXT=cpu load......"
makes it come out OK. I don't know if that's a documentation issue or something in the code that processes analysis.cfg.
Thanks!
Ralph Mitchell
Great info... Having the ability to alert on the rrd data is great!
Thank you!
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Ralph Mitchell Sent: Thursday, December 08, 2011 8:33 AM To: Henrik Størner Cc: xymon at xymon.com Subject: Re: [Xymon] Feature request - thresholds for CPU utilisation (not load average)
On Wed, Dec 7, 2011 at 4:50 PM, Henrik Størner <henrik at hswn.dk<mailto:henrik at hswn.dk>> wrote: On 07-12-2011 17:13, Bill Richardson wrote: I see that Buchan asked for this a few years back. Has anyone done this. I would like to start alerting on %CPU not LOAD. I would still like to graph LOAD and have that show up under trends. The % CPU is already in Trends being graphed it would be nice just to pull that over to the CPU column.
In 4.3.x, add this to your analysis.cfg:
HOST=foo DS cpu vmstat.rrd:cpu_idl >=25 COLOR=green TEXT="CPU load normal" DS cpu vmstat.rrd:cpu_idl <25 COLOR=yellow TEXT="High CPU load" DS cpu vmstat.rrd:cpu_idl <10 COLOR=red TEXT="Critical CPU load"
FYI: The column name is missing in the DS example in the docs:
Example: Flag "conn" status a yellow if responsetime exceeds 100 msec. .br DS tcp.conn.rrd:sec >0.1 COLOR=yellow TEXT="Response time &V exceeds &U seconds"
Ralph Mitchell
participants (3)
-
henrik@hswn.dk
-
ralphmitchell@gmail.com
-
wrichardson@llbean.com