NetXMS Support Forum

English Support => General Support => Topic started by: TICK_TEL on May 01, 2019, 10:56:31 AM

Title: File Size Not Working Correctly? (Current State Always 1)
Post by: TICK_TEL on May 01, 2019, 10:56:31 AM
Hello,

I am using the FileSize param in order to calculate the size of a file within a directory.
File.Size(S:\ftp\blah\,*,0)

A threshold has been setup.
Last Polled Values
Samples: 1
< : Less then 64000000000
Activation Event SVC_File_Size_Alert
Deactivation Event Sys_threshold_Rearmed

The file size is 65000000000+ but yet the current state is still 1 when this should be 0.

Any ideas?
Title: Re: File Size Not Working Correctly? (Current State Always 1)
Post by: Victor Kirhenshtein on May 01, 2019, 10:51:23 PM
Hi,

do you see correct value in "Last values"? Do you have data type for DCI set to 64 bit integer?

Best regards,
Victor
Title: Re: File Size Not Working Correctly? (Current State Always 1)
Post by: TICK_TEL on May 03, 2019, 10:48:25 AM
I didn't have it set as a 64 bit integer, so I've now changed it to this. But doesn't appear to have made any difference. The current state is till 1.
Title: Re: File Size Not Working Correctly? (Current State Always 1)
Post by: TICK_TEL on May 08, 2019, 01:42:45 PM
Any further ideas @Victor Kirhenshtein?
Title: Re: File Size Not Working Correctly? (Current State Always 1)
Post by: TICK_TEL on May 13, 2019, 11:48:24 AM
Hello?
Title: Re: File Size Not Working Correctly? (Current State Always 1)
Post by: Victor Kirhenshtein on May 13, 2019, 02:40:41 PM
Hi,

it looks like a bug (likely related to handling 64 bit integers), but we didn't have time to check it yet. Somebody from the team will take a look at it shortly. You may also register issue in out tracker - that will help not forget about this issue.

Best regards,
Victor
Title: Re: File Size Not Working Correctly? (Current State Always 1)
Post by: TICK_TEL on May 16, 2019, 10:56:37 AM
Thanks Victor. I have raised it on the bug tracker; https://track.radensolutions.com/issue/NX-1636
Title: Re: File Size Not Working Correctly? (Current State Always 1)
Post by: TICK_TEL on May 22, 2019, 03:59:08 PM
Managed to resolve this by upgrading to the latest Server and Web UI version.

I was looking at the wrong DB - The issue is still not fixed. Could you mark as unresolved - https://track.radensolutions.com/issue/NX-1636