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

Comparing textstring

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
nvdvelden



Joined: 10 Mar 2004
Posts: 6

PostPosted: Thu Mar 11, 2004 3:49 am    Post subject: Comparing textstring Reply with quote

An Access query selects lines from an ascii file generated on a server.
The results are read from the host_monitor by a query in HM generating a table equal to the ascii file. In a specific linenumber there is a result of a calculation. Comparing this result in ODBC SQL test for alert when field in line X > 10 only works when the result is > 10. So far so good. When the result >10 and the alert limit <10 then there is no alert.

Is there any solution?


B.t.w. I posted this question already in the topic installation and configuration but now I hope my question is more clear.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12801
Location: USA

PostPosted: Thu Mar 11, 2004 10:44 am    Post subject: Reply with quote

Yes, now its more clear. At least I know you work with "ODBC query" test (not with Text Log test). Please don't mix problems in one topic

As I think that field (that you compare to 10) is not numeric field. In this case HostMonitor compare it as string, so '15' is less than '2', 'a'<'b', '111'<'99', so on.
If you need to compare this field as number, change type of the field.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting 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