HostMonitor 9.18, Active RMA 4.48.
I'm trying to monitor temperature sensors on NetApp filers using SNMP. OID 1.3.6.1.4.1.789.1.21.1.2.1.25.1 returns a string similar to the following:
29C (84F), 27C (80F), 26C (78F), 26C (78F)
Where each temperature sensor available in the filer is listed with celsius and farenheit readings, separated by commas. There are no separate OIDs for each sensor. Therefore, to get the actual temperature, for, say, sensor #3, I'm using the following tune up reply value expression:
[substr('%SuggestedReply%' getword 5,1,2)]
With the above reply, it properly logs the value of 26. However, when I'm attempting to evaluate it for alert purposes (alert when OID 1.3.6.1.4.1.789.1.21.1.2.1.25.1 is > 35), the alert is triggered immediately - it seems to me that it evaluates the original reply, rather than the tuned up value.
Is there a way to accomplish this with HostMonitor?
Tune up reply value question
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
You are right, HostMonitor tries to compare original OID value.With the above reply, it properly logs the value of 26. However, when I'm attempting to evaluate it for alert purposes (alert when OID 1.3.6.1.4.1.789.1.21.1.2.1.25.1 is > 35), the alert is triggered immediately - it seems to me that it evaluates the original reply, rather than the tuned up value.
You may use "Use Warning status if" option.
It doesn't support "substr" function, however, you may use expression like the following:
(getword '%SuggestedReply%' 5) > '35C'
This expression will compare strings (e.g. 26C > '35C'),
If temperature value always has two digits, this should work well.