Re: java.io.IOException RRD Filename to long V22.0.2
"Norbert Steinhoff" <[email protected]> Mon, 3 Dec 2018 10:15:20 +0100
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <trinity-f3e67512-c971-46ae-a447-2da076c3cca4-1543828520489@3c-app-gmx-bs54> |
--===============9108578648926679446== Content-Type: text/html; charset=UTF-8 <html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> <div>OK, got it.</div> <div> </div> <div>Its</div> <div> </div> <div>org.opennms.netmgt.<strong>dao</strong>.support.SiblingColumnStorageStrategy</div> <div> </div> <div>and not</div> <div> </div> <div>org.opennms.netmgt.<strong>collection</strong>.support.SiblingColumnStorageStrategy</div> <div> <div> </div> <div> </div> <div> </div> <div>Works for me. !</div> <div> </div> <div>Norbert</div> <div> </div> <div> </div> <div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 03. Dezember 2018 um 09:32 Uhr<br/> <b>Von:</b> "Norbert Steinhoff" <[email protected]><br/> <b>An:</b> [email protected]<br/> <b>Betreff:</b> Re: [opennms-discuss] java.io.IOException RRD Filename to long V22.0.2</div> <div name="quoted-content"> <div style="font-family: Verdana;font-size: 12.0px;"> <div> <div>Thx Ron,</div> <div> </div> <div>that's it.</div> <div> </div> <div>But your workaround is not working for me, because there is no "org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy" on my system.</div> <div> </div> <div>output.log:</div> <div> </div> <div>Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resourceDao' defined in class path resource [META-INF/opennms/applicationContext-dao.xml]: Invocation of init method failed; nested exception is org.springframework.orm.ObjectRetrievalFailureException: Could not load class 'org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy' for resource type 'ltmPoolStatName'; nested exception is java.lang.ClassNotFoundException: org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy</div> <div> </div> <div> <div>Cheers</div> <div>Norbert</div> <div> </div> <div> </div> <div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);"> <div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Montag, 03. Dezember 2018 um 05:02 Uhr<br/> <b>Von:</b> "Ronald Roskens" <[email protected]><br/> <b>An:</b> "General OpenNMS Discussion" <[email protected]><br/> <b>Betreff:</b> Re: [opennms-discuss] java.io.IOException RRD Filename to long V22.0.2</div> <div> <div>There is an open jira issue for this: <a href="https://issues.opennms.org/browse/NMS-8587" target="_blank">https://issues.opennms.org/browse/NMS-8587</a> <div> </div> <div>I had made a PR to fix this by adding a DisplayStringIndexStorageStrategy, <a href="https://github.com/OpenNMS/opennms/pull/1386" target="_blank">https://github.com/OpenNMS/opennms/pull/1386</a>, but that was reverted.</div> <div> </div> <div>My work around since then has been to replace the ltmPoolStatName and ltmVSStatName resource types with these:</div> <div> </div> <div>====</div> <div> <resourceType name="ltmPoolStatName" label="F5 LTM Pool Stats (F5 BigIP MIB)" resourceLabel="${ltmPoolStatName}"><br/> <persistenceSelectorStrategy class="org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"/><br/> <storageStrategy class="org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy"><br/> <parameter key="sibling-column-name" value="ltmPoolStatName" /><br/> <parameter key="replace-all" value="s/^-//" /><br/> <parameter key="replace-all" value="s/\\s//" /><br/> <parameter key="replace-all" value="s/:\\\\.*//" /><br/> </storageStrategy><br/> </resourceType><br/> <resourceType name="ltmVSStatName" label="F5 LTM Virtual Server Stats (F5 BigIP MIB)" resourceLabel="${ltmVSStatName}"><br/> <persistenceSelectorStrategy class="org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"/><br/> <storageStrategy class="org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy"><br/> <parameter key="sibling-column-name" value="ltmVSStatName" /><br/> <parameter key="replace-all" value="s/^-//" /><br/> <parameter key="replace-all" value="s/\\s//" /><br/> <parameter key="replace-all" value="s/:\\\\.*//" /><br/> </storageStrategy><br/> </resourceType><br/> ====</div> <div> </div> <div>The indexes use the name index column instead, and that’s significantly shorter than an OID string of the bytes.</div> <div> </div> <div> </div> <div>Ron</div> <div> <div> <blockquote> <div>On Dec 2, 2018, at 11:16 AM, Marcel Fuhrmann <<a href="mailto:[email protected]" onclick="parent.window.location.href='mailto:[email protected]'; return false;" target="_blank">[email protected]</a>> wrote:</div> <div> <div>Rrd names have a limitation for 19 characters.<br/> Are you using the default F5 collection or have you enhanced/changed it?<br/> <div class="gmail_quote">Am 1. Dezember 2018 18:21:18 MEZ schrieb Norbert Steinhoff <<a href="mailto:[email protected]" onclick="parent.window.location.href='mailto:[email protected]'; return false;" target="_blank">[email protected]</a>>: <blockquote class="gmail_quote" style="margin: 0.0pt 0.0pt 0.0pt 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;"> <div style="font-family: Verdana;font-size: 12.0px;"> <div>Hi all,</div> <div> </div> <div>i run in some trouble collection data for Big IP F5 Loadbalancers</div> <div> </div> <div>2018-12-01 00:34:56,462 ERROR [Collectd-Thread-10-of-50] o.o.n.d.s.RrdResourceAttributeUtils: Unable to save DataSource Properties file<br/> java.io.IOException: Der Dateiname ist zu lang</div> <div><br/> Details from collectd.log attached.</div> <div> </div> <div>V22.0.2 on Ubuntu 16.04</div> <div><br/> org.opennms.rrd.storeByGroup=true</div> <div>org.opennms.rrd.storeByForeignSource=true</div> <div>rrd.base.dir=/var/lib/opennms/rrd</div> <div>rrd.binary=/usr/bin/rrdtool</div> <div> </div> <div> </div> <div>Any Ideas / Workarounds ?</div> <div> </div> <div>Rgds</div> <div>Norbert</div> </div> </blockquote> </div> <br/> --<br/> Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.</div> _______________________________________________<br/> Please read the OpenNMS Mailing List FAQ:<br/> <a href="http://www.opennms.org/index.php/Mailing_List_FAQ" target="_blank">http://www.opennms.org/index.php/Mailing_List_FAQ</a><br/> <br/> opennms-discuss mailing list<br/> <br/> To *unsubscribe* or change your subscription options, see the bottom of this page:<br/> <a href="https://lists.sourceforge.net/lists/listinfo/opennms-discuss" target="_blank">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</a></div> </blockquote> </div> </div> _______________________________________________ Please read the OpenNMS Mailing List FAQ: <a href="http://www.opennms.org/index.php/Mailing_List_FAQ" target="_blank">http://www.opennms.org/index.php/Mailing_List_FAQ</a> opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: <a href="https://lists.sourceforge.net/lists/listinfo/opennms-discuss" target="_blank">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</a></div> </div> </div> </div> </div> </div> _______________________________________________ Please read the OpenNMS Mailing List FAQ: <a href="http://www.opennms.org/index.php/Mailing_List_FAQ" target="_blank">http://www.opennms.org/index.php/Mailing_List_FAQ</a> opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: <a href="https://lists.sourceforge.net/lists/listinfo/opennms-discuss" target="_blank">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</a></div> </div> </div> </div></div></body></html> --===============9108578648926679446== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============9108578648926679446== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============9108578648926679446==--