Chris,
Good day
I have a test that determines I a remote web service is responding. The webservice is managed by someone outside of my environment.
The test fails a couple of times during the day, manual tests confirm that the xymon test is ok. The webservice will fail for maybe 30 to 60 minutes then will restore.
If the Xymon test runs while the service is unavailable, I will receive a alert and by the time I can investigate all is ok.
I added the DURATION>30 or DURATION>1h to the alerts.cnf to only send me alerts if the service has been down for a period of time, but I still receive the alert as soon as Xymon detects the problem.
Is there another way to delay alerts or do I have some error in my configs?
My alerts.cfg uses IGNORE
My alerts.cfg
==============
PAGE=%prod SERVICE=institution,wsdl
MAIL cellno-xymon at sms.domain.co.za <mailto:cellno-xymon at sms.domain.co.za> DURATION>1h REPEAT 30m COLOR=red FORMAT=SMS
SCRIPT /usr/lib/xymon/server/ext/smsplus.sh cell-xymon at sms.domain.co.za <mailto:cell-xymon at sms.domain.co.za> DURATION>1h REPEAT 30m COLOR=red
Try: PAGE=%prod SERVICE=institution,wsdl IGNORE DURATION<1h MAIL cellno-xymon at sms.domain.co.za REPEAT=30m COLOR=red FORMAT=SMS SCRIPT /usr/lib/xymon/server/ext/smsplus.sh cell-xymon at sms.domain.co.za REPEAT=30m COLOR=red David.
Set debug option in tasks.cfg
CMD xymond_channel --channel=page --log=$XYMONSERVERLOGS/alert.log xymond_alert --checkpoint-file=$XYMONTMP/alert.chk --checkpoint-interval=600 –debug
Alert.log
=======
10687 2013-03-07 09:29:30 xymond_alert: Got message 237 @@page#237/domain.co.za <http://domain.co.za>|1362641370.822859|196.14.77.34|domain.co.za <http://domain.co.za>|wsdl|196.14.77.34|1362643170|red|green|1362641370|prod|555815|linux|linux||
10687 2013-03-07 09:29:30 startpos 2171, fillpos 2171, endpos -1
10687 2013-03-07 09:29:30 Got page message from domain.co.za:wsdl
10687 2013-03-07 09:29:30 Alert status changed from 0 to 1
10687 2013-03-07 09:29:30 Found a first matching rule
10687 2013-03-07 09:29:30 No more secondary matching rule
10687 2013-03-07 09:29:30 No files modified, skipping reload of /usr/lib/xymon/server/etc/alerts.cfg
10687 2013-03-07 09:29:30 No files modified, skipping reload of /usr/lib/xymon/server/etc/holidays.cfg
10687 2013-03-07 09:29:30 Found a first matching rule
10687 2013-03-07 09:29:30 No more secondary matching rule
10687 2013-03-07 09:29:30 Found a first matching rule
10687 2013-03-07 09:29:30 1 alerts to go
12977 2013-03-07 09:29:30 send_alert domain.co.za:wsdl state 0
12977 2013-03-07 09:29:30 Found a first matching rule
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|mail|operations at domain.co.za <mailto:operations at domain.co.za> at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to operations at domain.co.za <mailto:operations at domain.co.za>
10687 2013-03-07 09:29:30 Found a first matching rule
10687 2013-03-07 09:29:30 No more secondary matching rule
10687 2013-03-07 09:29:30 Want msg 238, startpos 2171, fillpos 2171, endpos -1, usedbytes=0, bufleft=264068
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|mail|REPEAT at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to REPEAT
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|mail|30m at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to 30m
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|mail|cellno-xymon at sms.conclude.co.za <mailto:cellno-xymon at sms.conclude.co.za> at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to cellno-xymon at sms.conclude.co.za <mailto:cellno-xymon at sms.conclude.co.za>
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|mail|REPEAT at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to REPEAT
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|mail|30m at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to 30m
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|script|cellno-xymon at sms.conclude.co.za <mailto:cellno-xymon at sms.conclude.co.za> at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to cellno-xymon at sms.conclude.co.za <mailto:cellno-xymon at sms.conclude.co.za>
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|script|REPEAT at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to REPEAT
12977 2013-03-07 09:29:30 repeat domain.co.za <http://domain.co.za>|wsdl|script|30m at 0
12977 2013-03-07 09:29:30 Alert for domain.co.za:wsdl to 30m
12977 2013-03-07 09:29:30 No more secondary matching rule
Kind Regards,
Chris Pretorius
Systems Administrator
logo small
*/Your market gateway/*
*/ /*
Southdowns Office Park, Block B 2^nd Floor SF02, Cnr John Vorster Drive & Karee Street, Highveld, Centurion
Tel:012 684 6600 dot red Fax: 012 684 6629 dot red
Email: chris.pretorius at signio.co.za <mailto:chris.pretorius at signio.co.za> dot red Web: www.signio.co.za <http://www.signio.co.za/>
3
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify us via email : support at signio.co.za <mailto:support at signio.co.za> .
Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Signio (PTY) LTD, Reg Nr: 2003/001508/07
_______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
-- David Baldwin - Senior Systems Administrator (Datacentres + Networks) Information and Communication Technology Services Australian Sports Commission http://ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 david.baldwin at ausport.gov.au Leverrier Street Bruce ACT 2617 ------------------------------------------------------------------------------------- Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. -------------------------------------------------------------------------------------