KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

macro variables

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
simonl



Joined: 03 Apr 2002
Posts: 49

PostPosted: Fri Sep 21, 2007 8:18 am    Post subject: macro variables Reply with quote

I'm trying to use macro variables to compress old common log files with HostMonitor special processing option but it's not working.
Here is the line of command which I'm using:
cmd /c c:\Program Files\WinZip\WZZIP.EXE "D:\Program Files\HostMonitor6\Logs\%mmddyyyy[-1d]%-log.zip" "D:\Program Files\HostMonitor6\Logs\%mmddyyyy[-1d]%-log.txt"

I can see entry in syslog.htm as:
Log processing: cmd /c c:\Program Files\WinZip\WZZIP.EXE "D:\Program Files\HostMonitor6\Logs\%mmddyyyy[-1d]%-log.zip" "D:\Program Files\HostMonitor6\Logs\%mmddyyyy[-1d]%-log.txt" ...

Could you please let me know if this is correct?

Thank you.

Simon.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Sep 21, 2007 9:23 am    Post subject: Reply with quote

Sorry, HostMonitor does not allow you to use "Date & Time" macro variables on "Log Processing" tab of the "Options" dialog.
You may use special variables in the command line:
%log% - represents full name (including path) of the log file (e.g. C:\Program Files\HostMonitor\Logs\04-2004.htm)
%logpath% - represents path to the log file (including trailing back slash. E.g. C:\Program Files\HostMonitor\Logs\)
%logname% - represents name of the log file (e.g. 04-2002.htm)
%logext% - represents extension of the log file (e.g. ".htm")
http://www.ks-soft.net/hostmon.eng/mframe.htm#options.htm#logprocessing

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index