Hey Ian, Thanks for the extremely thorough analysis. It's a huge help. Knowing the exact version of OpenNMS that you're using would help further.
On 08/19/2015 07:55 AM, Ian Norton wrote: > So the odd behaviour is: > > * Severity is 6 That's strange in that it's inconsistent with the value "Major" for the initial POST, but simultaneously not so strange since 6 is the numeric value that codes for "Major" in the DB. My guess is that the code path responsible for generating "resolved" notices is taking a shortcut (see below) that leaves out the severity name resolution. > * The time is midnight this morning (whatever the day is) Probably a time-parsing issue. I don't know whether your test events are "native" ones (generated by the poller) or externally-created ones send with send-event.pl or the like, but if they're the latter, we might be having trouble with the date-time format in use. If they're native, then we're definitely looking at a bug, probably a stupid one. > * The fact that is is a RESOLVED event doesn't get passed through That's because the notice actually doesn't pertain to the "up" event -- note the event IDs are the same on both posts. "RESOLVED" notices as currently implemented are a massive cheat -- we essentially take the original notice, mark it acknowledged, prepend a configurable string to its subject, and blast it out again to the indicated destination paths with no other modifications. Working out how to include the subject in your POST might be the only way to recognize these things for the time being. (The prefix is configured in notifd-configuration.xml, if you're interested). Hope this is at least a little helpful. -jeff -- PGP key fingerprint: A939 FE41 6E8A 22B6 98CD 20AD 47DE 7657 4A4B AE2C
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel