Xymon Mailing List Archive search

DelayPurple Tag doesnt work - Any Other way to Delay Purple?

2 messages in this thread

list FreeSoftwareServers · Wed, 23 Nov 2016 10:27:34 -0500 ·
Based on the Man page for hosts.cfg, I read about delayred, so I tried
delaypurple, which I want to delay for an hour.

 
This is not working, and based on the "Default Host" part, I think it's not
a code error, I think that only delayred/yellow exist. 

 
Is there a way to delay purple for a single check for an hour>?

 
NOTE: The ".default." host entry will only accept the following tags -
others are silently ignored: delayyellow, delayred, NOCOLUMNS, COMMENT,
DESCR, CLASS, dialup, testip, nonongreen, nodisp, noinfo, notrends,
noclient, TRENDS, NOPROPRED, NOPROPYELLOW, NOPROPPURPLE, NOPROPACK,
REPORTTIME, WARNPCT, NET, noclear, nosslcert, ssldays, DOWNTIME, depends,
noping, noconn, trace, notrace, HIDEHTTP, browser, pulldata. Specifically,
note that network tests, "badTEST" settings, and alternate pageset relations
cannot be listed on the ".default." host.
list John Thurston · Mon, 28 Nov 2016 10:47:19 -0900 ·
quoted from FreeSoftwareServers
On 11/23/2016 6:27 AM, FreeSoftwareServers wrote:
Based on the Man page for hosts.cfg, I read about delayred, so I tried
*_delaypurple_*, which I want to delay for an hour.


This is not working, and based on the “Default Host” part, I think it’s
not a code error, I think that only delayred/yellow exist.


Is there a way to delay purple for a single check for an hour>?
"purple" is a state reached when no message is received from a client for specified amount of time. The default for most messages is 30 minutes. If the server doesn't receive a status update for a test for 31 minutes, the test is reported as purple.

If you would like this interval to longer, it is governed by the client. The message sent from the client should contain the desired interval.

See the xymon "communication client" man page:
XYMON MESSAGE SYNTAX
status[+LIFETIME][/group:GROUP] HOSTNAME.TESTNAME COLOR <more text>

The "+LIFETIME" is what you need to specify. A message of the form:
  status foo.bar.com.mytest green "A OK"
Will set the test "mytest" green on host foo.bar.com. It will turn purple in 30 minutes if no new message is received.
  status+60 baz.bar.com.yourtest red "BAD THINGS"
Will set "yourtest" red for host baz.bar.com and it will turn purple after 60 minutes.
-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska