Hot off the presses, monitors all you had plus more, overcomes the oid
changing thing
---------------------------------------------
Scott Piehn
----- Original Message -----
From: "IM-Talk-Forum" <[email protected]>
To: <[email protected]>;
<[email protected]>
Sent: Thursday, November 12, 2009 2:42 PM
Subject: [IM-Talk] "I'll tell you where you can put this probe..."
>
> Getting a little frustrated with an OID which keeps changing. I am
> trying
> to put a script together for Ubiquiti AirOS devices. The only problem
> is
> that their OIDs are dynamic. I'm trying to monitor some IEEE802.11 MIB
> variables.
>
> When I do:
>
> snmpwalk -v1 -c [string] [ip] .1.2.840.10036
>
> I get:
>
> iso.2.840.10036.1.1.1.1.7 = STRING: "00:15:6D:AD:38:6E"
> iso.2.840.10036.1.1.1.7.7 = INTEGER: 1
> iso.2.840.10036.1.1.1.8.7 = INTEGER: 1
> iso.2.840.10036.1.1.1.9.7 = STRING: "SSID"
> iso.2.840.10036.1.1.1.10.7 = INTEGER: 1
> iso.2.840.10036.1.1.1.11.7 = Hex-STRING: 02 04 0B 16
> iso.2.840.10036.2.1.1.1.7 = STRING: "00:15:6D:AD:38:6E"
> iso.2.840.10036.2.1.1.2.7 = INTEGER: 2346
> iso.2.840.10036.2.1.1.5.7 = INTEGER: 2346
> iso.2.840.10036.2.1.1.9.7 = STRING: "0xb202"
> iso.2.840.10036.2.2.1.3.7 = INTEGER: 0
> iso.2.840.10036.2.2.1.4.7 = INTEGER: 0
> iso.2.840.10036.2.2.1.14.7 = INTEGER: 0
> iso.2.840.10036.3.1.2.1.1.7 = STRING: "00:15:6D"
> iso.2.840.10036.3.1.2.1.2.7 = STRING: "Ubiquiti Networks, Inc."
> iso.2.840.10036.3.1.2.1.3.7 = STRING: "PowerStation2"
> iso.2.840.10036.3.1.2.1.4.7 = STRING: "XS2.ar2316.v3.4"
> iso.2.840.10036.4.1.1.1.7 = INTEGER: 5
> iso.2.840.10036.4.5.1.1.7 = INTEGER: 11
>
> After reboot, I get:
>
> iso.2.840.10036.1.1.1.1.8 = STRING: "00:15:6D:AD:38:6E"
> iso.2.840.10036.1.1.1.7.8 = INTEGER: 1
> iso.2.840.10036.1.1.1.8.8 = INTEGER: 1
> iso.2.840.10036.1.1.1.9.8 = STRING: "SSID"
> iso.2.840.10036.1.1.1.10.8 = INTEGER: 1
> iso.2.840.10036.1.1.1.11.8 = Hex-STRING: 02 04 0B 16
> iso.2.840.10036.2.1.1.1.8 = STRING: "00:15:6D:AD:38:6E"
> iso.2.840.10036.2.1.1.2.8 = INTEGER: 2346
> iso.2.840.10036.2.1.1.5.8 = INTEGER: 2346
> iso.2.840.10036.2.1.1.9.8 = STRING: "0xb202"
> iso.2.840.10036.2.2.1.3.8 = INTEGER: 0
> iso.2.840.10036.2.2.1.4.8 = INTEGER: 0
> iso.2.840.10036.2.2.1.14.8 = INTEGER: 0
> iso.2.840.10036.3.1.2.1.1.8 = STRING: "00:15:6D"
> iso.2.840.10036.3.1.2.1.2.8 = STRING: "Ubiquiti Networks, Inc."
> iso.2.840.10036.3.1.2.1.3.8 = STRING: "PowerStation2"
> iso.2.840.10036.3.1.2.1.4.8 = STRING: "XS2.ar2316.v3.4"
> iso.2.840.10036.4.1.1.1.8 = INTEGER: 5
> iso.2.840.10036.4.5.1.1.8 = INTEGER: 11
>
> The problem, then, is that not all of our ubiquiti devices have the
> same
> OID, and even if they do, they are not guaranteed to stay the same.
> How
> do I monitor this? Just for good measure, here is an example of the
> type
> of script I have been attempting to use:
>
>
> Code:
> <!--
> ubiquiti probe for InterMapper - http://intermapper.com
> Copy this text and save as a file named: test.ubiquiti.txt
> Then import it using File -> Import -> Probe...
>
> This is a custom probe that monitors several variables for InterMapper.
> ... You can add more commentary if it would be useful ...
>
>
> As you make modifications, be sure to update the Revision history
> below:
>
> Revisions:
> Thursday, November 12, 2009 Generated by Interactive SNMP Probe Builder
> page, version 1.0a1,
> at:
> http://www.intermapper.com/custom-probes-a-snmp/172-probe-builder
>
>
-----------------------------------------------------------------------------------
>
> Please feel free to use this file as a base for further development.
> Read the Developer Guide to learn more about InterMapper Probes. The
> Guide is at:
> http://dartware.com/go.php?to=intermapper.devguide
> -->
>
> -- The <description> section contains the text that will appear in the
> Set
> Probe... window.
> -- It gives you a chance to describe how the probe works, what the
> parameters are, and how to
> -- how to set it up.
>
> <description>
>
> \gb\ubiquiti\p\
>
> Experimental probe to overcome the dynamic OIDs present in Ubiquiti
> devices.
> </description>
>
> -- The <header> section determines the probe's unique name, what kind
> of
> probe it is,
> -- its Human Name, and its place in the probe picker hierarchy, and
> other
> assorted attributes.
>
> <header>
>
> "type" = "custom-snmp"
> "package" = "test"
> "probe_name" = "ubiquiti"
> "human_name" = "ubiquiti"
> "display_name" = "experimental/ubiquiti"
> "version" = "1.0"
> "address_type" = "IP,AT"
> "port_number" = "161"
>
> </header>
>
> -- <snmp-device-properties> are flags that alter the InterMapper
> probe's
> behavior.
> -- You generally do not need to use these, but they can be useful for
> devices that don't
> -- work as expected. For more information, see the
> <snmp-device-properties> section of the
> -- Developer Guide's at: http://dartware.com/support/docs/index.html
>
> <snmp-device-properties>
> -- none required
> </snmp-device-properties>
>
> -- Parameters are user-settable values that the probe uses for its
> comparisons.
> -- Specify the default values here. The customer can change them and
> they
> will be retained for each device.
>
> <parameters>
>
> -- No parameters specified.
>
> </parameters>
>
> -- InterMapper retrieves the <snmp-device-variables> using the OID or
> variable names from the MIB.
> -- Specify the variable name, the MIB name or OID, the format (usually
> DEFAULT) and a short description.
>
> <snmp-device-variables>
>
> iso_2_840_10036_3_1_2_1_3_7, iso.2.840.10036.3.1.2.1.3.7, DEFAULT,
> "iso.2.840.10036.3.1.2.1.3.7"
> iso_2_840_10036_3_1_2_1_4_7, iso.2.840.10036.3.1.2.1.4.7, DEFAULT,
> "iso.2.840.10036.3.1.2.1.4.7"
> iso_2_840_10036_1_1_1_1_7, iso.2.840.10036.1.1.1.1.7, DEFAULT,
> "iso.2.840.10036.1.1.1.1.7"
> iso_2_840_10036_1_1_1_9_7, iso.2.840.10036.1.1.1.9.7, DEFAULT,
> "iso.2.840.10036.1.1.1.9.7"
>
> </snmp-device-variables>
>
> -- The 'autorecord' section specifies the variables that
> -- will be saved to the InterMapper Database.
> -- No 'autorecord' variables specified.
>
> -- Specify rules for setting the device into Alarm or Warning state.
> -- The rules are tested top-to-bottom, and stop when one matches.
>
> <snmp-device-thresholds>
>
> -- No thresholds specified.
>
> </snmp-device-thresholds>
>
> -- The <snmp-device-display> section specifies the text that will be
> appended
> -- to the device's Staus Window.
>
> <snmp-device-display>
> \B5\ubiquiti\P0\
> \4\iso.2.840.10036.3.1.2.1.3.7:\0\ $iso_2_840_10036_3_1_2_1_3_7
> \3G\iso.2.840.10036.3.1.2.1.3.7\M0\
> \4\iso.2.840.10036.3.1.2.1.4.7:\0\ $iso_2_840_10036_3_1_2_1_4_7
> \3G\iso.2.840.10036.3.1.2.1.4.7\M0\
> \4\ iso.2.840.10036.1.1.1.1.7:\0\ $iso_2_840_10036_1_1_1_1_7
> \3G\iso.2.840.10036.1.1.1.1.7\M0\
> \4\ iso.2.840.10036.1.1.1.9.7:\0\ $iso_2_840_10036_1_1_1_9_7
> \3G\iso.2.840.10036.1.1.1.9.7\M0\
>
> </snmp-device-display>
>
>
>
>
> -------------------- m2f --------------------
>
> Read this topic online here:
> http://forums.dartware.com/viewtopic.php?p=1921#1921
>
>
>
>
>
> ____________________________________________________________________
> List archives:
> http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
> To unsubscribe: send email to: [email protected]
>
>
Post generated using Mail2Forum (http://www.mail2forum.com)