get data between alert
How to get data when alert started and during alert data changes.
eg. I am monitoring mysql slow queries which gets displayed on browser and yellow alert gets triggered. During yellow state the data changes, i see queries goes down and up. But in report i see only the data when alert started and when it recovered.
So how do get the data which changes in between alerts situation.
can anyone help?
On Thu, Jul 11, 2013 at 10:37 AM, deepak deore <deepakdeore2004 at gmail.com>wrote:
How to get data when alert started and during alert data changes.
eg. I am monitoring mysql slow queries which gets displayed on browser and yellow alert gets triggered. During yellow state the data changes, i see queries goes down and up. But in report i see only the data when alert started and when it recovered.
So how do get the data which changes in between alerts situation.
XYMON keeps results when a state change has occurred since the last time it did a test.
Your choices are:
- cause more state changes (probably not the best answer)
- as part of the alarm process, cause something to happen on the node in question that saves state periodically for you to review.
This could be done on the server when it responds to a yellow/red condition.
It could also be done on the client (add code to your monitor code to kick off a logging script whenever yellow/red states occur). If the logging is for a fixed period you are good. If you do it indefinitely, you could use green state to terminate logging.
-- Isaac Traxler AIX,Linux Admin Louisiana State University, LONI traxler at lsu.edu High Performance Computing 225-578-1923 Storage & Infrastructure
On Thu, 11 Jul 2013, deepak deore wrote:
Date: Thu, 11 Jul 2013 11:39:33 From: deepak deore <deepakdeore2004 at gmail.com> To: "xymon at xymon.com" <xymon at xymon.com> Subject: Re: [Xymon] get data between alert
can anyone help?
On Thu, Jul 11, 2013 at 10:37 AM, deepak deore <deepakdeore2004 at gmail.com> wrote: How to get data when alert started and during alert data changes. eg. I am monitoring mysql slow queries which gets displayed on browser and yellow alert gets triggered. During yellow state the data changes, i see queries goes down and up. But in report i see only the data when alert started and when it recovered.
So how do get the data which changes in between alerts situation.
can anyone help?
On Thu, Jul 11, 2013 at 10:37 AM, deepak deore <deepakdeore2004 at gmail.com>wrote:
How to get data when alert started and during alert data changes.
eg. I am monitoring mysql slow queries which gets displayed on browser and yellow alert gets triggered. During yellow state the data changes, i see queries goes down and up. But in report i see only the data when alert started and when it recovered.
So how do get the data which changes in between alerts situation.
By default, xymond only creates a snapshot (specifically: sends a copy of the current client report for a $HOST over the 'clichg' channel to the xymond_hostdata listener) when an ALERT threshold is crossed.
I'd considered a patch that would cause xymond to send a "spurious" clichg message on a regular basis while something is in an alert state persistently (eg, every half-hour snapshots), but this is really something that would have to be highly configurable for different installations...
A hack that can be done now is to create an otherwise-ignored status test for all hosts (eg, "tied"). On whatever frequency you want, send a "red" status in for the host on this test, followed by a green or clear status. This will cause xymond to save a snapshot in which should be visible from either the 'tied' service history dot, and/or an event log report for the host generally.
Regards,
-jc
participants (3)
-
cleaver@terabithia.org
-
deepakdeore2004@gmail.com
-
traxler@lsu.edu