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>&nbsp;</div>

<div>Its</div>

<div>&nbsp;</div>

<div>org.opennms.netmgt.<strong>dao</strong>.support.SiblingColumnStorageStrategy</div>

<div>&nbsp;</div>

<div>and not</div>

<div>&nbsp;</div>

<div>org.opennms.netmgt.<strong>collection</strong>.support.SiblingColumnStorageStrategy</div>

<div>
<div>&nbsp;</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div>Works for me. !</div>

<div>&nbsp;</div>

<div>Norbert</div>

<div>&nbsp;</div>

<div>&nbsp;</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>&nbsp;Montag, 03. Dezember 2018 um 09:32 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Norbert Steinhoff&quot; &lt;[email protected]&gt;<br/>
<b>An:</b>&nbsp;[email protected]<br/>
<b>Betreff:</b>&nbsp;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>&nbsp;</div>

<div>that&#39;s it.</div>

<div>&nbsp;</div>

<div>But your workaround is not working for me, because there is no &quot;org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy&quot; on my system.</div>

<div>&nbsp;</div>

<div>output.log:</div>

<div>&nbsp;</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 &#39;resourceDao&#39; 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 &#39;org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy&#39; for resource type &#39;ltmPoolStatName&#39;; nested exception is java.lang.ClassNotFoundException: org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy</div>

<div>&nbsp;</div>

<div>
<div>Cheers</div>

<div>Norbert</div>

<div>&nbsp;</div>

<div>&nbsp;</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>&nbsp;Montag, 03. Dezember 2018 um 05:02 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Ronald Roskens&quot; &lt;[email protected]&gt;<br/>
<b>An:</b>&nbsp;&quot;General OpenNMS Discussion&quot; &lt;[email protected]&gt;<br/>
<b>Betreff:</b>&nbsp;Re: [opennms-discuss] java.io.IOException RRD Filename to long V22.0.2</div>

<div>
<div>There is an open jira issue for this:&nbsp;<a href="https://issues.opennms.org/browse/NMS-8587" target="_blank">https://issues.opennms.org/browse/NMS-8587</a>

<div>&nbsp;</div>

<div>I had made a PR to fix this by adding a DisplayStringIndexStorageStrategy,&nbsp;<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>&nbsp;</div>

<div>My work around since then has been to replace the ltmPoolStatName and ltmVSStatName resource types with these:</div>

<div>&nbsp;</div>

<div>====</div>

<div>&nbsp; &nbsp;&lt;resourceType name=&quot;ltmPoolStatName&quot; label=&quot;F5 LTM Pool Stats (F5 BigIP&nbsp;MIB)&quot; resourceLabel=&quot;&#36;{ltmPoolStatName}&quot;&gt;<br/>
&nbsp; &nbsp; &nbsp;&nbsp;&lt;persistenceSelectorStrategy&nbsp;class=&quot;org.opennms.netmgt.collection.support.PersistAllSelectorStrategy&quot;/&gt;<br/>
&nbsp; &nbsp; &nbsp;&nbsp;&lt;storageStrategy&nbsp;class=&quot;org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy&quot;&gt;<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;parameter key=&quot;sibling-column-name&quot; value=&quot;ltmPoolStatName&quot; /&gt;<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;parameter key=&quot;replace-all&quot; value=&quot;s/^-//&quot; /&gt;<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;parameter key=&quot;replace-all&quot; value=&quot;s/&#92;&#92;s//&quot; /&gt;<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;parameter key=&quot;replace-all&quot; value=&quot;s/:&#92;&#92;&#92;&#92;.*//&quot; /&gt;<br/>
&nbsp; &nbsp; &nbsp;&nbsp;&lt;/storageStrategy&gt;<br/>
&nbsp; &nbsp;&lt;/resourceType&gt;<br/>
&nbsp; &nbsp;&lt;resourceType name=&quot;ltmVSStatName&quot; label=&quot;F5 LTM Virtual Server Stats (F5&nbsp;BigIP MIB)&quot; resourceLabel=&quot;&#36;{ltmVSStatName}&quot;&gt;<br/>
&nbsp; &nbsp; &nbsp;&nbsp;&lt;persistenceSelectorStrategy&nbsp;class=&quot;org.opennms.netmgt.collection.support.PersistAllSelectorStrategy&quot;/&gt;<br/>
&nbsp; &nbsp; &nbsp;&nbsp;&lt;storageStrategy&nbsp;class=&quot;org.opennms.netmgt.collection.support.SiblingColumnStorageStrategy&quot;&gt;<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;parameter key=&quot;sibling-column-name&quot; value=&quot;ltmVSStatName&quot; /&gt;<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;parameter key=&quot;replace-all&quot; value=&quot;s/^-//&quot; /&gt;<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;parameter key=&quot;replace-all&quot; value=&quot;s/&#92;&#92;s//&quot; /&gt;<br/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;parameter key=&quot;replace-all&quot; value=&quot;s/:&#92;&#92;&#92;&#92;.*//&quot; /&gt;<br/>
&nbsp; &nbsp; &nbsp;&nbsp;&lt;/storageStrategy&gt;<br/>
&nbsp; &nbsp;&lt;/resourceType&gt;<br/>
====</div>

<div>&nbsp;</div>

<div>The indexes use the name index column instead, and that&rsquo;s significantly shorter than an OID string of the bytes.</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div>Ron</div>

<div>
<div>&nbsp;
<blockquote>
<div>On Dec 2, 2018, at 11:16 AM, Marcel Fuhrmann &lt;<a href="mailto:[email protected]" onclick="parent.window.location.href=&#39;mailto:[email protected]&#39;; return false;" target="_blank">[email protected]</a>&gt; wrote:</div>
&nbsp;

<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/>
&nbsp;
<div class="gmail_quote">Am 1. Dezember 2018 18:21:18 MEZ schrieb Norbert Steinhoff &lt;<a href="mailto:[email protected]" onclick="parent.window.location.href=&#39;mailto:[email protected]&#39;; return false;" target="_blank">[email protected]</a>&gt;:

<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>&nbsp;</div>

<div>i run in some trouble collection data for Big IP F5 Loadbalancers</div>

<div>&nbsp;</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>&nbsp;</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>&nbsp;</div>

<div>&nbsp;</div>

<div>Any Ideas / Workarounds ?</div>

<div>&nbsp;</div>

<div>Rgds</div>

<div>Norbert</div>
</div>
</blockquote>
</div>
<br/>
--<br/>
Diese Nachricht wurde von meinem Android-Ger&auml;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==--