NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: File Size Not Working Correctly? (Current State Always 1)  (Read 217 times)

TICK_TEL

  • Newbie
  • *
  • Posts: 22
    • View Profile
File Size Not Working Correctly? (Current State Always 1)
« 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.
Code: [Select]
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?
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6539
    • View Profile
Re: File Size Not Working Correctly? (Current State Always 1)
« Reply #1 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
Logged

TICK_TEL

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: File Size Not Working Correctly? (Current State Always 1)
« Reply #2 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.
Logged

TICK_TEL

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: File Size Not Working Correctly? (Current State Always 1)
« Reply #3 on: May 08, 2019, 01:42:45 pm »

Any further ideas @Victor Kirhenshtein?
Logged

TICK_TEL

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: File Size Not Working Correctly? (Current State Always 1)
« Reply #4 on: May 13, 2019, 11:48:24 am »

Hello?
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6539
    • View Profile
Re: File Size Not Working Correctly? (Current State Always 1)
« Reply #5 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
Logged

TICK_TEL

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: File Size Not Working Correctly? (Current State Always 1)
« Reply #6 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
Logged