SNMP queries not comparing correctly

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
BHarvey
Posts: 33
Joined: Sun Oct 27, 2002 6:00 pm

Post by BHarvey »

If an SNMP query return is formatted as a string, when doing a numeric comparison (e.g., >, <, etc.) it improperly compares results. For instance, the UCD-snmp OID 1.3.6.1.4.1.2021.10.1.3.1 is the 1 minute load average returned as type 'String'. If setting a check like "If <OID result> > 10 ", it fails even if the result is 2.2. Can we have a checkbox to force this to be evaluated as an integer instead of a string? This would be very helpful when using the UCD-snmp extTable entries as the output is always returned as type String.

Thanks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I cannot say "SNMP queries not comparing correctly". HostMonitor checks type of result and makes a comparison according to data type. Unfortunately SNMP protocol doesn't have any non integer numeric type and some programs must use string type to represent numbers.
You are right, new option can be useful. Problem just where find space on screen for this option.. will think

Regards
Alex
Locked