KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

TextLog test: Invalid expression, Unknown operator found

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
rc



Joined: 01 Aug 2005
Posts: 101

PostPosted: Wed Feb 06, 2013 3:24 am    Post subject: TextLog test: Invalid expression, Unknown operator found Reply with quote

Hi Aleks,

I don't understand the Reply message from this text log test:

Tested object info : Text log file D:\jboss7\standalone\log\solvencyCheckService_error.log on localhost
Status : Unknown
Reply : Invalid expression: Unknown operator: "&'"


What does it mean?
HostMonitor should search a specific string and not an expression.
It seems that HostMonitor try to interpret the found text as expression.
This makes no sense in my opinion.

My test settings:
File = D:\jboss7\standalone\log\solvencyCheckService_error.log
FileMacros = No
AlertMode = LastEvent
ReplyMode = Line
ReplyFilter = WholeLine
ReplyRange1 = 0
ReplyRange2 = 0
TestOkMode = IfNoBadEvent
BadFilter = 1
LookFor = ERROR
LookMode = String
MatchCase = Yes
WholeWord = No
UseMacros = No
Encoding = ASCII
CodePage = 1252


Here is the original found line from this text log:
2013-02-05 06:17:09,923 ERROR.TEXT=Error in UserDefinedFunction Normierung_Text: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'. Exception: de.insiders.dss.core.SchufaException: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'.

Many thanks in advance!

Enrico
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2833

PostPosted: Wed Feb 06, 2013 9:24 am    Post subject: Reply with quote

Cannot reproduce this error.
What HostMonitor version do you use ?

Is this exact text in your log file(D:\jboss7\standalone\log\solvencyCheckService_error.log)?
Quote:
2013-02-05 06:17:09,923 ERROR.TEXT=Error in UserDefinedFunction Normierung_Text: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'. Exception: de.insiders.dss.core.SchufaException: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rc



Joined: 01 Aug 2005
Posts: 101

PostPosted: Wed Feb 06, 2013 9:44 am    Post subject: Reply with quote

We use Advanced Host Monitor v 9.32 and the test is executed by RMA v 4.53
The text line from the log file is a bit stripped-down. I can send you the hole line to your private address
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2833

PostPosted: Wed Feb 06, 2013 9:53 am    Post subject: Reply with quote

Please send whole line or log file to support@ks-soft.net
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rc



Joined: 01 Aug 2005
Posts: 101

PostPosted: Thu Feb 07, 2013 3:22 am    Post subject: Reply with quote

Ok, I sent you the hole line from logfile to support@ks-soft.net
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Thu Feb 07, 2013 11:29 am    Post subject: Reply with quote

- You are using '%SuggestedReply%'=='RMA: Connection error' expression for "Normal" status
- You are using ReplyFilter:WholeLine option for the test
- Log contains string with quotation marks.

The same marks used for logical expression. This means %SuggestedReply% variable contains quotation marks so expression '%SuggestedReply%'=='RMA: Connection error' cannot be evaluated properly.

Solution? If your log file does not contain strings with "" marks, use these marks instead of ''

Regards
Alex
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rc



Joined: 01 Aug 2005
Posts: 101

PostPosted: Fri Feb 08, 2013 8:27 am    Post subject: Reply with quote

Ok, I understand the problem and I will try your solution.

Thank you
Enrico
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index