Re: Get an SNMP OID and save it to rrd directory dont work
"silvio mink" <[email protected]> Fri, 28 Feb 2014 11:34:41 +0100
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <trinity-70b29e4e-7b36-4d94-8557-41814ccf1267-1393583681728@3capp-webde-bs29> |
Hi Ron, thanks for this very important advice. But no, that was not all... :-( It is still requesting the OID, but no value... snmpget says within 2 seconds: root@networking:/opt/opennms/etc# snmpget -On -v2c -c public dbms ".1.3.6.1.4.1.2021.8.1.101.1" .1.3.6.1.4.1.2021.8.1.101.1 = STRING: "302" A find says nothing: root@networking:/opt/opennms/etc# find /var/lib/opennms/rrd/ -iname "expapp*" root@networking:/opt/opennms/etc# Opennms says (collectd log): 2014-02-28 11:13:40,993 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.2021.8.1.101.1 2014-02-28 11:13:40,993 DEBUG [DefaultUDPTransportMapping_xxx/0] SNMPCollectorEntry: storeResult: added value for RawBlksSwapIn: org.opennms.netmgt.snmp.SnmpR esult@3bd708f2[base=.1.3.6.1.4.1.2021.11.62,instance=0,value=26220] 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Processing varBind: .1.3.6.1.4.1.2021.11.63.0 = 112292 2014-02-28 11:13:40,993 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.2021.11.59 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] DefaultCollectionAgent: getStorageDir: isStoreByForeignSource = false, foreignSource = null, foreignId = null, dir = 182 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] NodeInfo: Adding attribute org.opennms.netmgt.collectd.SnmpAttribute: node[182].RawBlksSwapOu t [.1.3.6.1.4.1.2021.11.63] = 112292 to group AttrGroupType[name=ucd-sysstat-raw-more, ifType=ignore] for null@182 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SnmpWalker: Sending tracker pdu of size 10 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SNMPCollectorEntry: storeResult: added value for RawBlksSwapOut: org.opennms.netmgt.snmp.Snmp Result@228c668f[base=.1.3.6.1.4.1.2021.11.63,instance=0,value=112292] 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Processing varBind: .1.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0 = 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Processing varBind: .1.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0 = 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Processing varBind: .1.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0 = 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Processing varBind: .1.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0 = 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Processing varBind: .1.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0 = 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Processing varBind: .1.3.6.1.4.1.8072.1.2.1.1.4.0.1.0.0 = 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.8 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.9 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.10 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.11 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.12 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.13 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.14 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.15 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.16 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.7146.1.2.1.17 2014-02-28 11:13:40,994 DEBUG [DefaultUDPTransportMapping_xxx/0] SnmpWalker: Sending tracker pdu of size 10 2014-02-28 11:13:40,995 DEBUG [DefaultUDPTransportMapping_xxx/0] SnmpWalker: Received a tracker PDU of type RESPONSE from /dbms of size 10, errorStat us = 0, errorStatusText = Success, errorIndex = 0 -- Silvio Gesendet: Donnerstag, 27. Februar 2014 um 22:06 Uhr Von: "Ronald Roskens" <[email protected]> An: "Installation questions and help" <[email protected]> Betreff: Re: [opennms-install] Get an SNMP OID and save it to rrd directory dont work Silvio, Try this instead: <group name="exp_app" ifType="ignore"> <mibObj oid=".1.3.6.1.4.1.2021.8.1.101" instance=“1" alias="expApp" type="string" /> </group> The instance value is appended to the oid. Ron On Feb 27, 2014, at 6:22 AM, silvio mink < [email protected] > wrote: I'm now one step further, dont know exactly why (cause its very chaotic right now, i have definied a new collector in the datacollection-config.xml with one included group), but the collectd is requesting now this oid: :-) 2014-02-27 11:06:18,270 DEBUG [DefaultUDPTransportMapping_xxx/0] SingleInstanceTracker: Requesting oid following: .1.3.6.1.4.1.2021.8.1.101.1 But there is still no rrd file.... And there is no other line with this oid, so i cant see, what happen... I reckon there must be a line like this (in the next step): SingleInstanceTracker: Processing varBind: .1.3.6.1.4.1.15601.1.1.0 = 85900902 How i can figure out, what happen with this oid, which value are recevied from collectd? Gesendet: Mittwoch, 26. Februar 2014 um 18:09 Uhr Von: "silvio mink" < [email protected] > An: [email protected] Betreff: Get an SNMP OID and save it to rrd directory dont work Hi, im want to get a custom OID with opennms, but it doesn work. I want that opennms do this command and save the output (opennms is installed on this machine, its a ubuntu, the dbms machine is a SLES, suse linux enterprise server): networking:/etc/opennms/datacollection# snmpget -On -v2c -c public dbms ".1.3.6.1.4.1.2021.8.1.101.1" .1.3.6.1.4.1.2021.8.1.101.1 = STRING: "294" What i can do, to poll this value?! Nothing is working for me. :-( I have read all the howtos and wiki pages available.... My actually configuration: extend ../datacollection/netsnmp.xml: <group name="exp_app" ifType="ignore"> <mibObj oid=".1.3.6.1.4.1.2021.8.1.101.1" instance="0" alias="expApp" type="string" /> </group> And in all sysemDef's: <includeGroup>exp_app</includeGroup> But the collectd.log nothing says to this group and OID... Only this line appears: "2014-02-26 17:56:59,175 DEBUG [Collectd-Thread-18-of-50] DefaultDataCollectionConfigDao: processGroupName: OIDs from group 'exp_app:all' are included for ifType: -2" Nothing more... no "expApp" rrd file...No informations about this OID.... Some other snmp values like "SysContext.jrb" or "memTotalFree.meta", "tcpOutSegs.jrb", "CpuRawNice.jrb" are saved... What im maybe doing wrong? I have tried to compile some MIBs over the WebUI (ucd-snmp-mib and net-snmp-extend from the sles machine), but its change nothing... :-( Any help is very welcome Regards Silvio ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk_______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-install mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-install ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk_______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-install mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-install ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-install mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-install