Macro Variables for File Names

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
pmwither
Posts: 16
Joined: Thu Feb 19, 2004 7:24 am

Macro Variables for File Names

Post by pmwither »

Is it possible to manipulate the dates using the macro variables?

For example, we have a log file that is created each day and is named with the date in the name like 19-feb-04. I would like to compare today's file with yesterday's file and be notified of any changes. Is there anyway I can specify yesterday's date using the macros?

I just started using Host Monitor a week ago... It is an amazing product... Far superior to our current monitoring package! :D

Thanks!
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

In addition to this, I have another question regarding macros and filenames.

I save some of my files each day.

Filename is like this:
\hm\logs\2004\%yyyymmdd%.htm

But why isn't possible to do this:
\hm\logs\%yyyy%\%yyyymmdd%.htm

Now I have to change place of logs in tests, and optionfiles for reportscripts every year.. Just think about a directory for every month or day... :-)

Regards,
/Stoltze
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

But why isn't possible to do this:
\hm\logs\%yyyy%\%yyyymmdd%.htm
Its possible, just change expression a little: \hm\logs\%yyyy\yyyymmdd%.htm

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Is it possible to manipulate the dates using the macro variables?
Not yet. But I think next version of HostMonitor will support expressions like %ddmmyy[-1m]% or %dmmyyyy[+5d]%

Regards
Alex
pmwither
Posts: 16
Joined: Thu Feb 19, 2004 7:24 am

Post by pmwither »

Thanks Alex! This would be great. When do you expect the next revision to be released?
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

KS-Soft wrote:
But why isn't possible to do this:
\hm\logs\%yyyy%\%yyyymmdd%.htm
Its possible, just change expression a little: \hm\logs\%yyyy\yyyymmdd%.htm
Does AHM support more than one variable?

like \hm\%yyyy%\logs\%yyyymmdd%.htm

Regards,
Stoltze
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Thanks Alex! This would be great. When do you expect the next revision to be released?
I think within 3 weeks

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Does AHM support more than one variable?
like \hm\%yyyy%\logs\%yyyymmdd%.htm
Depends where. All file related test methods (Count Files, File Availability, etc) support more than one variable.
Path to log file may have just one variable. But the same path you may define as \hm\%yyyy\log\yyyymmdd%.htm HostMonitor translates d,m,y,s,c,h,n,z,t characters, other symbols will not be changed.

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

PS On the other hand we can add possibility to use several variables in path to the log as well. Expect in next version

Regards
Alex
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

KS-Soft wrote:PS On the other hand we can add possibility to use several variables in path to the log as well. Expect in next version

Regards
Alex
That would be really great!! Thnx..

Regards,
/Stoltze
Post Reply