ODBC Query with right value, but false alert value

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
morphil
Posts: 5
Joined: Mon Sep 17, 2012 2:55 am
Location: Österreich

ODBC Query with right value, but false alert value

Post by morphil »

As you can see in the screenshot, the test return value =6 and the alert value is > 100.

Nevertheless it always turns Status=Bad

Image

Did I miss something?
KS-Soft
Posts: 12887
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

integer 6 < integer 100
string "6" > string "100"
Are you checking My SQL database?
My SQL manual tells about integer type but in reality it returns varchar.

If server returns some non-numeric data and you need to compare such data as numbers, you may use Optional status processing options (Test properties dialog).
E.g.
- set Normal status if "%SuggestedReply%"<=100
- set Warning status if "%SuggestedReply%">100

Regards
Alex
morphil
Posts: 5
Joined: Mon Sep 17, 2012 2:55 am
Location: Österreich

Post by morphil »

perfect, this works, thanks
Post Reply