question regarding 'folder/file availability' 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
jfreude
Posts: 27
Joined: Tue Oct 19, 2004 7:14 am

question regarding 'folder/file availability' test

Post by jfreude »

hey everybody,

just a short question regading folder/file availability test.
i set up a test which checks a folder for files with the extension *.fault.
the email (when the test goes bad) should contain the filename(s) matching *.fault. how do i do that? :)

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

Post by KS-Soft »

Use %FileName% variable
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro

Regards
Alex
jfreude
Posts: 27
Joined: Tue Oct 19, 2004 7:14 am

Post by jfreude »

Hey Alex,

thanks for the hint - it works!

Is it possible to check only for new files (new since the last test run) with a certain extension within a directory? When I use "Folder/File availability" the test goes bad, when the first file with *.fault is found and then remains bad.
I cannot use the "older/newer than" options because the *.fault files are being created sporadically.

Thanks a lot,
jfreude
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Could you please explain what exactly do you need to check and when do you want to start alerts (set "bad" status)?

Regards
Alex
jfreude
Posts: 27
Joined: Tue Oct 19, 2004 7:14 am

Post by jfreude »

Hopefully my explanation is better this time....

We have an application which works with *.job files, these files are all stored within one folder. Sometimes a *.job file is damaged, the application then renames the *.job' to '*.job.fault'.

i want to create a test which checks the folder for new '*.job.fault' files, e.g. the test runs and three '*.job.fault' are in the folder, there will be an alert.
when the test runs again and no new '*.job.fault' (but the three old ones) are in the folder, the test's status should be 'good'.
but when the test runs again and a new (the three old ones are still also in the folder) *.job.fault is found, there should be an alert again.

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

Post by KS-Soft »

I think you may use Count Files test method. Use the following options
- "Count files newer than N min" where N should be equivalent to test interval.
- Alert when folder contains more than 0 files

Note: you will not be able to use %FileName% variable then

Regards
Alex
Post Reply