|
View previous topic :: View next topic |
Author |
Message |
MichaelF
Joined: 15 Feb 2011 Posts: 5
|
Posted: Tue May 24, 2011 12:43 pm Post subject: Problem with Text Log |
|
|
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? |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Tue May 24, 2011 1:40 pm Post subject: 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/mframe.htm#tests.htm#textlog
Compare Files test: http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#filecmp |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue May 24, 2011 4:33 pm Post subject: |
|
|
You should use "Look for expression" option instead of "Look for string".
Expression should look like 'Erreichbar=No' or 'LizPool_konsistent=No' or 'Konsistent=No' or 'SWM_OK=No'
If you just want to check if any parameter is set to 'No', check for "=No' string as suggested before.
Regards
Alex |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|