Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

429

December 10th, 2008 13:00

Trying to save a value across polls

I am using SMARTS IP to poll network devices and have sucessfully modified the example in the tutorial to poll a variety of mibs and generate events and do calculations and create events based on simple thresholds.

However I need to save a value across polls to compare; i.e. an interface might be erroring at 1.5%, and I don't want to generate an event based on a simple threshhold, but only if the error goes up by .1% on the next poll So I need the error rate from the previous poll saved on a per-network-element basis. How can I do this in a .mdl file?

Thanks for your help.

Andy

December 10th, 2008 15:00

Hi Andy,

using the "delta" operator should do what you need.

--Fred

== Monitor your Smarts environnment using APG ReportPack for Smarts health ==
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration
http://www.watch4net.com

2 Intern

 • 

138 Posts

December 10th, 2008 20:00

Hello Andy.

Don't forget to use #pragma WrapCounter before delta operator.

2 Posts

December 16th, 2008 12:00

Thanks for the replies. Note that #pragma WrapCounter only applies to SNMP counters; in this case I am trying to see the delta between polls of a calculated value, not a counter value. I did not believe delta would actually work on a calculated value but it does.

Andy

53 Posts

December 26th, 2008 17:00

You are correct. In this instance the WrapCounter pragma would not apply, but the delta operator can still be used.
No Events found!

Top