Richard,

That did it! Thank you.

Tim Huffman
Director of Engineering
Business Only Broadband
777 Oakmont Lane, Suite 2000, Westmont, IL 60559
Direct: 630.590.6012 | Main: 630.590.6000 | Fax: 630.986.2496 
[email protected]  |  http://www.bobbroadband.com/
Cell:  630.340.1925 | Toll-Free Customer Support:  877.262.4553
 please consider the environment prior to printing


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Richard Brown
Sent: Tuesday, August 23, 2011 10:25 PM
To: InterMapper Discussion
Subject: Re: [IM-Talk] Comparing a parameter and MIB variable

Tim,

Thanks for the question. 

> I've got a parameter (PCN_value, expected signal level on a radio), which I 
> trying to compare to a MIB variable ($RSL, actual signal level), and alarm on.
> 
> I need to alarm if the ($RSL/10) is less than ($PCN_value - 5). What's the 
> best way to accomplish this?


You'll need to make a SNMP probe, and replace these three sections of the 
probe. 

1) <parameters> Here's where you specify the PCN threshold that the customer 
enters
2) <snmp-device-variables> This is where you specify the SNMP OID(s) to 
retrieve. You can also do calculations here.
3) <snmp-device-thresholds> This does the actual comparison and sets the device 
status.

An easy way to get a probe template is the Interactive SNMP Probe Builder at 
http://intermapper.com/probebuilder.aspx Fill in the Descriptive Text and the 
Optional Configuration fields. Leave the SNMP MIB Variables and OIDs and 
Thresholds fields blank, since you're going to provide them (see sample below). 
The "The SNMP Probe File" on the page has text that you can copy into a text 
document and import into InterMapper. (using File -> Import... -> Probe)

I haven't tested this code, but the three sections mentioned above would look 
something like the code at the end of this message. Update that text file and 
re-import. Please get back to me if you have questions. Thanks.

Rich Brown                    [email protected]
Dartware, LLC                 http://www.intermapper.com
66-7 Benning Street           Telephone: 603-643-9600
West Lebanon, NH 03784-3407   Fax: 603-643-2289


------------------

-- Customer enters the parameter for PCN. Defaut set to 10. You should 
substitute a real value.
<parameters>
        PCN = "10"
</parameters>

-- Retrieve the SNMP variable 1.3.6.1.4.1.xxxx and set the variable $RSL to 
that value
-- Compute $RSL10 by dividing $RSL by 10
-- Compute the PCN threshold by subtracting 5 from $PCN

<snmp-device-variables>
        RSL,       1.3.6.1.4.1.xxxx, DEFAULT,     "Received Signal Level"
        RSL10,     $RSL/10,          CALCULATION, "RSL/10"
        PCNthresh, $PCN-5,           CALCULATION, "PCN less 5"
</snmp-device-variables>

-- Compare $RSL10 to $PCNthresh. If it's lower, then set the device status to 
Alarm

<snmp-device-thresholds>
        Alarm: $RSL10 < $PCNthresh "RSL ($RSL10) is too low (below $PCNthresh)"
</snmp-device-thresholds>.+-j?!?????i??0?f?????+?r???{^?f????jY8?X??????y?&?:.??????m????j)m???z????M?d?????]j?pj???

Reply via email to