[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-install
Subject:    Re: [opennms-install] Capturing string SNMP data
From:       Tom Haddon <tom () greenleaftech ! net>
Date:       2006-08-25 8:36:51
Message-ID: 1156495011.18811.54.camel () localhost ! localdomain
[Download RAW message or body]

Hi,

Finally success!! I figured out that what I needed was the following:

<mibObj oid=".1.3.6.1.4.1.674.10892.1.300.10.1.9" instance="1"
alias="DellServerModel" type="string"/>

I hadn't realised that the "instance" variable was appended to the oid,
so I actually needed to trim that by one value.

Now I just have to figure out how to display that data under the node
detail screen (opennms/element/node.jsp?node=<nodeid>). Time to dig into
the docs...

Thanks so much for bearing with me, 

Tom



On Thu, 2006-08-24 at 15:55 -0400, DJ Gregor wrote:
> Tom,
> 
> You should be able to get the data like this:
> 
> snmpget -v1 -c [comm name] <mibObj oid value>.<mibObj instance value>
> 
> So, based on your example in your first email, it would be something  
> like:
> 
> snmpget -v1 -c [comm name] .1.3.6.1.4.1.674.10892.1.300.10.1.9.1.1
> 
> I'd have to bet that the instance value should be 0 instead of 1,  
> though.
> 
> FYI, there are copious logs on the collection process in collectd.log.
> 
> 
> 	- djg
> 
> On Aug 24, 2006, at 9:55 AM, Tom Haddon wrote:
> 
> > On Thu, 2006-08-24 at 08:17 -0400, Tarus Balog wrote:
> >> On Aug 23, 2006, at 10:41 AM, Tom Haddon wrote:
> >>
> >>> Hi Folks,
> >>>
> >>> I'm wondering how to capture string values for SNMP queries in
> >>> OpenNMS.
> >>
> >>
> >>>
> >>> <systemDef name = "Dell">
> >>>   <sysoidMask>.1.3.6.1.4.1.674.10892.1.</sysoidMask>
> >>>     <collect>
> >>>       <includeGroup>dell-servers</includeGroup>
> >>>     </collect>
> >>> </systemDef>
> >>
> >> I doubt very seriously your systemOID is .1.3.6.1.4.1.674.10892.1.
> >>
> >> snmpwalk -v1 -c [comm name] -On localhost system
> >>
> >> On Linux it would be something like .1.3.6.1.4.1.8072.3 and for
> >> Windows something like .1.3.6.1.4.1.311
> >>
> >> -T
> >
> > You're quite right. I'm kind of new to SNMP, so apologies, but part of
> > this was set up by someone else, so I'm not sure which bits are  
> > correct
> > and which aren't.
> >
> > I got the following from that query (as what looks like the most
> > relevant line):
> >
> > .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.10
> >
> > I tried changing "<sysoidMask>.1.3.6.1.4.1.674.10892.1.</ 
> > sysoidMask>" to
> > "<sysoidMask>.1.3.6.1.4.1.8072.3.</sysoidMask>" and
> > "<sysoidMask>.1.3.6.1.4.1.8072.3.2.10</sysoidMask>" and restarting
> > OpenNMS and forcing an SNMP update on a specific server between each,
> > but I still don't see my new value (DellServerModel) in the
> > strings.properties for that node.
> >
> > What am I missing here? Is there any more information you'd need to
> > troubleshoot?
> >
> > Thanks for the patience...
> >
> > Tom
> >
> >>
> >> -----
> >>
> >> Tarus Balog
> >> The OpenNMS Group, Inc.
> >> Main  : +1 919 533 0160   Fax:   +1 503-961-7746
> >> Direct: +1 919 647 4749   Skype: tarusb
> >> Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C
> >>
> >>
> >>
> >> --------------------------------------------------------------------- 
> >> ----
> >> Using Tomcat but need to do more? Need to support web services,  
> >> security?
> >> Get stuff done quickly with pre-integrated technology to make your  
> >> job easier
> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> >> Geronimo
> >> http://sel.as-us.falkag.net/sel? 
> >> cmd=lnk&kid=120709&bid=263057&dat=121642
> >> _______________________________________________
> >> 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
> >
> >
> > ---------------------------------------------------------------------- 
> > ---
> > Using Tomcat but need to do more? Need to support web services,  
> > security?
> > Get stuff done quickly with pre-integrated technology to make your  
> > job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> > Geronimo
> > http://sel.as-us.falkag.net/sel? 
> > cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > 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
> >
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> 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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic