Re: Custom SNMP Collection

Ronald Roskens <[email protected]> Thu, 27 Sep 2018 13:22:30 -0500
Newsgroups gmane.network.opennms.general
Message-ID <[email protected]>
Yep, that’s probably it.

Try these instead:

<group name="battery" ifType="ignore">
      <mibObj oid=".1.3.6.1.4.1.45501.1.3.4" instance="0" alias="batteryV" type="octetstring"/>
   </group>
   <group name="temp" ifType="ignore">
      <mibObj oid=".1.3.6.1.4.1.45501.1.3.8" instance="0" alias="temperature" type="octetstring"/>
   </group>

Ron

> On Sep 27, 2018, at 1:09 PM, Gavin Hill <[email protected]> wrote:
> 
> Here’s the output of the snpwalk:
>  
> .1.3.6.1.4.1.45501.1.3.1.0 = INTEGER: 0                          
> .1.3.6.1.4.1.45501.1.3.2.0 = INTEGER: 1                          
> .1.3.6.1.4.1.45501.1.3.3.0 = INTEGER: 1                          
> .1.3.6.1.4.1.45501.1.3.4.0 = STRING: "13.8"                      
> .1.3.6.1.4.1.45501.1.3.5.0 = STRING: "00.0"                      
> .1.3.6.1.4.1.45501.1.3.6.0 = STRING: "00.0"                      
> .1.3.6.1.4.1.45501.1.3.7.0 = STRING: "00.0"                      
> .1.3.6.1.4.1.45501.1.3.8.0 = STRING: "+25.6"                     
> .1.3.6.1.4.1.45501.1.3.9.0 = INTEGER: 0                          
> .1.3.6.1.4.1.45501.1.3.10.0 = STRING: "B:13.8 V I:00.0AMAINS:ON i:00.0A"                                                          
> .1.3.6.1.4.1.45501.1.3.11.0 = STRING: "13.80"                    
> .1.3.6.1.4.1.45501.1.3.12.0 = STRING: "00.00"                    
> .1.3.6.1.4.1.45501.1.3.13.0 = STRING: "00.00"                    
> .1.3.6.1.4.1.45501.1.3.14.0 = STRING: "00.00"                    
> .1.3.6.1.4.1.45501.1.3.14.0.0 = No more variables left in this MIB View (It is past the end of the MIB tree)     
>  
> 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>
> From: Ronald Roskens <[email protected] <mailto:[email protected]>>
> Reply-To: General OpenNMS Discussion <[email protected] <mailto:[email protected]>>
> Date: Thursday, 27 September 2018 at 19:23
> To: General OpenNMS Discussion <[email protected] <mailto:[email protected]>>
> Subject: Re: [opennms-discuss] Custom SNMP Collection
>  
> 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] <mailto:[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%2083%20601%208181>
>> t: +27 10 020 5959 <tel:+27%2010%20020%205959>
>>   <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 <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