KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Tune up reply value question

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
bmekler



Joined: 17 Apr 2012
Posts: 32

PostPosted: Thu May 31, 2012 7:25 am    Post subject: Tune up reply value question Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Thu May 31, 2012 10:02 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
bmekler



Joined: 17 Apr 2012
Posts: 32

PostPosted: Thu May 31, 2012 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index