Xymon Mailing List Archive search

Red alert delay.

list Eli
Wed, 08 Apr 2015 22:01:18 -0600
Message-Id: <user-f35ac7d1bb63@xymon.invalid>

Thanks Phil, I am looking delay on color change not on alarm. I have script monitoring the color change and act on it. 

Sent from my Verizon Wireless 4G LTE DROID

Phil Crooker <user-e8e31cd73303@xymon.invalid> wrote:
Hi all,
I do want to delay CPU load red alert. As you know the default yellow or red based on the >threshold number but I want that include time delay. If the CPU load 9 and stay like that for 15 >min the color to change red instead of turn red immidiatly reach 8.

Current setup

Load. 6.0 9.0

For idle

DS CPU vmstat.rrd:CPU_IDL <10 color=red "TEXT=CPU usage critical"

Thanks
Have a look at the help text in alerts.cfg. You can use the DURATION flag:

# A sample rule:
#
# HOST=www.foo.com SERVICE=http
#      MAIL user-dd28c5cb1c5a@xymon.invalid REPEAT=20 RECOVERED
#      MAIL user-d0a7de99275f@xymon.invalid DURATION>60 COLOR=red
#      SCRIPT /usr/local/bin/sendsms 1234567890 FORMAT=SMS

cheers.
-- 

This message from ORIX Australia might contain confidential and/or
privileged information. If you are not the intended recipient, any use,
disclosure or copying of this message (or of any attachments to it) is
not authorised.

If you have received this message in error, please notify the sender
immediately and delete the message and any attachments from your
system. Please inform the sender if you do not wish to receive future
communications by email.

ORIX handles personal information according to a Privacy Policy that is
consistent with the National Privacy Principles. Please let us know if
you would like a copy. It is also available at http://www.orix.com.au .