|
View previous topic :: View next topic |
Author |
Message |
bmekler
Joined: 17 Apr 2012 Posts: 38
|
Posted: Thu May 31, 2012 7:25 am Post subject: Tune up reply value question |
|
|
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? |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Thu May 31, 2012 10:02 am Post subject: |
|
|
Quote: | 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 are right, HostMonitor tries to compare original OID 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. |
|
Back to top |
|
|
bmekler
Joined: 17 Apr 2012 Posts: 38
|
Posted: Thu May 31, 2012 1:47 pm Post subject: |
|
|
Thank you, this works fine. If the temperature sensor goes out of two digit range, in either direction, I've got bigger problems |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|