From jstk888 at outlook.com Wed May 4 13:22:01 2022 From: jstk888 at outlook.com (Jonathan Bishop) Date: Wed, 4 May 2022 11:22:01 +0000 Subject: [Xymon] Trouble With Alert Format Message-ID: Hello fellow xymoners, I have recently setup monitoring of the existence of files in a particular directory, and this seems to be working well. When I setup an alert for a "red" condition, I receive an email message with what appears to be some html tags within it, eg: &red /path/to/myfile File is a - should be file I have tried setting the alert "FORMAT" to TEXT, PLAIN and SMS, but this doesn't seem to have any effect. I have also tried sending the alert through the html_mail.pl extension scripts, and this doesn't seem to have any effect either. All I really want is a plain text message, which is easy to read. Does anyone know how I could clean this up? Example Alert Config: HOST=myserver.com MAIL alerts at someone.who.cares.com REPEAT=240m COLOR=red FORMAT=TEXT Regards, Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From alt36 at cam.ac.uk Wed May 4 17:38:43 2022 From: alt36 at cam.ac.uk (Adam Thorn) Date: Wed, 4 May 2022 16:38:43 +0100 Subject: [Xymon] Trouble With Alert Format In-Reply-To: References: Message-ID: On 04/05/2022 12:22, Jonathan Bishop wrote: > Hello fellow xymoners, > > I have recently setup monitoring of the existence of files in a > particular directory, and this seems to be working well. When I setup an > alert for a "red" condition, I receive an email message with what > appears to be some html tags within it, eg: > > ? ? ? &red href="/xymon-cgi/svcstatus.sh?CLIENT=myserver.com&SECTION=file:/path/to/myfile">/path/to/myfile > ? ? ? File is a? - should be file > > I have tried setting the alert "FORMAT" to TEXT, PLAIN and SMS, but this > doesn't seem to have any effect. I have also tried sending the alert > through the html_mail.pl extension scripts, and this doesn't seem to > have any effect either. All I really want is a plain text message, which > is easy to read. Does anyone know how I could clean this up? > > Example Alert Config: > HOST=myserver.com > ? ? ? ? MAIL alerts at someone.who.cares.com REPEAT=240m COLOR=red FORMAT=TEXT This may be a red herring, but I wonder if you could try changing the order of the different parts of the config line to e.g. HOST=myserver.com COLOR=red MAIL alerts at someone.who.cares.com FORMAT=TEXT REPEAT=240m Quoting selectively from the stock comments at the top of my alerts.cfg file .... This file is made up from RULES and RECIPIENTS. A RULE is a filter made from ... (etc etc) A RECIPIENT can be a MAIL address, or a SCRIPT. Recipients can also have rules associated with them... ..so for your rule, HOST and COLOR constitute the "RULE", MAIL is the "RECIPIENT", and REPEAT and FORMAT then modify the "RECIPIENT". Your rule mixes together tokens from the RULE and RECIPIENT parts, which might lead to the config rule not being parsed properly. (Or maybe this is nonsense and the order doesn't matter here; I suspect it would take a careful reading of the source to see how the different tokens in that config file get parsed) Adam From kspringer at innovateteam.com Wed May 4 17:59:19 2022 From: kspringer at innovateteam.com (Kris Springer) Date: Wed, 4 May 2022 09:59:19 -0600 Subject: [Xymon] Trouble With Alert Format In-Reply-To: References: Message-ID: <388e8eac-435e-fbb0-967f-9dfa6d092724@innovateteam.com> Here's some details of how I send email alerts. They're completely customizable.? Hope it helps. http://www.krisspringer.com/posts/xymon-email-alerts.php I have since switched to Slack alerts instead of emails, but those are a bit more complex. Let me know if you want instructions for that. Kris Springer On 5/4/22 09:38, Adam Thorn wrote: > On 04/05/2022 12:22, Jonathan Bishop wrote: >> Hello fellow xymoners, >> >> I have recently setup monitoring of the existence of files in a >> particular directory, and this seems to be working well. When I setup >> an alert for a "red" condition, I receive an email message with what >> appears to be some html tags within it, eg: >> >> ?? ? ? &red > href="/xymon-cgi/svcstatus.sh?CLIENT=myserver.com&SECTION=file:/path/to/myfile">/path/to/myfile >> ?? ? ? File is a? - should be file >> >> I have tried setting the alert "FORMAT" to TEXT, PLAIN and SMS, but >> this doesn't seem to have any effect. I have also tried sending the >> alert through the html_mail.pl extension scripts, and this doesn't >> seem to have any effect either. All I really want is a plain text >> message, which is easy to read. Does anyone know how I could clean >> this up? >> >> Example Alert Config: >> HOST=myserver.com >> ?? ? ? ? MAIL alerts at someone.who.cares.com REPEAT=240m COLOR=red >> FORMAT=TEXT > > This may be a red herring, but I wonder if you could try changing the > order of the different parts of the config line to e.g. > > HOST=myserver.com COLOR=red MAIL alerts at someone.who.cares.com > FORMAT=TEXT REPEAT=240m > > Quoting selectively from the stock comments at the top of my > alerts.cfg file .... > > This file is made up from RULES and RECIPIENTS. > A RULE is a filter made from ... (etc etc) > A RECIPIENT can be a MAIL address, or a SCRIPT. Recipients can also > have rules associated with them... > > ..so for your rule, HOST and COLOR constitute the "RULE", MAIL is the > "RECIPIENT", and REPEAT and FORMAT then modify the "RECIPIENT". Your > rule mixes together tokens from the RULE and RECIPIENT parts, which > might lead to the config rule not being parsed properly. > > (Or maybe this is nonsense and the order doesn't matter here; I > suspect it would take a careful reading of the source to see how the > different tokens in that config file get parsed) > > Adam > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon From josh at imaginenetworksllc.com Wed May 4 19:47:32 2022 From: josh at imaginenetworksllc.com (Josh Luthman) Date: Wed, 4 May 2022 13:47:32 -0400 Subject: [Xymon] Trouble With Alert Format In-Reply-To: <388e8eac-435e-fbb0-967f-9dfa6d092724@innovateteam.com> References: <388e8eac-435e-fbb0-967f-9dfa6d092724@innovateteam.com> Message-ID: Kris, I would love to see Slack alerts if you wouldn't mind. On Wed, May 4, 2022 at 12:54 PM Kris Springer wrote: > Here's some details of how I send email alerts. They're completely > customizable. Hope it helps. > http://www.krisspringer.com/posts/xymon-email-alerts.php > > I have since switched to Slack alerts instead of emails, but those are a > bit more complex. Let me know if you want instructions for that. > > Kris Springer > > > On 5/4/22 09:38, Adam Thorn wrote: > > On 04/05/2022 12:22, Jonathan Bishop wrote: > >> Hello fellow xymoners, > >> > >> I have recently setup monitoring of the existence of files in a > >> particular directory, and this seems to be working well. When I setup > >> an alert for a "red" condition, I receive an email message with what > >> appears to be some html tags within it, eg: > >> > >> &red >> href="/xymon-cgi/svcstatus.sh?CLIENT=myserver.com > &SECTION=file:/path/to/myfile">/path/to/myfile > >> File is a - should be file > >> > >> I have tried setting the alert "FORMAT" to TEXT, PLAIN and SMS, but > >> this doesn't seem to have any effect. I have also tried sending the > >> alert through the html_mail.pl extension scripts, and this doesn't > >> seem to have any effect either. All I really want is a plain text > >> message, which is easy to read. Does anyone know how I could clean > >> this up? > >> > >> Example Alert Config: > >> HOST=myserver.com > >> MAIL alerts at someone.who.cares.com REPEAT=240m COLOR=red > >> FORMAT=TEXT > > > > This may be a red herring, but I wonder if you could try changing the > > order of the different parts of the config line to e.g. > > > > HOST=myserver.com COLOR=red MAIL alerts at someone.who.cares.com > > FORMAT=TEXT REPEAT=240m > > > > Quoting selectively from the stock comments at the top of my > > alerts.cfg file .... > > > > This file is made up from RULES and RECIPIENTS. > > A RULE is a filter made from ... (etc etc) > > A RECIPIENT can be a MAIL address, or a SCRIPT. Recipients can also > > have rules associated with them... > > > > ..so for your rule, HOST and COLOR constitute the "RULE", MAIL is the > > "RECIPIENT", and REPEAT and FORMAT then modify the "RECIPIENT". Your > > rule mixes together tokens from the RULE and RECIPIENT parts, which > > might lead to the config rule not being parsed properly. > > > > (Or maybe this is nonsense and the order doesn't matter here; I > > suspect it would take a careful reading of the source to see how the > > different tokens in that config file get parsed) > > > > Adam > > _______________________________________________ > > Xymon mailing list > > Xymon at xymon.com > > http://lists.xymon.com/mailman/listinfo/xymon > > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kspringer at innovateteam.com Thu May 5 15:36:45 2022 From: kspringer at innovateteam.com (Kris Springer) Date: Thu, 5 May 2022 07:36:45 -0600 Subject: [Xymon] Trouble With Alert Format In-Reply-To: References: <388e8eac-435e-fbb0-967f-9dfa6d092724@innovateteam.com> Message-ID: <8f5722b3-9b8e-164e-1b33-d7a2555f3097@innovateteam.com> Here's my Slack Alert instructions. http://www.krisspringer.com/posts/xymon-slack-alerts.php Kris Springer On 5/4/22 11:47, Josh Luthman wrote: > Kris, > > I would love to see Slack alerts if you wouldn't mind. > > On Wed, May 4, 2022 at 12:54 PM Kris Springer > wrote: > > Here's some details of how I send email alerts. They're completely > customizable.? Hope it helps. > http://www.krisspringer.com/posts/xymon-email-alerts.php > > I have since switched to Slack alerts instead of emails, but those > are a > bit more complex. Let me know if you want instructions for that. > > Kris Springer > > > On 5/4/22 09:38, Adam Thorn wrote: > > On 04/05/2022 12:22, Jonathan Bishop wrote: > >> Hello fellow xymoners, > >> > >> I have recently setup monitoring of the existence of files in a > >> particular directory, and this seems to be working well. When I > setup > >> an alert for a "red" condition, I receive an email message with > what > >> appears to be some html tags within it, eg: > >> > >> ?? ? ? &red >> href="/xymon-cgi/svcstatus.sh?CLIENT=myserver.com > &SECTION=file:/path/to/myfile">/path/to/myfile > >> ?? ? ? File is a? - should be file > >> > >> I have tried setting the alert "FORMAT" to TEXT, PLAIN and SMS, > but > >> this doesn't seem to have any effect. I have also tried sending > the > >> alert through the html_mail.pl extension > scripts, and this doesn't > >> seem to have any effect either. All I really want is a plain text > >> message, which is easy to read. Does anyone know how I could clean > >> this up? > >> > >> Example Alert Config: > >> HOST=myserver.com > >> ?? ? ? ? MAIL alerts at someone.who.cares.com REPEAT=240m COLOR=red > >> FORMAT=TEXT > > > > This may be a red herring, but I wonder if you could try > changing the > > order of the different parts of the config line to e.g. > > > > HOST=myserver.com COLOR=red MAIL > alerts at someone.who.cares.com > > FORMAT=TEXT REPEAT=240m > > > > Quoting selectively from the stock comments at the top of my > > alerts.cfg file .... > > > > This file is made up from RULES and RECIPIENTS. > > A RULE is a filter made from ... (etc etc) > > A RECIPIENT can be a MAIL address, or a SCRIPT. Recipients can also > > have rules associated with them... > > > > ..so for your rule, HOST and COLOR constitute the "RULE", MAIL > is the > > "RECIPIENT", and REPEAT and FORMAT then modify the "RECIPIENT". > Your > > rule mixes together tokens from the RULE and RECIPIENT parts, which > > might lead to the config rule not being parsed properly. > > > > (Or maybe this is nonsense and the order doesn't matter here; I > > suspect it would take a careful reading of the source to see how > the > > different tokens in that config file get parsed) > > > > Adam > > _______________________________________________ > > Xymon mailing list > > Xymon at xymon.com > > http://lists.xymon.com/mailman/listinfo/xymon > > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From josh at imaginenetworksllc.com Thu May 5 16:40:23 2022 From: josh at imaginenetworksllc.com (Josh Luthman) Date: Thu, 5 May 2022 10:40:23 -0400 Subject: [Xymon] Trouble With Alert Format In-Reply-To: <8f5722b3-9b8e-164e-1b33-d7a2555f3097@innovateteam.com> References: <388e8eac-435e-fbb0-967f-9dfa6d092724@innovateteam.com> <8f5722b3-9b8e-164e-1b33-d7a2555f3097@innovateteam.com> Message-ID: Fantastic guide, thank you! 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. On Thu, May 5, 2022 at 9:36 AM Kris Springer wrote: > Here's my Slack Alert instructions. > http://www.krisspringer.com/posts/xymon-slack-alerts.php > > Kris Springer > > > > > On 5/4/22 11:47, Josh Luthman wrote: > > Kris, > > I would love to see Slack alerts if you wouldn't mind. > > On Wed, May 4, 2022 at 12:54 PM Kris Springer > wrote: > >> Here's some details of how I send email alerts. They're completely >> customizable. Hope it helps. >> http://www.krisspringer.com/posts/xymon-email-alerts.php >> >> I have since switched to Slack alerts instead of emails, but those are a >> bit more complex. Let me know if you want instructions for that. >> >> Kris Springer >> >> >> On 5/4/22 09:38, Adam Thorn wrote: >> > On 04/05/2022 12:22, Jonathan Bishop wrote: >> >> Hello fellow xymoners, >> >> >> >> I have recently setup monitoring of the existence of files in a >> >> particular directory, and this seems to be working well. When I setup >> >> an alert for a "red" condition, I receive an email message with what >> >> appears to be some html tags within it, eg: >> >> >> >> &red > >> href="/xymon-cgi/svcstatus.sh?CLIENT=myserver.com&SECTION= >> file:/path/to/myfile">/path/to/myfile >> >> File is a - should be file >> >> >> >> I have tried setting the alert "FORMAT" to TEXT, PLAIN and SMS, but >> >> this doesn't seem to have any effect. I have also tried sending the >> >> alert through the html_mail.pl extension scripts, and this doesn't >> >> seem to have any effect either. All I really want is a plain text >> >> message, which is easy to read. Does anyone know how I could clean >> >> this up? >> >> >> >> Example Alert Config: >> >> HOST=myserver.com >> >> MAIL alerts at someone.who.cares.com REPEAT=240m COLOR=red >> >> FORMAT=TEXT >> > >> > This may be a red herring, but I wonder if you could try changing the >> > order of the different parts of the config line to e.g. >> > >> > HOST=myserver.com COLOR=red MAIL alerts at someone.who.cares.com >> > FORMAT=TEXT REPEAT=240m >> > >> > Quoting selectively from the stock comments at the top of my >> > alerts.cfg file .... >> > >> > This file is made up from RULES and RECIPIENTS. >> > A RULE is a filter made from ... (etc etc) >> > A RECIPIENT can be a MAIL address, or a SCRIPT. Recipients can also >> > have rules associated with them... >> > >> > ..so for your rule, HOST and COLOR constitute the "RULE", MAIL is the >> > "RECIPIENT", and REPEAT and FORMAT then modify the "RECIPIENT". Your >> > rule mixes together tokens from the RULE and RECIPIENT parts, which >> > might lead to the config rule not being parsed properly. >> > >> > (Or maybe this is nonsense and the order doesn't matter here; I >> > suspect it would take a careful reading of the source to see how the >> > different tokens in that config file get parsed) >> > >> > Adam >> > _______________________________________________ >> > Xymon mailing list >> > Xymon at xymon.com >> > http://lists.xymon.com/mailman/listinfo/xymon >> >> _______________________________________________ >> Xymon mailing list >> Xymon at xymon.com >> http://lists.xymon.com/mailman/listinfo/xymon >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kspringer at innovateteam.com Thu May 5 16:54:32 2022 From: kspringer at innovateteam.com (Kris Springer) Date: Thu, 5 May 2022 08:54:32 -0600 Subject: [Xymon] Trouble With Alert Format In-Reply-To: References: <388e8eac-435e-fbb0-967f-9dfa6d092724@innovateteam.com> <8f5722b3-9b8e-164e-1b33-d7a2555f3097@innovateteam.com> Message-ID: <7c6786e2-2df5-29f2-8a25-92d7417c3f00@innovateteam.com> Yes, I have had issues with line breaks and spaces when copy/pasting.? Also quotation marks sometimes get screwed up when copying from how-to's with certain fonts.? If things don't work when copy/pasting, always check line breaks, spaces, and quotation marks. Kris Springer On 5/5/22 08:40, Josh Luthman wrote: > Fantastic guide, thank you! > > 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. > > On Thu, May 5, 2022 at 9:36 AM Kris Springer > wrote: > > Here's my Slack Alert instructions. > http://www.krisspringer.com/posts/xymon-slack-alerts.php > > Kris Springer > > > > On 5/4/22 11:47, Josh Luthman wrote: >> Kris, >> >> I would love to see Slack alerts if you wouldn't mind. >> >> On Wed, May 4, 2022 at 12:54 PM Kris Springer >> wrote: >> >> Here's some details of how I send email alerts. They're >> completely >> customizable.? Hope it helps. >> http://www.krisspringer.com/posts/xymon-email-alerts.php >> >> I have since switched to Slack alerts instead of emails, but >> those are a >> bit more complex. Let me know if you want instructions for that. >> >> Kris Springer >> >> >> On 5/4/22 09:38, Adam Thorn wrote: >> > On 04/05/2022 12:22, Jonathan Bishop wrote: >> >> Hello fellow xymoners, >> >> >> >> I have recently setup monitoring of the existence of files >> in a >> >> particular directory, and this seems to be working well. >> When I setup >> >> an alert for a "red" condition, I receive an email message >> with what >> >> appears to be some html tags within it, eg: >> >> >> >> ?? ? ? &red > >> href="/xymon-cgi/svcstatus.sh?CLIENT=myserver.com >> &SECTION=file:/path/to/myfile">/path/to/myfile >> >> ?? ? ? File is a? - should be file >> >> >> >> I have tried setting the alert "FORMAT" to TEXT, PLAIN and >> SMS, but >> >> this doesn't seem to have any effect. I have also tried >> sending the >> >> alert through the html_mail.pl >> extension scripts, and this doesn't >> >> seem to have any effect either. All I really want is a >> plain text >> >> message, which is easy to read. Does anyone know how I >> could clean >> >> this up? >> >> >> >> Example Alert Config: >> >> HOST=myserver.com >> >> ?? ? ? ? MAIL alerts at someone.who.cares.com REPEAT=240m >> COLOR=red >> >> FORMAT=TEXT >> > >> > This may be a red herring, but I wonder if you could try >> changing the >> > order of the different parts of the config line to e.g. >> > >> > HOST=myserver.com COLOR=red MAIL >> alerts at someone.who.cares.com >> > FORMAT=TEXT REPEAT=240m >> > >> > Quoting selectively from the stock comments at the top of my >> > alerts.cfg file .... >> > >> > This file is made up from RULES and RECIPIENTS. >> > A RULE is a filter made from ... (etc etc) >> > A RECIPIENT can be a MAIL address, or a SCRIPT. Recipients >> can also >> > have rules associated with them... >> > >> > ..so for your rule, HOST and COLOR constitute the "RULE", >> MAIL is the >> > "RECIPIENT", and REPEAT and FORMAT then modify the >> "RECIPIENT". Your >> > rule mixes together tokens from the RULE and RECIPIENT >> parts, which >> > might lead to the config rule not being parsed properly. >> > >> > (Or maybe this is nonsense and the order doesn't matter >> here; I >> > suspect it would take a careful reading of the source to >> see how the >> > different tokens in that config file get parsed) >> > >> > Adam >> > _______________________________________________ >> > Xymon mailing list >> > Xymon at xymon.com >> > http://lists.xymon.com/mailman/listinfo/xymon >> >> _______________________________________________ >> Xymon mailing list >> Xymon at xymon.com >> http://lists.xymon.com/mailman/listinfo/xymon >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jstk888 at outlook.com Fri May 6 05:02:55 2022 From: jstk888 at outlook.com (Jonathan Bishop) Date: Fri, 6 May 2022 03:02:55 +0000 Subject: [Xymon] Trouble With Alert Format In-Reply-To: References: <388e8eac-435e-fbb0-967f-9dfa6d092724@innovateteam.com> Message-ID: Hello all, Thank you for your responses. You have highlighted to me that firstly, I lacked a proper understanding of how mime types and mime headers work in email, and secondly that the mail utility on RHEL 7 doesn't support changing mime types! To work around the problem, I borrowed Kris's script and used sendmail to send the email instead. I then set manually the "Content-Type" header to "text/html". Below is an example of something that works for me on RHEL7. Another question on xymon alerts... what is the significance of the ampersand in "&red" in an alert message? Regards, Jonathan #!/bin/sh NOTICE=`echo "$BBALPHAMSG" | grep -c INFO` if [ $RECOVERED -eq 1 ]; then echo -e "To: $RCPT\nSubject: $BBSVCNAME on $BBHOSTNAME is Recovered\nContent-Type: text/html\n HTML HERE " | sendmail -f monitoring at whocares.com -t elif [ $NOTICE -gt 0 ]; then echo -e "To: $RCPT\nSubject: $BBSVCNAME on $BBHOSTNAME - Notice\nContent-Type: text/html\n HTML HERE " | sendmail -f monitoring at whocares.com -t else echo -e "To: $RCPT\nSubject: $BBSVCNAME on $BBHOSTNAME is $BBCOLORLEVEL\nContent-Type: text/html\n HTML HERE " | sendmail -f monitoring at whocares.com. -t fi ________________________________ From: Xymon on behalf of Josh Luthman Sent: Thursday, 5 May 2022 5:47 AM To: Kris Springer Cc: xymon at xymon.com Subject: Re: [Xymon] Trouble With Alert Format Kris, I would love to see Slack alerts if you wouldn't mind. On Wed, May 4, 2022 at 12:54 PM Kris Springer > wrote: Here's some details of how I send email alerts. They're completely customizable. Hope it helps. http://www.krisspringer.com/posts/xymon-email-alerts.php I have since switched to Slack alerts instead of emails, but those are a bit more complex. Let me know if you want instructions for that. Kris Springer On 5/4/22 09:38, Adam Thorn wrote: > On 04/05/2022 12:22, Jonathan Bishop wrote: >> Hello fellow xymoners, >> >> I have recently setup monitoring of the existence of files in a >> particular directory, and this seems to be working well. When I setup >> an alert for a "red" condition, I receive an email message with what >> appears to be some html tags within it, eg: >> >> &red > href="/xymon-cgi/svcstatus.sh?CLIENT=myserver.com&SECTION=file:/path/to/myfile">/path/to/myfile >> File is a - should be file >> >> I have tried setting the alert "FORMAT" to TEXT, PLAIN and SMS, but >> this doesn't seem to have any effect. I have also tried sending the >> alert through the html_mail.pl extension scripts, and this doesn't >> seem to have any effect either. All I really want is a plain text >> message, which is easy to read. Does anyone know how I could clean >> this up? >> >> Example Alert Config: >> HOST=myserver.com >> MAIL alerts at someone.who.cares.com REPEAT=240m COLOR=red >> FORMAT=TEXT > > This may be a red herring, but I wonder if you could try changing the > order of the different parts of the config line to e.g. > > HOST=myserver.com COLOR=red MAIL alerts at someone.who.cares.com > FORMAT=TEXT REPEAT=240m > > Quoting selectively from the stock comments at the top of my > alerts.cfg file .... > > This file is made up from RULES and RECIPIENTS. > A RULE is a filter made from ... (etc etc) > A RECIPIENT can be a MAIL address, or a SCRIPT. Recipients can also > have rules associated with them... > > ..so for your rule, HOST and COLOR constitute the "RULE", MAIL is the > "RECIPIENT", and REPEAT and FORMAT then modify the "RECIPIENT". Your > rule mixes together tokens from the RULE and RECIPIENT parts, which > might lead to the config rule not being parsed properly. > > (Or maybe this is nonsense and the order doesn't matter here; I > suspect it would take a careful reading of the source to see how the > different tokens in that config file get parsed) > > Adam > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at tdiehl.org Tue May 10 20:01:03 2022 From: me at tdiehl.org (me at tdiehl.org) Date: Tue, 10 May 2022 14:01:03 -0400 (EDT) Subject: [Xymon] How do I get windows events to turn red? Message-ID: Hi, I am using the win_ps_client to monitor a bunch of windows servers. In looking at the documentation it appears that I should be able to get Xymon to alert on different events. I have added eventlogswanted:information,Application,System:2048:Warning,Critical,error to client-local.cfg and eventlog:System in the analysis.cfg file. When I do this I see various messages when I click on msgs dot. However, I cannot figure out how to get it to turn red when it sees the events I want to monitor. In the docs I see mention of include and exclude parameters but I do not understand exactly how I need to configure things. I would like to be able to alert on certain windows event IDs Is this possible? If yes, how do I actually configure xymon to do this? Regards, -- Tom me at tdiehl.org From kspringer at innovateteam.com Tue May 10 20:22:14 2022 From: kspringer at innovateteam.com (Kris Springer) Date: Tue, 10 May 2022 12:22:14 -0600 Subject: [Xymon] How do I get windows events to turn red? In-Reply-To: References: Message-ID: Here's some sample lines that I have running in my analysis.cfg file on the Xymon Server.? It's checking the log files it gets from the client and if it sees the specifics I'm looking for it will flag an alert. This of course assumes that your client is sending logs that appear in the 'msgs' column of your Xymon Server. HOST=boxA #LOG filename match-pattern [COLOR=color] [IGNORE=ignore-pattern] [TEXT=displaytext] LOG???? %.* [2004] COLOR=red IGNORE=FIPS LOG???? %.* [7034] COLOR=red LOG???? %.* [6417] IGNORE LOG???? %.* [4624] COLOR=yellow Kris Springer On 5/10/22 12:01, me at tdiehl.org wrote: > Hi, > > I am using the win_ps_client to monitor a bunch of windows servers. In > looking > at the documentation it appears that I should be able to get Xymon to > alert > on different events. > > I have added > eventlogswanted:information,Application,System:2048:Warning,Critical,error > to client-local.cfg and eventlog:System in the analysis.cfg file. When > I do > this I see various messages when I click on msgs dot. However, I > cannot figure > out how to get it to turn red when it sees the events I want to monitor. > > In the docs I see mention of include and exclude parameters but I do not > understand exactly how I need to configure things. > > I would like to be able to alert on certain windows event IDs Is this > possible? > If yes, how do I actually configure xymon to do this? > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at tdiehl.org Wed May 11 15:23:22 2022 From: me at tdiehl.org (me at tdiehl.org) Date: Wed, 11 May 2022 09:23:22 -0400 (EDT) Subject: [Xymon] How do I get windows events to turn red? In-Reply-To: References: Message-ID: <7cee75ee-50a-bc86-95a9-8fe54a543595@tdiehl.org> Hi, On Tue, 10 May 2022, Kris Springer wrote: > Here's some sample lines that I have running in my analysis.cfg file on the > Xymon Server.? It's checking the log files it gets from the client and if it > sees the specifics I'm looking for it will flag an alert. This of course > assumes that your client is sending logs that appear in the 'msgs' column of > your Xymon Server. > > HOST=boxA > #LOG filename match-pattern [COLOR=color] [IGNORE=ignore-pattern] [TEXT=displaytext] > LOG %.* [2004] COLOR=red IGNORE=FIPS > LOG %.* [7034] COLOR=red > LOG %.* [6417] IGNORE > LOG %.* [4624] COLOR=yellow That works. It is all so simple when you know what to do! :-) Thanks for that. Hopefully someone else finds this useful. Regards, -- Tom me at tdiehl.org > > Kris Springer > > > > On 5/10/22 12:01, me at tdiehl.org wrote: >> Hi, >> >> I am using the win_ps_client to monitor a bunch of windows servers. In >> looking >> at the documentation it appears that I should be able to get Xymon to >> alert >> on different events. >> >> I have added >> eventlogswanted:information,Application,System:2048:Warning,Critical,error >> to client-local.cfg and eventlog:System in the analysis.cfg file. When I >> do >> this I see various messages when I click on msgs dot. However, I cannot >> figure >> out how to get it to turn red when it sees the events I want to monitor. >> >> In the docs I see mention of include and exclude parameters but I do not >> understand exactly how I need to configure things. >> >> I would like to be able to alert on certain windows event IDs Is this >> possible? >> If yes, how do I actually configure xymon to do this? >> >> Regards, >> > > From Neil.Simmonds at studio.co.uk Mon May 16 12:52:19 2022 From: Neil.Simmonds at studio.co.uk (Neil Simmonds) Date: Mon, 16 May 2022 10:52:19 +0000 Subject: [Xymon] HTTPS access to Xymon web pages Message-ID: Hi all, I'm currently preparing to create a new Xymon server on AWS using the Terabithia RPM's and I want to only allow access to the Xymon pages over HTTPS. Has anyone done this and can give me some advice? I'm good with setting up the AWS security groups etc and the local firewall I'm just not sure how I Would setup Xymon to only show pages as HTTPS? Kind Regards, Neil. Neil Simmonds Senior Platform & Middleware Engineer (Unix). Studio is a trading name of Studio Retail Ltd which is authorised and regulated by the Financial Conduct Authority for consumer credit and general insurance. Studio Retail Ltd are members of the Finance and Leasing Association (FLA). Registered in England. No: 718151. Registered Office: Church Bridge House, Henry Street, Accrington, BB5 4EE NOTE: This email and any information contained within or attached in a separate file is confidential and intended solely for the Individual to whom it is addressed. The information or data included is solely for the purpose indicated or previously agreed. Any information or data included with this e-mail remains the property of Studio Retail Ltd and the recipient will refrain from utilising the information for any purpose other than that indicated and upon request will destroy the information and remove it from their records. Any views or opinions presented are solely those of the author and do not necessarily represent those of Studio Retail Ltd. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. No warranties or assurances are made in relation to the safety and content of this e-mail and any attachments. No liability is accepted for any consequences arising from it. Studio Retail Ltd reserves the right to monitor all e-mail communications through its internal and external networks. If you have received this email in error, please notify our careline on +44(0) 371 200 0378. -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien at makelofine.org Mon May 16 13:09:20 2022 From: damien at makelofine.org (Damien Martins) Date: Mon, 16 May 2022 13:09:20 +0200 Subject: [Xymon] HTTPS access to Xymon web pages In-Reply-To: References: Message-ID: <669e7a58-b019-40fd-28b4-ca563fa45ebd@makelofine.org> Hi Neil, I think you can view it from different points of view: -blocking network traffic that is not HTTPS (using AWS SG & Net ACL) -configure your webserver to allow only HTTPS -configure your webserver to redirect/rewrite requests from HTTP to HTTPS I'm not familiar with Terabithia RPM, but documentation seems to focus on Apache HTTP server. If this is the webserver you are planning to use, this can be done easily using a permanent redirect on virtualhost's root directory: Redirect permanent / https://my_xymon_host.net/ #Replace with the right FQDN As you can see, Xymon is not involved at any time, because (AFAIK) this is just an engine working in background and presenting the results via HTML content, through a third party HTTP/HTTPS server. Hope this help, Damien Le 16/05/2022 ? 12:52, Neil Simmonds a ?crit?: > > Hi all, > > I?m currently preparing to create a new Xymon server on AWS using the > Terabithia RPM?s and I want to only allow access to the Xymon pages > over HTTPS. Has anyone done this and can give me some advice? > > I?m good with setting up the AWS security groups etc and the local > firewall I?m just not sure how I Would setup Xymon to only show pages > as HTTPS? > > Kind Regards, > > // > > Neil*.* > > ** > > *Neil Simmonds* > > Senior Platform & Middleware Engineer (Unix). > > Studio is a trading name of Studio Retail Ltd which is authorised and > regulated by the Financial Conduct Authority for consumer credit and > general insurance. Studio Retail Ltd are members of the Finance and > Leasing Association (FLA). Registered in England. No: 718151. > Registered Office: Church Bridge House, Henry Street, Accrington, BB5 > 4EE NOTE: This email and any information contained within or attached > in a separate file is confidential and intended solely for the > Individual to whom it is addressed. The information or data included > is solely for the purpose indicated or previously agreed. Any > information or data included with this e-mail remains the property of > Studio Retail Ltd and the recipient will refrain from utilising the > information for any purpose other than that indicated and upon request > will destroy the information and remove it from their records. Any > views or opinions presented are solely those of the author and do not > necessarily represent those of Studio Retail Ltd. If you are not the > intended recipient, be advised that you have received this email in > error and that any use, dissemination, forwarding, printing, or > copying of this email is strictly prohibited. No warranties or > assurances are made in relation to the safety and content of this > e-mail and any attachments. No liability is accepted for any > consequences arising from it. Studio Retail Ltd reserves the right to > monitor all e-mail communications through its internal and external > networks. If you have received this email in error, please notify our > careline on +44(0) 371 200 0378. > > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon -------------- next part -------------- An HTML attachment was scrubbed... URL: From josh at imaginenetworksllc.com Mon May 16 16:11:52 2022 From: josh at imaginenetworksllc.com (Josh Luthman) Date: Mon, 16 May 2022 10:11:52 -0400 Subject: [Xymon] HTTPS access to Xymon web pages In-Reply-To: References: Message-ID: Use Apache to redirect to HTTPS. Done. This is what we do. On Mon, May 16, 2022 at 7:09 AM Damien Martins via Xymon wrote: > > > > ---------- Forwarded message ---------- > From: Damien Martins > To: Neil Simmonds , "xymon at xymon.com" < > xymon at xymon.com> > Cc: > Bcc: > Date: Mon, 16 May 2022 13:09:20 +0200 > Subject: Re: [Xymon] HTTPS access to Xymon web pages > > Hi Neil, > > I think you can view it from different points of view: > > -blocking network traffic that is not HTTPS (using AWS SG & Net ACL) > > -configure your webserver to allow only HTTPS > > -configure your webserver to redirect/rewrite requests from HTTP to HTTPS > > I'm not familiar with Terabithia RPM, but documentation seems to focus on > Apache HTTP server. If this is the webserver you are planning to use, this > can be done easily using a permanent redirect on virtualhost's root > directory: > > Redirect permanent / https://my_xymon_host.net/ #Replace with the right > FQDN > > As you can see, Xymon is not involved at any time, because (AFAIK) this is > just an engine working in background and presenting the results via HTML > content, through a third party HTTP/HTTPS server. > > Hope this help, > Damien > Le 16/05/2022 ? 12:52, Neil Simmonds a ?crit : > > Hi all, > > > > I?m currently preparing to create a new Xymon server on AWS using the > Terabithia RPM?s and I want to only allow access to the Xymon pages over > HTTPS. Has anyone done this and can give me some advice? > > > > I?m good with setting up the AWS security groups etc and the local > firewall I?m just not sure how I Would setup Xymon to only show pages as > HTTPS? > > > > Kind Regards, > > > > Neil*.* > > > > *Neil Simmonds* > > Senior Platform & Middleware Engineer (Unix). > > > > > > > Studio is a trading name of Studio Retail Ltd which is authorised and > regulated by the Financial Conduct Authority for consumer credit and > general insurance. Studio Retail Ltd are members of the Finance and Leasing > Association (FLA). Registered in England. No: 718151. Registered Office: > Church Bridge House, Henry Street, Accrington, BB5 4EE NOTE: This email and > any information contained within or attached in a separate file is > confidential and intended solely for the Individual to whom it is > addressed. The information or data included is solely for the purpose > indicated or previously agreed. Any information or data included with this > e-mail remains the property of Studio Retail Ltd and the recipient will > refrain from utilising the information for any purpose other than that > indicated and upon request will destroy the information and remove it from > their records. Any views or opinions presented are solely those of the > author and do not necessarily represent those of Studio Retail Ltd. If you > are not the intended recipient, be advised that you have received this > email in error and that any use, dissemination, forwarding, printing, or > copying of this email is strictly prohibited. No warranties or assurances > are made in relation to the safety and content of this e-mail and any > attachments. No liability is accepted for any consequences arising from it. > Studio Retail Ltd reserves the right to monitor all e-mail communications > through its internal and external networks. If you have received this email > in error, please notify our careline on +44(0) 371 200 0378. > > _______________________________________________ > Xymon mailing listXymon at xymon.comhttp://lists.xymon.com/mailman/listinfo/xymon > > > > > ---------- Forwarded message ---------- > From: Damien Martins via Xymon > To: Neil Simmonds , "xymon at xymon.com" < > xymon at xymon.com> > Cc: > Bcc: > Date: Mon, 16 May 2022 13:09:20 +0200 > Subject: Re: [Xymon] HTTPS access to Xymon web pages > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.manzoni at ubi-network.ch Mon May 23 21:05:22 2022 From: bruno.manzoni at ubi-network.ch (Bruno Manzoni) Date: Mon, 23 May 2022 21:05:22 +0200 Subject: [Xymon] dns_fping: a "conn" test with reverse nslookup In-Reply-To: <97fc66c6-5b9a-676b-0296-a55674d14435@terabithia.org> References: <97fc66c6-5b9a-676b-0296-a55674d14435@terabithia.org> Message-ID: Hello all, If you want to add an reverse DNS lookup to your "conn" test: - You use CNAMEs for your devices and you want to see their real names - You would like to see if your DNS reverse pointers are set correctly Just use "dns_ping" !? (this is a simple wrapper around fping with awk) https://github.com/bonomani/dns_fping/ Let me know if you found some optimisation, problem or if you like it. Bonomani -------------- next part -------------- An HTML attachment was scrubbed... URL: