<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>HI Larry. Thanks for the tips.  I've modified it and actually found an error on the email address in the alerts.cfg file.</div>
<div><br>
</div>
<div>In the macro definition, there was a double @domain.com – eg where it said html_mail.pl
<a href="mailto:srm_infrastructure@domain.com">srm_infrastructure@domain.com</a>@domain.com</div>
<div><br>
</div>
<div>That must have got stuck on there when I was editing the file with nano and doing some cut/paste operations.</div>
<div><br>
</div>
<div>In any case, I'm getting all kinds of email now.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Don K</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Larry Barber <<a href="mailto:lebarber@gmail.com">lebarber@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Fri, 1 Jun 2012 12:51:32 -0500<br>
<span style="font-weight:bold">To: </span>Don Kuhlman <<a href="mailto:don.kuhlman@schawk.com">don.kuhlman@schawk.com</a>><br>
<span style="font-weight:bold">Cc: </span>Xymon Email List <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Xymon] Having some issues getting email alerts to come<br>
</div>
<div><br>
</div>
You need to specify a 'GROUP' in your alerts.cfg stanza:<br>
<br>
<div>#Rule and Recipient for all host cpu disk mem proc alerts<br>
GROUP=SRMINFRA<br>
</div>
<div>SERVICE=cpu,disk,mem,proc TIME=W:0800:1600 RECOVERED</div>
<div>$SRMINFRA<br>
<br>
I'm also not too sure that giving the macro and the group the same name is such a good idea.
<br>
</div>
<br>
Thanks,<br>
Larry Barber<br>
<br>
<div class="gmail_quote">On Fri, Jun 1, 2012 at 12:25 PM, Don Kuhlman <span dir="ltr">
<<a href="mailto:Don.Kuhlman@schawk.com" target="_blank">Don.Kuhlman@schawk.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>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.</div>
<div><br>
</div>
<div>I started to try and clean up alerting and emails in our environment from xymon.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Here is what I put in analysis.cfg</div>
<div>
<div><br>
</div>
<div>host=* TIME:W:0800:1600</div>
<div><br>
</div>
<div>#Setting for this rule is the value to watch LOAD PROC CPU DISK etc</div>
<div>        DISK * 90 95 GROUP=SRMINFRA</div>
<div>        LOAD 8.0 12.0 GROUP=SRMINFRA</div>
<div>        PROC cron GROUP=SRMINFRA</div>
<div><br>
</div>
<div><br>
</div>
<div>DEFAULT</div>
<div>       <span style="white-space:pre-wrap"> </span># These are the built-in defaults.</div>
<div>        UP<span style="white-space:pre-wrap"> </span>1h</div>
<div>        LOAD    5.0 10.0 GROUP=SRMINFRA</div>
<div>        DISK    * 90 95 GROUP=SRMINFRA</div>
<div>        MEMPHYS 100 101</div>
<div>        MEMSWAP 50 80</div>
<div>        MEMACT  90 97</div>
</div>
<div><br>
</div>
<div>Here is what I put in alerts.cfg</div>
<div>#Macro definition</div>
<div>
<div>$SRMINFRA=SCRIPT /home/xymon/server/ext/<a href="http://html_mail.pl" target="_blank">html_mail.pl</a>
<a href="mailto:srm_infrastructure@domain.com" target="_blank">srm_infrastructure@domain.com</a> FORMAT=TEXT</div>
</div>
<div><br>
</div>
<div>
<div>#Rule and Recipient for all host cpu disk mem proc alerts</div>
<div>SERVICE=cpu,disk,mem,proc TIME=W:0800:1600 RECOVERED</div>
<div>$SRMINFRA</div>
<div><br>
</div>
</div>
<div><br>
</div>
<div>Any guidance appreciated.</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Don K</div>
</div>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br>
</blockquote>
</div>
<br>
</span></div>
</div>
</span>
</body>
</html>