Xymon Mailing List Archive search

trigger an alert from the response time of a network service

8 messages in this thread

list Olivier Audry · Thu, 13 Oct 2011 14:17:01 +0200 (CEST) ·
hello Guys

what about this in the 4.3 changelog

* Data going into graphs can now be used to alter a status,
  e.g. to trigger an alert from the response time of a network
  service.

where can I find the documentation about this ?

thx

oau
list Henrik Størner · Thu, 13 Oct 2011 14:40:06 +0200 ·
On Thu, 13 Oct 2011 14:17:01 +0200 (CEST), Olivier AUDRY
<user-0dc286edb094@xymon.invalid>
quoted from Olivier Audry
wrote:
* Data going into graphs can now be used to alter a status,
  e.g. to trigger an alert from the response time of a network
  service.

where can I find the documentation about this ?
See the analysis.cfg(5) man-page, the section on "DS" checks.


Regards,
Henrik
list Olivier Audry · Thu, 13 Oct 2011 15:03:35 +0200 ·
Great thx for your quick answer.
quoted from Henrik Størner

user-ce4a2c883f75@xymon.invalid a écrit :
On Thu, 13 Oct 2011 14:17:01 +0200 (CEST), Olivier AUDRY
<user-0dc286edb094@xymon.invalid>
wrote:
* Data going into graphs can now be used to alter a status,
  e.g. to trigger an alert from the response time of a network
  service.

where can I find the documentation about this ?
See the analysis.cfg(5) man-page, the section on "DS" checks.


Regards,
Henrik

list Scot Kreienkamp · Thu, 13 Oct 2011 17:45:33 +0000 ·
Good timing, I've been playing with this for a while and haven't been able to get it to work.  

Here's my analysis.cfg entry:

HOST=connect-mn.localhost
        DS trends cmrtgusers.connect-mn.rrd:ds0 > 30 COLOR=yellow TEXT="Exceeding 30 logged in users"

I was sending it to trends because the rrd that I want to alert on doesn't have its own test.  I also tried conn and another one that doesn't exist.  The cmrtgusers.connect-mn.rrd exists in /home/hobbit/data/rrd/connect-mn.localhost, and I am getting a graph on the trends page for it with data.

<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1318527476 </lastupdate> <!-- 2011-10-13 13:37:56 EDT -->

        <ds>
                <name> ds0 </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> 1.2500000000e+03 </max>

                <!-- PDP Status -->
                <last_ds> 33 </last_ds>
                <value> 5.8080000000e+03 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

The current value is 33, so the analysis.cfg entry should be triggered.  Any ideas on why it's not working?  I'm using 4.3.2.  Or is it not in 4.3.2?  Didn't think of that until now.  

Thanks!

Scot Kreienkamp
user-462cf0b6d846@xymon.invalid
quoted from Olivier Audry


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of user-ce4a2c883f75@xymon.invalid
Sent: Thursday, October 13, 2011 8:40 AM
To: xymon at xymon.com
Subject: Re: [Xymon] trigger an alert from the response time of a network service

On Thu, 13 Oct 2011 14:17:01 +0200 (CEST), Olivier AUDRY
<user-0dc286edb094@xymon.invalid>
wrote:
* Data going into graphs can now be used to alter a status,
  e.g. to trigger an alert from the response time of a network
  service.

where can I find the documentation about this ?
See the analysis.cfg(5) man-page, the section on "DS" checks.


Regards,
Henrik
list Henrik Størner · Thu, 13 Oct 2011 22:59:22 +0200 ·
quoted from Scot Kreienkamp
On 13-10-2011 19:45, Scot Kreienkamp wrote:
Good timing, I've been playing with this for a while and haven't been
able to get it to work.

Here's my analysis.cfg entry:

HOST=connect-mn.localhost DS trends cmrtgusers.connect-mn.rrd:ds0 > 30 COLOR=yellow TEXT="Exceeding 30 logged in users"

I was sending it to trends because the rrd that I want to alert on
doesn't have its own test.  I also tried conn and another one that
doesn't exist.  The cmrtgusers.connect-mn.rrd exists in
/home/hobbit/data/rrd/connect-mn.localhost, and I am getting a graph
on the trends page for it with data.
The "trends" column cannot change color, it will always be green.

I am not sure, but I think you shouldn't have any space between the '>' 
and '30'. It would be pretty bad for the parser to trip on that, so if 
that is the problem please let me know so I can look at improving it.


Regards,
Henrik
list Scot Kreienkamp · Fri, 14 Oct 2011 15:45:59 +0000 ·
Hi Henrik, thanks for the help.

OK, I changed it to this:

DS conn cmrtgusers.connect-mn.rrd:ds0 >3 COLOR=yellow TEXT="Exceeding 30 logged in users"

So there is no space between the greater than and 30, then dropped the 30 down to three to make sure it would get hit.  Still nothing.  Is there a debug that I can turn on and look into it further?

Scot Kreienkamp
Senior Systems Engineer
quoted from Henrik Størner
user-462cf0b6d846@xymon.invalid


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Henrik Størner
Sent: Thursday, October 13, 2011 4:59 PM
To: xymon at xymon.com
Subject: Re: [Xymon] trigger an alert from the response time of a network service

On 13-10-2011 19:45, Scot Kreienkamp wrote:
Good timing, I've been playing with this for a while and haven't been
able to get it to work.

Here's my analysis.cfg entry:

HOST=connect-mn.localhost DS trends cmrtgusers.connect-mn.rrd:ds0 > 30 COLOR=yellow TEXT="Exceeding 30 logged in users"

I was sending it to trends because the rrd that I want to alert on
doesn't have its own test.  I also tried conn and another one that
doesn't exist.  The cmrtgusers.connect-mn.rrd exists in
/home/hobbit/data/rrd/connect-mn.localhost, and I am getting a graph
on the trends page for it with data.
The "trends" column cannot change color, it will always be green.

I am not sure, but I think you shouldn't have any space between the '>' 
and '30'. It would be pretty bad for the parser to trip on that, so if 
that is the problem please let me know so I can look at improving it.


Regards,
Henrik
list Paul Root · Fri, 14 Oct 2011 11:08:53 -0500 ·
Take the space out from in front of the > as well. Would be my guess.

Paul Root    - Engineer III
Managed Services Systems - CenturyLink

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of Scot Kreienkamp
Sent: Friday, October 14, 2011 10:46 AM
To: Henrik Størner; xymon at xymon.com
quoted from Scot Kreienkamp
Subject: Re: [Xymon] trigger an alert from the response time of a
network service

Hi Henrik, thanks for the help.

OK, I changed it to this:

DS conn cmrtgusers.connect-mn.rrd:ds0 >3 COLOR=yellow TEXT="Exceeding
30 logged in users"

So there is no space between the greater than and 30, then dropped the
30 down to three to make sure it would get hit.  Still nothing.  Is
there a debug that I can turn on and look into it further?

Scot Kreienkamp
Senior Systems Engineer
user-462cf0b6d846@xymon.invalid


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of Henrik Størner
Sent: Thursday, October 13, 2011 4:59 PM
To: xymon at xymon.com
Subject: Re: [Xymon] trigger an alert from the response time of a
network service

On 13-10-2011 19:45, Scot Kreienkamp wrote:
Good timing, I've been playing with this for a while and haven't been
able to get it to work.

Here's my analysis.cfg entry:

HOST=connect-mn.localhost DS trends cmrtgusers.connect-mn.rrd:ds0 >
30 COLOR=yellow TEXT="Exceeding 30 logged in users"
I was sending it to trends because the rrd that I want to alert on
doesn't have its own test.  I also tried conn and another one that
doesn't exist.  The cmrtgusers.connect-mn.rrd exists in
/home/hobbit/data/rrd/connect-mn.localhost, and I am getting a graph
on the trends page for it with data.
The "trends" column cannot change color, it will always be green.

I am not sure, but I think you shouldn't have any space between the '>'
and '30'. It would be pretty bad for the parser to trip on that, so if
that is the problem please let me know so I can look at improving it.


Regards,
Henrik

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful.  If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
list Scot Kreienkamp · Fri, 14 Oct 2011 20:34:21 +0000 ·
Tried that today also, no joy.
quoted from Paul Root

Scot Kreienkamp
user-462cf0b6d846@xymon.invalid


-----Original Message-----
From: Root, Paul [mailto:user-76fdb6883669@xymon.invalid] 
Sent: Friday, October 14, 2011 12:09 PM
To: Scot Kreienkamp; Henrik Størner; xymon at xymon.com
Subject: RE: [Xymon] trigger an alert from the response time of a network service

Take the space out from in front of the > as well. Would be my guess.

Paul Root    - Engineer III
Managed Services Systems - CenturyLink

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of Scot Kreienkamp
Sent: Friday, October 14, 2011 10:46 AM
To: Henrik Størner; xymon at xymon.com
Subject: Re: [Xymon] trigger an alert from the response time of a
network service

Hi Henrik, thanks for the help.

OK, I changed it to this:

DS conn cmrtgusers.connect-mn.rrd:ds0 >3 COLOR=yellow TEXT="Exceeding
30 logged in users"

So there is no space between the greater than and 30, then dropped the
30 down to three to make sure it would get hit.  Still nothing.  Is
there a debug that I can turn on and look into it further?

Scot Kreienkamp
Senior Systems Engineer
user-462cf0b6d846@xymon.invalid


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of Henrik Størner
Sent: Thursday, October 13, 2011 4:59 PM
To: xymon at xymon.com
Subject: Re: [Xymon] trigger an alert from the response time of a
network service

On 13-10-2011 19:45, Scot Kreienkamp wrote:
Good timing, I've been playing with this for a while and haven't been
able to get it to work.

Here's my analysis.cfg entry:

HOST=connect-mn.localhost DS trends cmrtgusers.connect-mn.rrd:ds0 >
30 COLOR=yellow TEXT="Exceeding 30 logged in users"
I was sending it to trends because the rrd that I want to alert on
doesn't have its own test.  I also tried conn and another one that
doesn't exist.  The cmrtgusers.connect-mn.rrd exists in
/home/hobbit/data/rrd/connect-mn.localhost, and I am getting a graph
on the trends page for it with data.
The "trends" column cannot change color, it will always be green.

I am not sure, but I think you shouldn't have any space between the '>'
and '30'. It would be pretty bad for the parser to trip on that, so if
that is the problem please let me know so I can look at improving it.


Regards,
Henrik

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful.  If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.