Re: java.io.IOException RRD Filename to long V22.0.2
Ronald Roskens <[email protected]> Sun, 2 Dec 2018 22:02:05 -0600
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
--===============6907792467008440411==
Content-Type: multipart/alternative;
boundary="Apple-Mail=_B5DB7C92-65EF-48FB-8BC2-73AF55DFCA67"
--Apple-Mail=_B5DB7C92-65EF-48FB-8BC2-73AF55DFCA67
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
There is an open jira issue for this: =
https://issues.opennms.org/browse/NMS-8587 =
<https://issues.opennms.org/browse/NMS-8587>
I had made a PR to fix this by adding a =
DisplayStringIndexStorageStrategy, =
https://github.com/OpenNMS/opennms/pull/1386 =
<https://github.com/OpenNMS/opennms/pull/1386>, but that was reverted.
My work around since then has been to replace the ltmPoolStatName and =
ltmVSStatName resource types with these:
=3D=3D=3D=3D
<resourceType name=3D"ltmPoolStatName" label=3D"F5 LTM Pool Stats (F5 =
BigIP MIB)" resourceLabel=3D"${ltmPoolStatName}">
<persistenceSelectorStrategy =
class=3D"org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"=
/>
<storageStrategy =
class=3D"org.opennms.netmgt.collection.support.SiblingColumnStorageStrateg=
y">
<parameter key=3D"sibling-column-name" value=3D"ltmPoolStatName" =
/>
<parameter key=3D"replace-all" value=3D"s/^-//" />
<parameter key=3D"replace-all" value=3D"s/\\s//" />
<parameter key=3D"replace-all" value=3D"s/:\\\\.*//" />
</storageStrategy>
</resourceType>
<resourceType name=3D"ltmVSStatName" label=3D"F5 LTM Virtual Server =
Stats (F5 BigIP MIB)" resourceLabel=3D"${ltmVSStatName}">
<persistenceSelectorStrategy =
class=3D"org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"=
/>
<storageStrategy =
class=3D"org.opennms.netmgt.collection.support.SiblingColumnStorageStrateg=
y">
<parameter key=3D"sibling-column-name" value=3D"ltmVSStatName" =
/>
<parameter key=3D"replace-all" value=3D"s/^-//" />
<parameter key=3D"replace-all" value=3D"s/\\s//" />
<parameter key=3D"replace-all" value=3D"s/:\\\\.*//" />
</storageStrategy>
</resourceType>
=3D=3D=3D=3D
The indexes use the name index column instead, and that=E2=80=99s =
significantly shorter than an OID string of the bytes.
Ron
> On Dec 2, 2018, at 11:16 AM, Marcel Fuhrmann <[email protected]> =
wrote:
>=20
> Rrd names have a limitation for 19 characters.
> Are you using the default F5 collection or have you enhanced/changed =
it?=20
>=20
> Am 1. Dezember 2018 18:21:18 MEZ schrieb Norbert Steinhoff =
<[email protected]>:
> Hi all,
> =20
> i run in some trouble collection data for Big IP F5 Loadbalancers
> =20
> 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
> java.io.IOException: Der Dateiname ist zu lang
>=20
> Details from collectd.log attached.
> =20
> V22.0.2 on Ubuntu 16.04
>=20
> org.opennms.rrd.storeByGroup=3Dtrue
> org.opennms.rrd.storeByForeignSource=3Dtrue
> rrd.base.dir=3D/var/lib/opennms/rrd
> rrd.binary=3D/usr/bin/rrdtool
> =20
> =20
> Any Ideas / Workarounds ?
> =20
> Rgds
> Norbert
>=20
> --=20
> Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail =
gesendet.
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
>=20
> opennms-discuss mailing list
>=20
> To *unsubscribe* or change your subscription options, see the bottom =
of this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-discuss
--Apple-Mail=_B5DB7C92-65EF-48FB-8BC2-73AF55DFCA67
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">There=
is an open jira issue for this: <a =
href=3D"https://issues.opennms.org/browse/NMS-8587" =
class=3D"">https://issues.opennms.org/browse/NMS-8587</a><div =
class=3D""><br class=3D""></div><div class=3D"">I had made a PR to fix =
this by adding a DisplayStringIndexStorageStrategy, <a =
href=3D"https://github.com/OpenNMS/opennms/pull/1386" =
class=3D"">https://github.com/OpenNMS/opennms/pull/1386</a>, but that =
was reverted.</div><div class=3D""><br class=3D""></div><div class=3D"">My=
work around since then has been to replace the ltmPoolStatName and =
ltmVSStatName resource types with these:</div><div class=3D""><br =
class=3D""></div><div class=3D"">=3D=3D=3D=3D</div><div class=3D""> =
<resourceType name=3D"ltmPoolStatName" label=3D"F5 LTM Pool =
Stats (F5 BigIP MIB)" resourceLabel=3D"${ltmPoolStatName}"><br =
class=3D""> =
<persistenceSelectorStrategy class=3D"org.opennms.netm=
gt.collection.support.PersistAllSelectorStrategy"/><br =
class=3D""> =
<storageStrategy class=3D"org.opennms.netmgt.collectio=
n.support.SiblingColumnStorageStrategy"><br class=3D""> =
<parameter key=3D"sibling-column-name" =
value=3D"ltmPoolStatName" /><br class=3D""> =
<parameter key=3D"replace-all" value=3D"s/^-//" /><br =
class=3D""> <parameter =
key=3D"replace-all" value=3D"s/\\s//" /><br class=3D""> =
<parameter key=3D"replace-all" =
value=3D"s/:\\\\.*//" /><br class=3D""> =
</storageStrategy><br class=3D""> =
</resourceType><br class=3D""> <resourceType =
name=3D"ltmVSStatName" label=3D"F5 LTM Virtual Server Stats =
(F5 BigIP MIB)" resourceLabel=3D"${ltmVSStatName}"><br =
class=3D""> =
<persistenceSelectorStrategy class=3D"org.opennms.netm=
gt.collection.support.PersistAllSelectorStrategy"/><br =
class=3D""> =
<storageStrategy class=3D"org.opennms.netmgt.collectio=
n.support.SiblingColumnStorageStrategy"><br class=3D""> =
<parameter key=3D"sibling-column-name" =
value=3D"ltmVSStatName" /><br class=3D""> =
<parameter key=3D"replace-all" value=3D"s/^-//" /><br =
class=3D""> <parameter =
key=3D"replace-all" value=3D"s/\\s//" /><br class=3D""> =
<parameter key=3D"replace-all" =
value=3D"s/:\\\\.*//" /><br class=3D""> =
</storageStrategy><br class=3D""> =
</resourceType><br class=3D"">=3D=3D=3D=3D</div><div =
class=3D""><br class=3D""></div><div class=3D"">The indexes use the name =
index column instead, and that=E2=80=99s significantly shorter than an =
OID string of the bytes.</div><div class=3D""><br class=3D""></div><div =
class=3D""><br class=3D""></div><div class=3D"">Ron</div><div =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Dec 2, 2018, at 11:16 AM, Marcel Fuhrmann <<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>> wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">Rrd =
names have a limitation for 19 characters.<br class=3D"">Are you using =
the default F5 collection or have you enhanced/changed it? <br =
class=3D""><br class=3D""><div class=3D"gmail_quote">Am 1. Dezember 2018 =
18:21:18 MEZ schrieb Norbert Steinhoff <<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>>:<blockquote =
class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: =
1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style=3D"font-family: Verdana;font-size: 12.0px;" class=3D""><div =
class=3D"">Hi all,</div>
<div class=3D""> </div>
<div class=3D"">i run in some trouble collection data for Big IP F5 =
Loadbalancers</div>
<div class=3D""> </div>
<div class=3D"">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 class=3D"">
java.io.IOException: Der Dateiname ist zu lang</div>
<div class=3D""><br class=3D"">
Details from collectd.log attached.</div>
<div class=3D""> </div>
<div class=3D"">V22.0.2 on Ubuntu 16.04</div>
<div class=3D""><br class=3D"">
org.opennms.rrd.storeByGroup=3Dtrue</div>
<div class=3D"">org.opennms.rrd.storeByForeignSource=3Dtrue</div>
<div class=3D"">rrd.base.dir=3D/var/lib/opennms/rrd</div>
<div class=3D"">rrd.binary=3D/usr/bin/rrdtool</div>
<div class=3D""> </div>
<div class=3D""> </div>
<div class=3D"">Any Ideas / Workarounds ?</div>
<div class=3D""> </div>
<div class=3D"">Rgds</div>
<div class=3D"">Norbert</div></div></blockquote></div><br class=3D"">-- =
<br class=3D"">Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit =
K-9 Mail =
gesendet.</div>_______________________________________________<br =
class=3D"">Please read the OpenNMS Mailing List FAQ:<br class=3D""><a =
href=3D"http://www.opennms.org/index.php/Mailing_List_FAQ" =
class=3D"">http://www.opennms.org/index.php/Mailing_List_FAQ</a><br =
class=3D""><br class=3D"">opennms-discuss mailing list<br class=3D""><br =
class=3D"">To *unsubscribe* or change your subscription options, see the =
bottom of this page:<br =
class=3D"">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</d=
iv></blockquote></div><br class=3D""></div></body></html>=
--Apple-Mail=_B5DB7C92-65EF-48FB-8BC2-73AF55DFCA67--
--===============6907792467008440411==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============6907792467008440411==
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
--===============6907792467008440411==--