Two directorys to compare

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
steinkoj
Posts: 6
Joined: Fri May 18, 2012 2:43 am

Two directorys to compare

Post by steinkoj »

I must compare two directorys how many Files (from today) are inside and is the number not equal it should make the status bad.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may use two Count Files tests to count files in two different folders
and enable "Use Warning status if" option for one test with expression like the following:
'%SuggestedReply%'<>'%::Count Files 02::Reply%'
Count Files 02 - name of the second count files test.

On the other hand, you may use Shell Script test for custom tests.

Please check for details at:
Use Warning status if option: http://www.ks-soft.net/hostmon.eng/mfra ... ningstatus
Shell Script test method: http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell
Post Reply