[Xymon] question on DURATION and DOWNSECS in alerts
Kevin VerMeer
KVerMeer at peoplenetonline.com
Mon Apr 7 22:09:06 CEST 2014
I have verified with the $CFID variable that the alert rule in effect is the SCRIPT line below.
I had changed it to be specific on minutes.
HOST=* SERVICE=conn COLOR=red
SCRIPT /usr/local/xymonutil/alertscripts/noconnectivity.sh DURATION>15m REPEAT=15m RECOVERED
The script is in fact getting called upon initial loss of connectivity and not waiting 15 minutes
The REPEAT setting does appear to be functioning as desired, getting invoked every 15 minutes.
This would be easy enough to code into the script, in that the DOWNSECS could be checked and processing stopped if the value is less than 900, but that seems to be defeating the purpose of this, and probably indicates something else is going on.
If anyone has other thought or things to check, let me know.
Thanks.
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Carl Inglis
Sent: Monday, April 07, 2014 2:04 PM
To: xymon at xymon.com
Subject: Re: [Xymon] question on DURATION and DOWNSECS in alerts
http://www.xymon.com/xymon/help/manpages/man8/xymond_alert.8.html:
"--cfid
If this option is present, alert messages will include a line with "cfid:N" where N is the linenumber in the alerts.cfg file that caused this message to be sent."
So for example, one of my recent alert messages has this as the subject line:
"Xymon [41173] lin-sharepnt-01:disk warning (YELLOW) [cfid:161]"
Add --cfid to the CMD in the [alerts] section of tasks.cfg
Regards,
Carl
Carl Inglis
Systems Administrator
Rakon UK Limited
Dowsett House, Sadler Road, Lincoln LN6 3RS, United Kingdom
Tel: +44 1522 812630 | Fax: +44 1522 812664 | Mob: +44 7786 552915 Carl.Inglis at rakon.com | www.rakon.com
-----Original Message-----
From: Kevin VerMeer [mailto:KVerMeer at peoplenetonline.com]
Sent: 07 April 2014 17:00
To: Carl Inglis
Subject: RE: [Xymon] question on DURATION and DOWNSECS in alerts
I checked my alerts.cfg and don't think this is the cause, but it's a good theory.
How/where is the --cfid option set? Having this set may lead me closer to the issue.
And where is the output sent?
Much appreciated.
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Carl Inglis
Sent: Monday, April 07, 2014 10:39 AM
To: xymon at xymon.com
Subject: Re: [Xymon] question on DURATION and DOWNSECS in alerts
I had a similar problem and what helped me track it down was the --cfid option to xymond_alert. I found the rule I thought was firing wasn't the rule that was actually firing - it was a catch-all that I'd left in by mistake.
Hope that helps.
Carl
Carl Inglis
Systems Administrator
Rakon UK Limited
Dowsett House, Sadler Road, Lincoln LN6 3RS, United Kingdom
Tel: +44 1522 812630 | Fax: +44 1522 812664 | Mob: +44 7786 552915 Carl.Inglis at rakon.com | www.rakon.com
THE QUEENS AWARDS FOR ENTERPRISE 2012
Rakon UK Ltd
This message together with any attachments contains confidential information and may be subject to privilege. If you are not the intended recipient you may not distribute it in any way, you must notify the sender immediately and delete any copies of the message along with its attachments.
Rakon UK Ltd is a limited company registered in England and Wales.
Registered Office: Dowsett House, Sadler Road, Lincoln LN6 3RS Company Registration Number: 5128090.
Please be aware that Rakon UK Limited may monitor email traffic data including the date, time, subject line, sender and recipients for the purposes of security and usage monitoring. Automated monitoring systems may also be applied to ascertain whether incoming/outgoing emails are likely to contain viruses, other destructive devices or inappropriate content.
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Kevin VerMeer
Sent: 07 April 2014 16:23
To: J.C. Cleaver
Cc: xymon at xymon.com
Subject: Re: [Xymon] question on DURATION and DOWNSECS in alerts
We are just starting with our Xymon setup, so I pretty much assume any issues are on our/my end.
We are running 4.3.13.
It does not appear to be waiting 15m before sending.
The default is minutes, correct?
-----Original Message-----
From: J.C. Cleaver [mailto:cleaver at terabithia.org]
Sent: Monday, April 07, 2014 10:01 AM
To: Kevin VerMeer
Cc: xymon at xymon.com
Subject: Re: [Xymon] question on DURATION and DOWNSECS in alerts
On Mon, April 7, 2014 5:55 am, Kevin VerMeer wrote:
> I have a question on what I am seeing in some of the alerts being
> generated.
> I have a xymon alert script set up for connection events.
> The alert.cfg entry is:
> HOST=* SERVICE=conn COLOR=red
> SCRIPT /usr/local/xymonutil/alertscripts/noconnectivity.sh
> DURATION>15 REPEAT=15 RECOVERED
>
> To me that says the script should only be invoked if connectivity is
> down for 15 minutes, repeat every 15 if still down, and one final time
> when connectivity is back up.
>
> Within the script that gets invoked, a message gets creates like this:
> MSG="Xymon is reporting no connectivty to $STATION.\n Current time:
> $DATE.\n Number of seconds down: $DOWNSECS. \n Time down: $TIMEDOWN. \n"
>
> And one MSG that is generated is
> Xymon is reporting no connectivty to sta10143.
> Current time: 04/06/14 18:00:55.
> Number of seconds down: 60.
> Time down: 00:01:00.
>
> I would have expected the $DOWNSECS variable to be the total time
> down, even including the original 15 minute DURATION.
> Is that thinking correct? Or does DOWNSECS only include the time down
> after the DURATION kicks in?
> Or am I off base on something else?
>
Kevin,
We're doing something similar and - AFAIK - $DOWNSECS is indeed the total duration of the incident (although this may be subject to any flap detection that's enabled).
Q's:
What version are you running?
and Does it actually wait 15m before sending the first message?
Regards,
-jc
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
More information about the Xymon
mailing list