On 02/12/2024 18:23, Grant Taylor via Xymon wrote:
Hi,
Is it possible to configure Xymon to send an email when an alert changes from BLUE to GREEN?
I've already got RECOVERED on the entry in alerts.cfg and that's working for RED, YELLOW, and PURPLE when they go GREEN.
I did a quick search and didn't come up with anything germane, so I figured that it was work asking if this is possible before spending a lot of time combing through seemingly non-germane to make sure there wasn't a hint therein.
This isn't functionality I make use of so read the following as "a thought that might or might not be useful" rather than "this will definitely work".
I suspect you should look at the values of:
ALERTCOLORS : Comma-separated list of the colors that may trigger an alert-message. The default is "red,yellow,purple".
OKCOLORS : Comma-separated list of the colors that may trigger a recovery-message. The default is "green,clear,blue"
...as defined in your xymonserver.cfg (and I've quoted from man xymonserver.cfg). Taking blue out of OKCOLORS and adding it to ALERTCOLORS is probably required for what you want (and then restart xymond), but that might also have unexpected effects on your other rules in alerts.cfg unless you've been careful to always specify a COLOR on those.
Adam