NetXMS Support Forum

English Support => General Support => Topic started by: atena on August 16, 2020, 09:43:53 AM

Title: inbound/outbound Traffic DCI
Post by: atena on August 16, 2020, 09:43:53 AM
Hello
I added outbound traffic on 28th port of one node(network packet broker)  by selecting Create data collection item ...
in Transformation tab for delta calculation I chose None(keep original value) and in transformation script  wrote "return $1 * 8"
but the value which this DCI shows seems incorrect
Did I do something wrong in definition of this DCI?
Title: Re: inbound/outbound Traffic DCI
Post by: Victor Kirhenshtein on August 17, 2020, 04:22:13 PM
Hi,

if you are using form with "return" statement you should put semicolon at the end, like

return $1 * 8;


r use expression only form, in which case semicolon is not needed:

$1 * 8


Best regards,
Victor
Title: Re: inbound/outbound Traffic DCI
Post by: atena on September 14, 2020, 10:22:12 AM
Thanks a lot for your response
I did what you said but when in last values I get history from outbound in this port I saw something weird, for example the raw value is 396953 but the value is 0
whats the problem???
Title: Re: inbound/outbound Traffic DCI
Post by: Victor Kirhenshtein on September 14, 2020, 11:31:38 AM
Hi,

is it after you corrected your script or it is some old values?

Best regards,
Victor
Title: Re: inbound/outbound Traffic DCI
Post by: atena on September 15, 2020, 07:46:25 AM
Is it after my correction
what can I do to correct it?
Title: Re: inbound/outbound Traffic DCI
Post by: Victor Kirhenshtein on September 15, 2020, 09:33:39 AM
Looks strange. Could you please provide screenshots of DCI configuration and values history?

Best regards,
Victor