NetXMS Support Forum

English Support => General Support => Topic started by: duanebutler on February 24, 2017, 09:35:55 AM

Title: Compare system time with timestamp of file last modified
Post by: duanebutler on February 24, 2017, 09:35:55 AM
Good day

Is there a way i can compare the modified timestamp of a file against the system time.

DCI already configured. Just need to set the threshold if the file was not modified after 60 mins. And for this i need to compare the two times.

Regards
Title: Re: Compare system time with timestamp of file last modified
Post by: tomaskir on February 24, 2017, 02:27:34 PM
Make it a script threshold.

Then compare the value to the result of time() function.
https://wiki.netxms.org/wiki/NXSL:time