[Xymon] alerts.cfg DURATION rule being ignored

Adam Thorn alt36 at cam.ac.uk
Wed Aug 5 18:19:29 CEST 2020


On 05/08/2020 16:18, Clovis Otteson wrote:
> Hello,
> 
> Our Xymon server is monitoring about a hundred hosts and has been doing 
> so nicely for years.  However DURATION rule is being ignored. I have 
> several lines like this in alerts.cfg:
> 
> SCRIPT <script location> <email address> SERVICE=replication 
> DURATION>30m REPEAT=30d COLOR=red,purple
> 
> Replication is a custom check. But the alert (scripted email) is being 
> sent as soon as the check goes red, not 30 minutes later. Any 
> suggestions as to why this could be? Using Xymon 4.3.30.

Is it possible that it's another line in alerts.cfg that is being 
matched? You can run xymond_alert in test mode to see what'll match, e.g.

/usr/lib/xymon/server/bin/xymond_alert --test host.example.com 
replication --color=red --duration=29

will show if you have any rules that are matching when the replication 
test for host.example.com has been red for 29 minutes.

Adam


More information about the Xymon mailing list