hi there,
I'm trying to test a simple log file if a string is contained. The problem is, that the backup software creates a new file every day with a variable start timer. I tried to use the log file test, but this does not work steadily.
I also tried the compare files method. This would work but I'm unable to use wildcards to check the variable date filename.
The filename is like this "2009-09-05-21-00-04.log" and another day its "2009-09-06-21-01-04.log".
Is there a way to use wildcard in the compare files test or another solution to this issue?
regards
zubler
Test "variable" logfile contains string
You may use wildcard but I don't think this will help. In such case HostMonitor will take 1st matched file and check it.
If that software adds new files into the same directory, you should checks last (newest file) instead of 1st file. Am I right?
Then you should create Compare Files test item and use %NewestFile% macro variable, e.g. c:\application\logs\%NewestFile%
http://www.ks-soft.net/hostmon.eng/mfra ... htm#macros
Regards
Alex
If that software adds new files into the same directory, you should checks last (newest file) instead of 1st file. Am I right?
Then you should create Compare Files test item and use %NewestFile% macro variable, e.g. c:\application\logs\%NewestFile%
http://www.ks-soft.net/hostmon.eng/mfra ... htm#macros
Regards
Alex
Hi Alex,
I haven't seen this macro variable, this is just that what I was looking for. great job, thank you! My test works fine now...
But I have another issue with the test. I have a UNC path to a logfile, this one: \\server\c$\Dokumente und Einstellungen\User\.obm\log\1207320176325\%NewestFile%
But the result is always "RMA: 301 - File doesnt exist". But I have access to this file when I browse them in the test properties. Does someone have an idea?
regards
Zubler
I haven't seen this macro variable, this is just that what I was looking for. great job, thank you! My test works fine now...
But I have another issue with the test. I have a UNC path to a logfile, this one: \\server\c$\Dokumente und Einstellungen\User\.obm\log\1207320176325\%NewestFile%
But the result is always "RMA: 301 - File doesnt exist". But I have access to this file when I browse them in the test properties. Does someone have an idea?
regards
Zubler
Yes, looks like there was a problem in Active RMA 3.47. This problem was fixed and latest version works just fine (Active RMA 3.49 included into Advanced Host Monitor 8.24 Beta)
http://www.ks-soft.net/hostmon.eng/downpage.htm
Also, I think there is mistake in the UNC path .obm. filename cannot include dot...
Regards
Alex
http://www.ks-soft.net/hostmon.eng/downpage.htm
Also, I think there is mistake in the UNC path .obm. filename cannot include dot...
Regards
Alex