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
SNMP Alert
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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 ?
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 ?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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:
You should try to set Alert condition with two leading spaces and without quotemarks.
Also, description of OID 1.3.6.1.4.1.2.3.51.1.2.1.5.1.0 says:
That means OID returns value " 19.00 Centigrade" with two spaces before 19.00 Centigrade"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."
You should try to set Alert condition with two leading spaces and without quotemarks.