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
-----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