Re: Custom SNMP Collection
Ronald Roskens <[email protected]> Thu, 27 Sep 2018 12:06:24 -0500
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
Guessing that your mibObj oid’s contain the index (.0 at the end) in them? If you send the output from an snmp walk, (run /opt/opennms/contrib/snmpwalk-debug.sh $host $community .1.3.6.1.4.1.45501.1.3) that would give us the output from the snmp table containing those values. Ron > On Sep 27, 2018, at 6:20 AM, Gavin Hill <[email protected]> wrote: > > I’m trying to collect a temperature and battery voltage from an SNMP device. > > I have added a datacollection group under “default” to datacollection-confg.xml > > <include-collection dataCollectionGroup="MicroInstruments"/> > > I have added a file under datacollection/ > > <datacollection-group xmlns="http://xmlns.opennms.org/xsd/config/datacollection <http://xmlns.opennms.org/xsd/config/datacollection>" name="MicroInstruments"> > <group name="battery" ifType="ignore"> > <mibObj oid=".1.3.6.1.4.1.45501.1.3.4.0" instance="0" alias="batteryV" type="octetstring"/> > </group> > <group name="temp" ifType="ignore"> > <mibObj oid=".1.3.6.1.4.1.45501.1.3.8.0" instance="0" alias="temperature" type="octetstring"/> > </group> > <systemDef name="MicroInstruments"> > <sysoidMask>.1.3.6.1.4.1.45501</sysoidMask> > <collect> > <includeGroup>battery</includeGroup> > <includeGroup>temp</includeGroup> > </collect> > </systemDef> > </datacollection-group> > > The node falls under the default “example1” package in collectd-configuration.xml > > I’m still not seeing any data collected though. What part am I missing? > > Gavin > -- > > Gavin Hill | Director > m: +27 83 601 8181 <tel:+27 83 601 8181> > t: +27 10 020 5959 <tel:+27 10 020 5959> > <Mail Attachment.jpeg> <mailto:%28%21Email%21%29><Mail Attachment.jpeg> <https://www.linkedin.com/company/highpeak-pty-ltd/><Mail Attachment.jpeg> <skype:%28%21Email%21%29><Mail Attachment.jpeg> <https://www.highpeak.co.za/><Mail Attachment.jpeg>_______________________________________________ > Please read the OpenNMS Mailing List FAQ: > http://www.opennms.org/index.php/Mailing_List_FAQ <http://www.opennms.org/index.php/Mailing_List_FAQ> > > opennms-discuss mailing list > > To *unsubscribe* or change your subscription options, see the bottom of this page: > https://lists.sourceforge.net/lists/listinfo/opennms-discuss <https://lists.sourceforge.net/lists/listinfo/opennms-discuss> _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-discuss