<div dir="ltr">This may not be the best way, but what I do for filesystems and processes is to use SCRIPT as the alert method.  The script is handed the entire content of the message that triggered the alert in the BBALPHAMSG environment variable.  If you take a look at the xymon/server/etc/alerts.cfg file you'll see a list of all the other environment variables that get passed.<div><br></div><div>I currently have the following filesystems alerting for a server:</div><div><br>&yellow /archive (94% used) has reached the WARNING level (90%)<br>&yellow /stuff (90% used) has reached the WARNING level (90%)<br></div><div><div><br></div><div>In the web page display, the &yellow is replaced by the yellow dot image, but in BBALPHAMSG it's as above.  So, in bash:</div></div><div><br></div><div>     YELLOW=`echo "$BBALPHAMSG" | grep &yellow | sed -e 's/&yellow //'`</div><div>     RED=`echo "$BBALPHAMSG" | grep &red | sed -e 's/&red //'`</div><div><br></div><div>separates out the red and yellow tagged filesystems and removes the color.  I can then iterate through each list looking at the first word on each line to see which filesystem has a problem and then spit out an appropriate message to whomever needs to be informed.  You can use whatever programming language you're comfortable with, as long as you can access BBALPHAMSG in the environment.</div><div><br></div><div>Ralph Mitchell</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 1, 2020 at 12:27 AM Jacob P Jordan <<a href="mailto:jacob@shadowsoft.com">jacob@shadowsoft.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">If I have multiple files being checked or multiple services being <br>
checked how do I control alerts for a specific item.  Such as two <br>
processes:  Process1 and Process2.  One of them goes red.  How do I send <br>
an alert based on the correct item.  Is it indexed or something.  I have <br>
looked in forums and email history for last several years but have not <br>
found how to do this?<br>
<br>
Thanks Paul Jordan<br>
<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>