Hello Bobby,

> On Jun 5, 2015, at 10:24 AM, Bobby Krupczak <r...@krupczak.org> wrote:
> 
> Does the ONMS architecture take my multiple rows and sum them, merge
> them, etc. before saving them to the RRD files?  Or, does ONMS only
> persist the first entry in the CollectionSet?

ONMS uses an implementation of the CollectionSetVisitor interface called 
BasePersister to persist the data on RRD/JRB files.

The CollectionSet will be persisted as it is, so its content must be correct, 
otherwise some weirdness may happen on the filesystem structure for the RRD 
files and the RRD itself.

Some time ago, I've modified the JDBCCollector and the WMICollector to be sure 
that only one instance is created for the "node-level" resource, and reuse it 
when populating the CollectionSet. Without this change, multiple node-level 
resources can be created which is theoretically wrong, because a node can only 
have one node-level resource. That's why it is called node-level ;)

Here is the summary of the problem I fixed:

http://issues.opennms.org/browse/NMS-5219

Note: the change for the XML Collector was not correct for the solution added 
to NMS-5219. I fixed that yesterday on NMS-7516 (not merged yet), but basically 
it follows what I did for JDBC and WMI.

I didn't apply the same fix for the XMP Collector because I'm not familiar with 
it, so I hope you can do it.

The rest of the metrics must be considered tabular data (GenericIndexResource). 
These kind of resources are stored inside a folder. This folder typically 
contains the name of the resource type. Of course, inside each folder, there 
are one folder for each resource that must be unique. Finally, inside each 
resource folder, you'll see the JRB/RRD files for the metrics. The structure of 
the JRB/RRD depends on the storeByGroup variable.

Hope that helps.

Thanks,
Alejandro.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to