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.
File Folder Availability Bug
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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
Actually, you may not agree with test method names, but it's not a bug in any case.
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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
Could you export this particular test (menu "File"->"Export to text file") and send it to support@ks-soft.net, please?
Regards,
Max
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" ?
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" ?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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\*.txtHeini_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" ?
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
I redirected your request to administrator.Heini_net wrote:PS: it is able to change my nick into "MirkoW"
Regards,
Max