Xymon Mailing List Archive search

Having some issues getting email alerts to come

list Larry Barber
Fri, 1 Jun 2012 12:51:32 -0500
Message-Id: <CAOnF4RDYFcv5zUpXqjBGfb=user-8c875e700d97@xymon.invalid>

You need to specify a 'GROUP' in your alerts.cfg stanza:

#Rule and Recipient for all host cpu disk mem proc alerts
GROUP=SRMINFRA
SERVICE=cpu,disk,mem,proc TIME=W:0800:1600 RECOVERED
$SRMINFRA

I'm also not too sure that giving the macro and the group the same name is
such a good idea.

Thanks,
Larry Barber

On Fri, Jun 1, 2012 at 12:25 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid> wrote:
 Hi folks. It's been quiet on the list so I thought I would start a new
thread ;)  I've been googling this and trying to get it to work from the
man pages the last few days.

 I started to try and clean up alerting and emails in our environment
from xymon.

 I just want to get email alerts for CPU, Mem, and Disk from any host we
have and send it to a single email group, but am not getting any emails
even though the hosts are showing red alerts on the xymon web pages.

 Here is what I put in analysis.cfg

 host=* TIME:W:0800:1600

 #Setting for this rule is the value to watch LOAD PROC CPU DISK etc
        DISK * 90 95 GROUP=SRMINFRA
        LOAD 8.0 12.0 GROUP=SRMINFRA
        PROC cron GROUP=SRMINFRA


 DEFAULT
        # These are the built-in defaults.
        UP 1h
        LOAD    5.0 10.0 GROUP=SRMINFRA
        DISK    * 90 95 GROUP=SRMINFRA
        MEMPHYS 100 101
        MEMSWAP 50 80
        MEMACT  90 97

 Here is what I put in alerts.cfg
#Macro definition
 $SRMINFRA=SCRIPT /home/xymon/server/ext/html_mail.pl
user-59b3568abfc7@xymon.invalid FORMAT=TEXT

 #Rule and Recipient for all host cpu disk mem proc alerts
SERVICE=cpu,disk,mem,proc TIME=W:0800:1600 RECOVERED
$SRMINFRA


 Any guidance appreciated.

 Thanks

 Don K