2,946 Views 7 Replies Last post: Oct 4, 2008 7:46 AM by sergeymasushko RSS
sergeymasushko Rank: White Belt 62 posts since
Sep 23, 2008
Currently Being Moderated

Sep 30, 2008 11:42 AM

Threshold value

Hi to all. I have a question. I can get upperlimit of temperature by snmp. Can I set this value as 'Max Value' of threshold in the 'Performance Template' of device. I guess it is possible but I do not know how to do it.
Thanks, Sergey.
shaskell Rank: Green Belt 115 posts since
Feb 27, 2008
Currently Being Moderated
1. Sep 30, 2008 12:34 PM in response to: sergeymasushko
RE: Threshold value
I don't believe there is a way. A Min/Max threshold should not be a dynamic value.

Is the value you're getting through SNMP a dynamic value? If not, what's the difference between statically assigning it in the GUI and assigning it via SNMP? You'll have to make the change either on the device or in Zenoss if you ever want to adjust your threshold. Why not just assign it in Zenoss?
shaskell Rank: Green Belt 115 posts since
Feb 27, 2008
Currently Being Moderated
3. Sep 30, 2008 1:14 PM in response to: sergeymasushko
RE: Threshold value

"sergeymasushko" wrote:

 

 

"shaskell" wrote:

 

I don't believe there is a way. A Min/Max threshold should not be a dynamic value.

Is the value you're getting through SNMP a dynamic value? If not, what's the difference between statically assigning it in the GUI and assigning it via SNMP? You'll have to make the change either on the device or in Zenoss if you ever want to adjust your threshold. Why not just assign it in Zenoss?



You are right this value is not dynamic... but this value frequently changes manually. In this case we need to change this value in two places (on the device and on the zenoss side).



Well, it could probably be done with a python script and an event command. If you're familiar with python and the Zenoss API, you could accomplish this. What's your level of familiarity with either? I've got some ideas in my head to get this to work...

I'd be willing to try and script something that will work for you... If you can hang in there, I'd probably be able to figure this out in a week or so (busy with work and some other things...).
shaskell Rank: Green Belt 115 posts since
Feb 27, 2008
Currently Being Moderated
5. Oct 3, 2008 5:59 PM in response to: sergeymasushko
RE: Threshold value

"sergeymasushko" wrote:

 

 

"shaskell" wrote:

 

Well, it could probably be done with a python script and an event command. If you're familiar with python and the Zenoss API, you could accomplish this. What's your level of familiarity with either? I've got some ideas in my head to get this to work...

I'd be willing to try and script something that will work for you... If you can hang in there, I'd probably be able to figure this out in a week or so (busy with work and some other things...).



I thought it would be more easy sad I have some experience with perl... but I never works with python... also I'm using zenoss about 1 month...



I've written a script to do this. I'll post the code and instructions on my blog and update this page with a link.
shaskell Rank: Green Belt 115 posts since
Feb 27, 2008
Currently Being Moderated
6. Oct 3, 2008 7:17 PM in response to: shaskell
RE: Threshold value

"shaskell" wrote:

 

 

"sergeymasushko" wrote:

 

 

"shaskell" wrote:

 

Well, it could probably be done with a python script and an event command. If you're familiar with python and the Zenoss API, you could accomplish this. What's your level of familiarity with either? I've got some ideas in my head to get this to work...

I'd be willing to try and script something that will work for you... If you can hang in there, I'd probably be able to figure this out in a week or so (busy with work and some other things...).



I thought it would be more easy sad I have some experience with perl... but I never works with python... also I'm using zenoss about 1 month...



I've written a script to do this. I'll post the code and instructions on my blog and update this page with a link.



Here's the link. Good luck!

http://www.thetechchef.com/zenoss-snmp-min-max-update/

More Like This

  • Retrieving data ...

Bookmarked By (0)