Hi
Naturally I need to include my own mibs into the agent so that it recognizes
them.
To start with going for very generic,
net-snmp 5.7.3 source tar
running configure , make , make test, make install
people are telling me that I need to compile into the snmpd agent
--with-mibs="item1:item2
so running ./configure --with-mibs=NET-SNMP-EXAMPLE-MIB
then running
snmpget -v 2c -c public localhost NET-SNMP-EXAMPLES-MIB::netSnmpExampleInteger.0
only to find out...
NET-SNMP-EXAMPLES-MIB::netSnmpExampleInteger.0 = No Such Object available on
this agent at this OID
however snmptranslate can see it
snmptranslate -Tp NET-SNMP-EXAMPLES-MIB::netSnmpExamples
+--netSnmpExamples(2)
|
+--netSnmpExampleScalars(1)
| |
| +-- -RW- Integer32 netSnmpExampleInteger(1)
| +-- -RW- Integer32 netSnmpExampleSleeper(2)
| +-- -RW- String netSnmpExampleString(3)
| Textual Convention: SnmpAdminString
| Size: 0..255
|
+--netSnmpExampleTables(2)
| |
| +--netSnmpIETFWGTable(1)
| | |
| | +--netSnmpIETFWGEntry(1)
| | | Index: nsIETFWGName
| | |
| | +-- ---- String nsIETFWGName(1)
| | | Size: 1..32
| | +-- CR-- String nsIETFWGChair1(2)
| | +-- CR-- String nsIETFWGChair2(3)
| |
| +--netSnmpHostsTable(2)
| |
| +--netSnmpHostsEntry(1)
| | Index: netSnmpHostName
| |
| +-- ---- String netSnmpHostName(1)
| | Size: 0..64
| +-- CR-- EnumVal netSnmpHostAddressType(2)
| | Textual Convention: InetAddressType
| | Values: unknown(0), ipv4(1), ipv6(2), ipv4z(3), ipv6z(4),
dns(16)
| +-- CR-- String netSnmpHostAddress(3)
| | Textual Convention: InetAddress
| | Size: 0..255
| +-- CR-- EnumVal netSnmpHostStorage(4)
| | Textual Convention: StorageType
| | Values: other(1), volatile(2), nonVolatile(3),
permanent(4), readOnly(5)
| +-- CR-- EnumVal netSnmpHostRowStatus(5)
| Textual Convention: RowStatus
| Values: active(1), notInService(2), notReady(3),
createAndGo(4), createAndWait(5), destroy(6)
|
+--netSnmpExampleNotifications(3)
| |
| +--netSnmpExampleNotificationPrefix(0)
| | |
| | +--netSnmpExampleHeartbeatNotification(1)
| |
| +-- ---N String netSnmpExampleNotification(1)
| | Textual Convention: SnmpAdminString
| | Size: 0..255
| |
| +--netSnmpExampleNotificationObjects(2)
| |
| +-- ---N Integer32 netSnmpExampleHeartbeatRate(1)
| +-- ---N String netSnmpExampleHeartbeatName(2)
| Textual Convention: SnmpAdminString
| Size: 0..255
|
+--netSnmpPassExamples(255)
+-- -RW- String netSnmpPassString(1)
| Textual Convention: SnmpAdminString
| Size: 0..255
|
+--netSnmpPassTable(2)
| |
| +--netSnmpPassEntry(1)
| | Index: netSnmpPassIndex
| |
| +-- ---- Integer32 netSnmpPassIndex(1)
| +-- -RW- Integer32 netSnmpPassInteger(2)
| +-- -RW- ObjID netSnmpPassOID(3)
|
+-- -RW- TimeTicks netSnmpPassTimeTicks(3)
+-- -RW- IpAddr netSnmpPassIpAddress(4)
+-- -R-- Counter netSnmpPassCounter(5)
+-- -RW- Gauge netSnmpPassGauge(6)
|
+--netSnmpPassOIDValue(99)
so the mib defination is there, and the mib defination text file is there,
snmpd is up along with snmptrapd, no code added yet as need the
NET-SNMP-EXAMPES-MIB TO BE SEE BY THE AGENT to the command line tools before
going to get an app going.
What would you advise ?
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users