<div dir="ltr">Fantastic guide, thank you!<div><br></div><div>Just a little gotcha: when copy/paste the guide is offering line breaks which causes issues. The cat's text:alert line pastes with a line break and that makes the post look like code instead of a pretty link/a href. Your shell script should NOT have a line break after the pipe.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 5, 2022 at 9:36 AM Kris Springer <<a href="mailto:kspringer@innovateteam.com">kspringer@innovateteam.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Here's my Slack Alert instructions.<br>
<a href="http://www.krisspringer.com/posts/xymon-slack-alerts.php" target="_blank">http://www.krisspringer.com/posts/xymon-slack-alerts.php</a><br>
<br>
<pre cols="72">Kris Springer
</pre>
<div>On 5/4/22 11:47, Josh Luthman wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Kris,
<div><br>
</div>
<div>I would love to see Slack alerts if you wouldn't mind.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, May 4, 2022 at 12:54
PM Kris Springer <<a href="mailto:kspringer@innovateteam.com" target="_blank">kspringer@innovateteam.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Here's
some details of how I send email alerts. They're completely <br>
customizable. Hope it helps.<br>
<a href="http://www.krisspringer.com/posts/xymon-email-alerts.php" rel="noreferrer" target="_blank">http://www.krisspringer.com/posts/xymon-email-alerts.php</a><br>
<br>
I have since switched to Slack alerts instead of emails, but
those are a <br>
bit more complex. Let me know if you want instructions for
that.<br>
<br>
Kris Springer<br>
<br>
<br>
On 5/4/22 09:38, Adam Thorn wrote:<br>
> On 04/05/2022 12:22, Jonathan Bishop wrote:<br>
>> Hello fellow xymoners,<br>
>><br>
>> I have recently setup monitoring of the existence of
files in a <br>
>> particular directory, and this seems to be working
well. When I setup <br>
>> an alert for a "red" condition, I receive an email
message with what <br>
>> appears to be some html tags within it, eg:<br>
>><br>
>> &red <a <br>
>> href="/xymon-cgi/svcstatus.sh?CLIENT=<a href="http://myserver.com" rel="noreferrer" target="_blank">myserver.com</a>&SECTION=<a>file:/path/to/myfile</a>">/path/to/myfile</a><br>
>> File is a - should be file<br>
>><br>
>> I have tried setting the alert "FORMAT" to TEXT,
PLAIN and SMS, but <br>
>> this doesn't seem to have any effect. I have also
tried sending the <br>
>> alert through the <a href="http://html_mail.pl" rel="noreferrer" target="_blank">html_mail.pl</a>
extension scripts, and this doesn't <br>
>> seem to have any effect either. All I really want is
a plain text <br>
>> message, which is easy to read. Does anyone know how
I could clean <br>
>> this up?<br>
>><br>
>> Example Alert Config:<br>
>> HOST=<a href="http://myserver.com" rel="noreferrer" target="_blank">myserver.com</a><br>
>> MAIL <a href="mailto:alerts@someone.who.cares.com" target="_blank">alerts@someone.who.cares.com</a>
REPEAT=240m COLOR=red <br>
>> FORMAT=TEXT<br>
><br>
> This may be a red herring, but I wonder if you could try
changing the <br>
> order of the different parts of the config line to e.g.<br>
><br>
> HOST=<a href="http://myserver.com" rel="noreferrer" target="_blank">myserver.com</a>
COLOR=red MAIL <a href="mailto:alerts@someone.who.cares.com" target="_blank">alerts@someone.who.cares.com</a>
<br>
> FORMAT=TEXT REPEAT=240m<br>
><br>
> Quoting selectively from the stock comments at the top of
my <br>
> alerts.cfg file ....<br>
><br>
> This file is made up from RULES and RECIPIENTS.<br>
> A RULE is a filter made from ... (etc etc)<br>
> A RECIPIENT can be a MAIL address, or a SCRIPT.
Recipients can also <br>
> have rules associated with them...<br>
><br>
> ..so for your rule, HOST and COLOR constitute the "RULE",
MAIL is the <br>
> "RECIPIENT", and REPEAT and FORMAT then modify the
"RECIPIENT". Your <br>
> rule mixes together tokens from the RULE and RECIPIENT
parts, which <br>
> might lead to the config rule not being parsed properly.<br>
><br>
> (Or maybe this is nonsense and the order doesn't matter
here; I <br>
> suspect it would take a careful reading of the source to
see how the <br>
> different tokens in that config file get parsed)<br>
><br>
> Adam<br>
> _______________________________________________<br>
> Xymon mailing list<br>
> <a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
> <a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote></div>