Hey guys.
I need some help with monitoring the number of XML files in a Windows directory.
For that, I have tried this item key.
This should count the XML files that match the regular expression "\d+.xml" in the specified directory. However, I only want to count the files that were created or modified today, and ignore the previous ones.
I know that the "max_age" parameter from the "vfs.dir.count" key can filter the files by their age, but It does not support a time shift (1d:now/d+1d) for the current day.
Does anyone have a better solution for counting files in a directory for the current day?
I need some help with monitoring the number of XML files in a Windows directory.
For that, I have tried this item key.
Code:
vfs.dir.count["E:\dir\path","\d+.xml",,file,,0,,,,1d]
I know that the "max_age" parameter from the "vfs.dir.count" key can filter the files by their age, but It does not support a time shift (1d:now/d+1d) for the current day.
Invalid parameters: strconv.ParseInt: parsing "1d:now/d+1": invalid syntax.
Does anyone have a better solution for counting files in a directory for the current day?
Assign to your server, run on schedule every midnight.
Comment