Hello,
I am wondering why my personal logic is not working extending the concept
filename_%yyyymmdd[-1d]%_name.txt
for a filename such as
filename_20080804_name.txt when the current date is 5th August 2008
for a filename that uses time, such as
filename_%hh[+1h]nn%_name.txt
where filename_1030_name.txt is a file generated at 09H30 with 1 hour added to make the file of a name for a different timezone
1 hour ahead of local time
Am I misunderstanding by using %hh[+1h]nn% please?
How to use "+1 hour" in using %hh% and %nn% syntax
Quote from the manual
Probably you can use wildcards? What test method do you use?
Regards
Alex
Sorry, there is no option for hours. May be we can implement such option in future versions...to subtract a number of days from current date, use expression like [-NNd] (e.g. %dd[-1d]%)
to add a number of days to current date, use expression like [+NNd] (e.g. %ddd[+22d]%)
to subtract a number of months from current date, use expression like [-NNm] (e.g. %dm[-24m]%)
to add a number of month to current date, use expression like [+NNm] (e.g. %ddmm[+1m]%)
to subtract a number of years from current date, use expression like [-NNy] (e.g. %dmyy[-2y]%)
to add a number of years to current date, use expression like [+NNy] (e.g. %ddmmyyyy[+10y]%)
Probably you can use wildcards? What test method do you use?
Regards
Alex
-
- Posts: 34
- Joined: Mon Apr 28, 2008 10:15 am
Thank you Alex for the very prompt and helpful advice!
I think I have this right, but just to be sure I have included the test here:
Method = CountFiles
;--- Common properties ---
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 300
Alerts =
ReverseAlert= Yes
UnknownIsBad= Yes
WarningIsBad= Yes
;--- Test specific properties ---
Folder = \\directory\path\
Mask = *_filename.xml
UseMacros = No
CountMode = NewerThan
CountValue = 6
FilesLimit = 0
The test logic I am after is:
Every 5 minutes count the number of files newer than 6 minutes and alert if none exist.
Have I got this right, please?
I think I have this right, but just to be sure I have included the test here:
Method = CountFiles
;--- Common properties ---
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 300
Alerts =
ReverseAlert= Yes
UnknownIsBad= Yes
WarningIsBad= Yes
;--- Test specific properties ---
Folder = \\directory\path\
Mask = *_filename.xml
UseMacros = No
CountMode = NewerThan
CountValue = 6
FilesLimit = 0
The test logic I am after is:
Every 5 minutes count the number of files newer than 6 minutes and alert if none exist.
Have I got this right, please?