Multiple values assigned to same timestamp with nxapush

Started by fbu, June 28, 2019, 03:48:49 PM

Previous topic - Next topic

fbu

Dear NetXMS team,

I am currently facing an issue with Line charts which use data from DCI, populated by the NetXMS Agent push:

The way, data collection works for these DCIs is that (e.g.) every five minutes, a script pushes 24 timestamp-value pairs (one for every one of the last full hours) to the DCI using nxapush.

This is done every five minutes, because the values might change over the course of an hour. The idea here is that it always overwrites the previously assigned values to those timestamps, and here comes the problem:

I noticed (at first in the line charts) that there are multiple different values assigned to equal timestamps, resulting in vertical steps within the graph, as seen in 'double_value_assign.png'.

Then, I checked the history data of the DCI and as seen in 'multiple_value_assign1.png', there are in fact multiple instances of timestamp-value pairs, which have the same timestamp.

(I marked the two entries, which refer to the right-most step in the line chart screenshot)

Is this expected behavior, or a bug?

Anyway, my assumption is that most users would expect nx(a)push to just update the value, if an entry with the given timestamp is already present on the DCI.


Kind regards,
fbu

Victor Kirhenshtein

Actually, nxpush/nxapush was not designed with "update" option in mind. Server expects that each new push will contain new data. If you don't mind please create feature request in our tracker for "update" functionality for push DCIs.

Best regards,
Victor

fbu

Okay, I will do so.

Thank you very much.

Kind regads,
fbu