On Wed, March 2, 2016 10:20 am, Larry Bonham wrote:
Finally figured out what I was doing wrong. RECOVERED was not part of the $STOP macro definition. So it worked fine on alerts but failed to stop (sometimes) on the recovery and would continue to search for matching rules.
Both the script method and IGNORE work for me as they should now.
$STOP=SCRIPT /paging/bin/xymon-ignore.sh none FORMAT=SCRIPT RECOVERED
STOP
Preferred since it is minimal.
$STOP=IGNORE RECOVERED
Nice sleuthing!
A question for J.C., I know that STOP and REPEAT=30 are automatically included in an IGNORE line. Is there any reason that RECOVERED shouldn't automatically be there as well? At least the way I'm using it there would never be an exception to that. But maybe for others there would be.
I would tend to agree that 'RECOVERED' would make sense on an IGNORE line. If no one seems to have any objections or reasons why not, I'll probably put that in.
Regards,
-jc