Madden, Joe
2017-06-30 14:34:06 UTC
Hi All,
I have an issue with syslog configuration. We have a customized syslog setup which was working on V19 but after an update to v20 it is now broken.
<ueiMatch>
<process-match expression="^HAL_ASE\\DbServer" />
<match type="regex" expression="^((.+?) (.*))\r?\n?$"/>
<severity>Critical</severity>
<uei>mottmac.com/syslog/HAL_ASE/critical</uei>
</ueiMatch>
Internal Exception: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'severity'. One of '{"http://xmlns.opennms.org/xsd/config/syslog":uei}' is expected.]
I therefore reordered it as Seth suggested in the OpenNMS chat to
<ueiMatch>
<process-match expression="^HAL_ASE\\DbServer" />
<match type="regex" expression="^((.+?) (.*))\r?\n?$"/>
<uei>mottmac.com/syslog/HAL_ASE/critical</uei>
<severity>Critical</severity>
</ueiMatch>
However I now get the following error:
Invalid content was found starting with element 'severity'. One of '{"http://xmlns.opennms.org/xsd/config/syslog":parameter-assignment}' is expected.
I added <parameter-assignment matching-group="0" parameter-name="Match" /> Thinking it was complaing that this was missing but it doesn't seem to make any difference.
Does anyone have any suggestions on what I would need to do to get around this issue. I was starting to wonder if it was complaining about the use of Critical in <severity>Critical</severity>
Cheers
Joe
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
I have an issue with syslog configuration. We have a customized syslog setup which was working on V19 but after an update to v20 it is now broken.
<ueiMatch>
<process-match expression="^HAL_ASE\\DbServer" />
<match type="regex" expression="^((.+?) (.*))\r?\n?$"/>
<severity>Critical</severity>
<uei>mottmac.com/syslog/HAL_ASE/critical</uei>
</ueiMatch>
Internal Exception: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'severity'. One of '{"http://xmlns.opennms.org/xsd/config/syslog":uei}' is expected.]
I therefore reordered it as Seth suggested in the OpenNMS chat to
<ueiMatch>
<process-match expression="^HAL_ASE\\DbServer" />
<match type="regex" expression="^((.+?) (.*))\r?\n?$"/>
<uei>mottmac.com/syslog/HAL_ASE/critical</uei>
<severity>Critical</severity>
</ueiMatch>
However I now get the following error:
Invalid content was found starting with element 'severity'. One of '{"http://xmlns.opennms.org/xsd/config/syslog":parameter-assignment}' is expected.
I added <parameter-assignment matching-group="0" parameter-name="Match" /> Thinking it was complaing that this was missing but it doesn't seem to make any difference.
Does anyone have any suggestions on what I would need to do to get around this issue. I was starting to wonder if it was complaining about the use of Critical in <severity>Critical</severity>
Cheers
Joe
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss