File Folder Availability Bug

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
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

File Folder Availability Bug

Post by MirkoW »

Hi,

i was wondered about a error message about an existing file but the folder is empty. so i think there is a bug in "Alert when" definitions. i think the choices are switches .

For example if i choose "Alert when file doesn't exist" so the Thest-Method in Table-View contain "File Exist"

And when i choose "Alert when file exist" so the Test-Method" contain "File doesn't exist"

EDIT: i use HM 7.78 via passive RMA Agent 3.85 for this Method.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

I do not agree with you. It works as expected. When you change "Alert when" condition, TestMethod is changed as well. It's made for Log Analyzer feature in order to separate "File exist" and "File does not exist" methods. Hence, selecting "Alert when file doesn't exist" option means you will get "Bad" status when file does not exist and "Good" status when file exists. So, its pretty logical to call test method "File exists" because "Good" status will be obtained when file exists. The same situaton with "Alert when file exists" option and "File not exists" test method.

Actually, you may not agree with test method names, but it's not a bug in any case.

Regards,
Max
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

Hm, but i do not understand, why the test is good but the folder is empty ?

i have choose the option "Alert when file doesn't exist".
The STATUS display still OK but the Folder is empty ??
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

What exact value have you specified into "File or Folder" input box in "Test Properties" window? If specified value is a folder and this folder exists, so status should be "Ok".
Could you export this particular test (menu "File"->"Export to text file") and send it to support@ks-soft.net, please?

Regards,
Max
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

Hi,

i just took it as read that this looking for any files in this folder.. but when it is only looking for a folder, why the test is OK when i selectet "Alert when file doesn't exist" ?

For example i use the folder c:\logerrors for incomming errors from other applications. and if there are any files, so HM should notify me.


PS: it is able to change my nick into "MirkoW" ?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Heini_net wrote:i just took it as read that this looking for any files in this folder.. but when it is only looking for a folder, why the test is OK when i selectet "Alert when file doesn't exist" ?
Test returns you Ok status because folder exists. Test method is called "File/Folder availability" because it can check either file or folder acording to specified value. If file is specified - it checks file, if folder is specified - it checks folder. To achieve your goal, you may use wildcard "*.log" or "*.txt", e.g. c:\logerrors\*.txt
Heini_net wrote:For example i use the folder c:\logerrors for incomming errors from other applications. and if there are any files, so HM should notify me.

You know, in this case, I would recommend you to use "Count Files" test method with "Alert when folder contains more than 0 files" option: http://www.ks-soft.net/hostmon.eng/mfra ... countfiles
Heini_net wrote:PS: it is able to change my nick into "MirkoW"
I redirected your request to administrator.

Regards,
Max
Post Reply