SNMP Alert

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
corrado68
Posts: 2
Joined: Fri Feb 17, 2012 6:46 am

SNMP Alert

Post by corrado68 »

Hello,

I have one SNMP GET test that monitor the temperature environment, the reply of test have this format : "19.00 Centigrade". I try to have one alert using Alert when OID is > 25 or using '25' but it doesn't work.

How can I have an alert when the reply is a string and not a number ?

Thanks

Corrado
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

When device returns String reply, HostMonitor will compare values as strings.
E.g. if you will set Alert when OID is > 25 and reply will be
string 27.00 Centigrade test should return "Bad" status.
However, if device will return 9.00 Centigrade test also will return "Bad" status (because string 9.00 Centigrade is > then string 25)

In many cases, devices have several OID's that return the same information
in different formats.
What exactly OID do you use to check temperature ?
corrado68
Posts: 2
Joined: Fri Feb 17, 2012 6:46 am

Post by corrado68 »

Hi,

I get the temperature from one IBM RSA and use the OID 1.3.6.1.4.1.2.3.51.1.2.1.5.1.0

Thanks
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

As I can see all temperature counters returned by IBM RSA have OCTET STRING type.
Also, description of OID 1.3.6.1.4.1.2.3.51.1.2.1.5.1.0 says:
"System's ambient temperature in degrees centigrade(C).
This is surrounding temperature where the system is installed.
An octet string expressed as 'sddd.dd Centigrade' where:
s is the sign ('-' for negative or blank space for positive)
d is a decimal digit or blank space for a leading zero..
The string 'Not Readable!' indicates that the given monitor
is not supported on this system."
That means OID returns value " 19.00 Centigrade" with two spaces before 19.00 Centigrade
You should try to set Alert condition with two leading spaces and without quotemarks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, that counter returns string and I do not see similar counter that return integer or opaque data (that can be converted to float number) :(

Regards
Alex
Post Reply