Hi,
i have a problem with a text log test.
I would like to test a text log if following Words are in my txtfile.
"Erreichbar=Yes ; LizPool_konsistent=Yes ; Konsistent=Yes ; SWM_OK=Yes"
If one of these Words are "No" then hostmoni must reply me a bad state.
For Example "Erreichbar=Yes ; LizPool_konsistent=No ; Konsistent=Yes ; SWM_OK=Yes "
but hostmoni says always OK. What is my mistake?
My test looks like these:
Test Method Text Log ;
Encoding ASCII File ;
File to test C:\test.txt ;
Bad text look for string "Erreichbar=No;LizPool_konsistent=No;Konsistent=No;SWM_OK=No"
Can anybody help me please?
Problem with Text Log
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Problem with Text Log
if Bad text look for string="Erreichbar=No;LizPool_konsistent=No;Konsistent=No;SWM_OK=No"
HostMonitor will warn you when whole string "Erreichbar=No;LizPool_konsistent=No;Konsistent=No;SWM_OK=No" is found in NEW text file record.
In your case, "Bad text look for string" should be "=NO"
Please note: Text Log test warns you only when the string is found in a NEW record.
If you want to check whole file (not only NEW added records), Compare Files test method with option "Alert when file contains string" should be used.
Please check the manual or visit our web site for more information at:
Text log test: http://www.ks-soft.net/hostmon.eng/mfra ... tm#textlog
Compare Files test: http://www.ks-soft.net/hostmon.eng/mfra ... tm#filecmp
HostMonitor will warn you when whole string "Erreichbar=No;LizPool_konsistent=No;Konsistent=No;SWM_OK=No" is found in NEW text file record.
In your case, "Bad text look for string" should be "=NO"
Please note: Text Log test warns you only when the string is found in a NEW record.
If you want to check whole file (not only NEW added records), Compare Files test method with option "Alert when file contains string" should be used.
Please check the manual or visit our web site for more information at:
Text log test: http://www.ks-soft.net/hostmon.eng/mfra ... tm#textlog
Compare Files test: http://www.ks-soft.net/hostmon.eng/mfra ... tm#filecmp