<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mailing lists for ALL events (above a given threshold)?]]></title><description><![CDATA[<p dir="auto">I can assign a user to receive alerts for ALL events above a certain threshold (e.g. "urgent"). Is there a practical way to accomplish this for a mailing list? I realize I can create an event handler that sends to the mailing list , but rather than having to create an event handler for all possible events, I would prefer to similarly send all alerts for urgent (or greater) events to the given mailing list.</p>
<p dir="auto">On the same line of thought, is there a way to create a general purpose event handler for any and all "urgent" events?</p>
]]></description><link>https://forum.mango-os.com/topic/2450/mailing-lists-for-all-events-above-a-given-threshold</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 04:58:35 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2450.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Sep 2016 21:44:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mailing lists for ALL events (above a given threshold)? on Wed, 14 Sep 2016 01:20:41 GMT]]></title><description><![CDATA[<p dir="auto">Most welcome. Also, I had to edit my script... tis "detectorXID" in the point event handler object.</p>
]]></description><link>https://forum.mango-os.com/post/12639</link><guid isPermaLink="true">https://forum.mango-os.com/post/12639</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 14 Sep 2016 01:20:41 GMT</pubDate></item><item><title><![CDATA[Reply to Mailing lists for ALL events (above a given threshold)? on Tue, 13 Sep 2016 23:42:31 GMT]]></title><description><![CDATA[<p dir="auto">Awesome, that is very interesting and I shall devour it eagerly!</p>
<p dir="auto">And yes, it is both proactive AND allows for automagically addressing the concern.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.mango-os.com/post/12637</link><guid isPermaLink="true">https://forum.mango-os.com/post/12637</guid><dc:creator><![CDATA[AldoRamos]]></dc:creator><pubDate>Tue, 13 Sep 2016 23:42:31 GMT</pubDate></item><item><title><![CDATA[Reply to Mailing lists for ALL events (above a given threshold)? on Wed, 14 Sep 2016 01:18:41 GMT]]></title><description><![CDATA[<p dir="auto">Yeah, I will raise the idea for that to be a feature of the mailing lists: the situation you describe is exactly why I said I could see the benefit.</p>
<p dir="auto">I understand what you're saying about event detectors, and possibly such a thing could be added. I guess it would 99% of the time be an email saying "Hey, an uncaught event!" I will bring this up and see what people think. I believe it is possible to register for an events websocket, but it would take <a class="plugin-mentions-user plugin-mentions-a" href="/user/terrypacker" aria-label="Profile: terrypacker">@<bdi>terrypacker</bdi></a> or <a class="plugin-mentions-user plugin-mentions-a" href="/user/jared-wiltshire" aria-label="Profile: Jared-Wiltshire">@<bdi>Jared-Wiltshire</bdi></a> to give you a great answer about that.</p>
<p dir="auto">I personally prefer to validate things using scripts (since it is pro-active, as opposed to waiting for this catch-all handler to show something amiss). For instance, here's a simple script that identifies point event detectors that have no handler. You could expand it to also work for Data Sources if you feel up to it, by using a mix of the keys in a data source's alarmLevel property with the data source's xid. If you export a handler for a data source event, you will see this is enough information to do the same thing I'm doing in this python script.</p>
<pre><code>import json

configFile = open("mango/backup/Mango-Configuration.json")
config = json.load(configFile)
configFile.close()

eventDetectorToHandlerDict = {}
for eh in config["eventHandlers"] :
	if eh["eventType"]["sourceType"] == "DATA_POINT" :
		eventDetectorToHandlerDict[eh["eventType"]["detectorXID"]] = eh
	
for dp in config["dataPoints"] :
	for ed in dp["eventDetectors"] :
		if ed["xid"] not in eventDetectorToHandlerDict :
			print "I found you on '%s' your xid is '%s'!" % (dp["xid"], ed["xid"])
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12636</link><guid isPermaLink="true">https://forum.mango-os.com/post/12636</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 14 Sep 2016 01:18:41 GMT</pubDate></item><item><title><![CDATA[Reply to Mailing lists for ALL events (above a given threshold)? on Mon, 12 Sep 2016 23:45:10 GMT]]></title><description><![CDATA[<p dir="auto">We have been currently accomplishing this with a user account ("operator"), but the customer desires more granularity, the kind of control that the mailing list provides.</p>
<p dir="auto">The idea was to have all events alert the "operators" mailing list, or possibly all the "day operators", "night operators", "weekend operators", configured for appropriate schedules, etc.</p>
<p dir="auto">The primary reason for the catch-all option is to avoid having to create event handlers for each and every possible event, when the current approach is to just alert all "urgent" or higher events to the operator. More than just the time-consuming practice of creating event handlers for all potential events, this kind of repetitive task invites mistakes, e.g. forgetting to create an EH for a new DP/event. A catch-all like the users get gives the warm fuzzy that we're not going to accidentally miss an alert.</p>
<p dir="auto">Part of my thinking in asking this question is whether it is possible to catch all "urgent" events in the API, and possibly executing some script as a result. Any thoughts on that?</p>
]]></description><link>https://forum.mango-os.com/post/12622</link><guid isPermaLink="true">https://forum.mango-os.com/post/12622</guid><dc:creator><![CDATA[AldoRamos]]></dc:creator><pubDate>Mon, 12 Sep 2016 23:45:10 GMT</pubDate></item><item><title><![CDATA[Reply to Mailing lists for ALL events (above a given threshold)? on Mon, 12 Sep 2016 23:45:04 GMT]]></title><description><![CDATA[<p dir="auto">To the mailing lists question, perhaps use the user's setting on all users you wish to receive events at a threshold?</p>
]]></description><link>https://forum.mango-os.com/post/12621</link><guid isPermaLink="true">https://forum.mango-os.com/post/12621</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 12 Sep 2016 23:45:04 GMT</pubDate></item><item><title><![CDATA[Reply to Mailing lists for ALL events (above a given threshold)? on Mon, 12 Sep 2016 23:06:43 GMT]]></title><description><![CDATA[<p dir="auto">The answer to both questions is currently no. You could achieve getting all events above a threshold through a user account that forwards to all your users, i.e. alerts@mydomain. I can see the benefit of having this in the mailing list, though.</p>
<p dir="auto">There is no way to handle all urgent events in a single handler. This one I'm not so sure i understand the wisdom in, unless you've been really exacting in what can produce events and at what levels. Can you elaborate on what you were hoping to do with it?</p>
]]></description><link>https://forum.mango-os.com/post/12620</link><guid isPermaLink="true">https://forum.mango-os.com/post/12620</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 12 Sep 2016 23:06:43 GMT</pubDate></item></channel></rss>