[Xymon] Double, triple notifications
Larry Bonham
larry at fni-stl.com
Wed Oct 1 16:44:06 CEST 2014
Andrey,
I'm running on RHEL 6.5 xymon version 4.3.17.
I'm having a similar problem but only on recovery notices. Alert picks up the correct rule and stops. Recover hits that rule then continues on down the list and will then duplicate on my catch all default rule. This isn't on all alert recoveries. Appears to only happen on "server" names that have an underscore or dash in it. I'm just starting to dig in and experiment with it.
One thing that is really helpful in diagnosing alerts.cfg is adding the --cfid option to tasks.cfg xymond_channel.
[alert]
ENVFILE /data/xymon/server/etc/xymonserver.cfg
NEEDS xymond
CMD xymond_channel --channel=page \
--log=$XYMONSERVERLOGS/alert.log \
xymond_alert \
--checkpoint-file=$XYMONTMP/alert.chk \
--checkpoint-interval=600 \
--debug \
--cfid
That will put the alerts.cfg line number at the end of the alert email subject line. "cat -n alerts.cfg" gives you a nice display of all line numbers.
Single alert notice.
Xymon [6578] PHX_FIKE:trouble CRITICAL (RED) [cfid:243]
Duplicate recovery notices.
Xymon PHX_FIKE:trouble recovered [cfid:243]
Xymon PHX_FIKE:trouble recovered [cfid:432]
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Andrey Chervonets
Sent: Wednesday, October 01, 2014 7:36 AM
To: xymon at xymon.com
Subject: [Xymon] Double, triple notifications
For some tests and hosts I receive several notification copies (identical) - sometimes two, sometimes three.
I had reviewed the configuration, but can not detect where is the problem.
1) How can I debug which rule worked out for each copy?
2) Feature request - I suppose it should be quite easy to avoid redundant notification copies before sending,
for example using
cat (rows-list of recepients) | sort | uniq
P.S. XyMon version 4.3.17 on CentOS (64-bit) if this makes sense.
Best regards,
Andrey Chervonets
----------------------
SIA CoMinder
http://www.cominder.eu/
________________________________
CONFIDENTIALITY NOTICE:
This electronic mail message is intended exclusively for
recipient to which it is addressed. The contents of this message
and any attachments may contain confidential and privileged
information. Any unauthorized review, use, print, storage, copy,
disclosure or distribution is strictly prohibited. If you have
received this message in error, please advise the sender
immediately by replying to the message's sender and delete all
copies of this message and its attachments without disclosing
the contents to anyone, or using the contents for any purpose.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20141001/7d7cb28b/attachment.html>
More information about the Xymon
mailing list