Problem with Text Log

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
MichaelF
Posts: 5
Joined: Tue Feb 15, 2011 2:47 am

Problem with Text Log

Post by MichaelF »

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Problem with Text Log

Post by KS-Soft Europe »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
Post Reply