File change test.

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
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

File change test.

Post by Dubolomov »

Hi.
I have a small problem of checking file changing. I try to check abend.log file on NetWare systems. It was used Text Log test for this. But for remote servers with low connection this test may lock file for changing while checking. This is why i cant use File Integrity test too. File Availability test have limitations for file time modifications but it will not alert if file was changed while it doesn't have access to server. In File Size test i must manually change parameter of file size after changing file. Is it possible to check file size or file date and time modification where alert will be executed if %Reply% not equal %LastReply%?
Thanks.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: File change test.

Post by KS-Soft Europe »

Dubolomov wrote:Is it possible to check file size or file date and time modification where alert will be executed if %Reply% not equal %LastReply%?
You may setup a dependant test, that depends on expresion, like: ('::Parent_Test_Name::%Reply%'<>'::Parent_Test_Name::%LastReply%')
http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master

Actually, I do not think, it is a good idea to change file size manually. I think, you may use "Schell Script" test method to figure it out. However, you should write appropriate script. You may use "dir filename" command to get information about certain file and parse it using "for " command. Also script should write "file size" into temporary file, and retrieve this information to compare with current file size on tne next iteration. You may try to write such script by yourself, in case you will fail, I may assist you. http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell

Regards,
Max
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Post by Dubolomov »

Thank you. But i found other solution. In File Size test i checked "Use normal status if" with '%Reply%'=='%LastReply%' condition. And option "Alert when size greater then" i set to 0 bytes.
Post Reply