Re: problem with collection data via snmp extend

Ronny Trommer <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <[email protected]>
Hi Marcel,

you want to collect

	.1.3.6.1.4.1.8072.1.3.2.4.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.110.1 = STRING: 4687

but you have configured to collect

	.1.3.6.1.4.1.8072.1.3.2.2.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = STRING: /usr/local/bin/getGithubRateLimitRemaining.sh

change your collection OID to the following

	<mibObj oid=".1.3.6.1.4.1.8072.1.3.2.4.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.110" instance="1" alias="YExRateRemain" type=“integer" />

Hope this helps

> On 1. Aug 2017, at 23:02, Marcel Fuhrmann <[email protected]> wrote:
> 
> Hi!
> 
> 
> 
> I have the problem that ONMS doesn't collect data provided by snmp extend.
> 
> RRD files are created but filled with NaN values instead of real values. The only hint I found is this log:
> 
> 2017-08-01 11:52:51,717 INFO [Collectd-Thread-41-of-50] o.o.n.c.p.r.RrdPersistOperationBuilder: updateRRD: updating RRD file /var/lib/opennms/rrd/snmp/fs/IT/rmvm056/YExRateRemain.rrd with values '1501581172:U'
> 
> As we discussed on Mattermost the :U should stand for UNKNOWN.
> 
> But what does this mean?
> 
> 
> 
> Here some information.
> 
> The snmpwalk which provides the values I want to collect:
> 
> .1.3.6.1.4.1.8072.1.3.2.1.0 = INTEGER: 5
> .1.3.6.1.4.1.8072.1.3.2.2.1.2.6.114.101.98.111.111.116 = STRING: /bin/bash
> .1.3.6.1.4.1.8072.1.3.2.2.1.2.10.110.116.112.113.95.100.101.108.97.121 = STRING: /usr/local/bin/ntpwatch delay
> .1.3.6.1.4.1.8072.1.3.2.2.1.2.11.110.116.112.113.95.106.105.116.116.101.114 = STRING: /usr/local/bin/ntpwatch jitter
> .1.3.6.1.4.1.8072.1.3.2.2.1.2.11.110.116.112.113.95.111.102.102.115.101.116 = STRING: /usr/local/bin/ntpwatch offset
> .1.3.6.1.4.1.8072.1.3.2.2.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = STRING: /usr/local/bin/getGithubRateLimitRemaining.sh
> .1.3.6.1.4.1.8072.1.3.2.2.1.3.6.114.101.98.111.111.116 = STRING: -c 'if [ -e /var/run/reboot-required ]; then echo \"1\"; else echo \"0\"; fi'
> .1.3.6.1.4.1.8072.1.3.2.2.1.3.10.110.116.112.113.95.100.101.108.97.121 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.3.11.110.116.112.113.95.106.105.116.116.101.114 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.3.11.110.116.112.113.95.111.102.102.115.101.116 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.3.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.4.6.114.101.98.111.111.116 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.4.10.110.116.112.113.95.100.101.108.97.121 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.4.11.110.116.112.113.95.106.105.116.116.101.114 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.4.11.110.116.112.113.95.111.102.102.115.101.116 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.4.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = STRING:
> .1.3.6.1.4.1.8072.1.3.2.2.1.5.6.114.101.98.111.111.116 = INTEGER: 5
> .1.3.6.1.4.1.8072.1.3.2.2.1.5.10.110.116.112.113.95.100.101.108.97.121 = INTEGER: 5
> .1.3.6.1.4.1.8072.1.3.2.2.1.5.11.110.116.112.113.95.106.105.116.116.101.114 = INTEGER: 5
> .1.3.6.1.4.1.8072.1.3.2.2.1.5.11.110.116.112.113.95.111.102.102.115.101.116 = INTEGER: 5
> .1.3.6.1.4.1.8072.1.3.2.2.1.5.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = INTEGER: 5
> .1.3.6.1.4.1.8072.1.3.2.2.1.6.6.114.101.98.111.111.116 = INTEGER: exec(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.6.10.110.116.112.113.95.100.101.108.97.121 = INTEGER: exec(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.6.11.110.116.112.113.95.106.105.116.116.101.114 = INTEGER: exec(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.6.11.110.116.112.113.95.111.102.102.115.101.116 = INTEGER: exec(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.6.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = INTEGER: exec(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.7.6.114.101.98.111.111.116 = INTEGER: run-on-read(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.7.10.110.116.112.113.95.100.101.108.97.121 = INTEGER: run-on-read(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.7.11.110.116.112.113.95.106.105.116.116.101.114 = INTEGER: run-on-read(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.7.11.110.116.112.113.95.111.102.102.115.101.116 = INTEGER: run-on-read(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.7.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = INTEGER: run-on-read(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.20.6.114.101.98.111.111.116 = INTEGER: permanent(4)
> .1.3.6.1.4.1.8072.1.3.2.2.1.20.10.110.116.112.113.95.100.101.108.97.121 = INTEGER: permanent(4)
> .1.3.6.1.4.1.8072.1.3.2.2.1.20.11.110.116.112.113.95.106.105.116.116.101.114 = INTEGER: permanent(4)
> .1.3.6.1.4.1.8072.1.3.2.2.1.20.11.110.116.112.113.95.111.102.102.115.101.116 = INTEGER: permanent(4)
> .1.3.6.1.4.1.8072.1.3.2.2.1.20.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = INTEGER: permanent(4)
> .1.3.6.1.4.1.8072.1.3.2.2.1.21.6.114.101.98.111.111.116 = INTEGER: active(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.21.10.110.116.112.113.95.100.101.108.97.121 = INTEGER: active(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.21.11.110.116.112.113.95.106.105.116.116.101.114 = INTEGER: active(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.21.11.110.116.112.113.95.111.102.102.115.101.116 = INTEGER: active(1)
> .1.3.6.1.4.1.8072.1.3.2.2.1.21.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = INTEGER: active(1)
> .1.3.6.1.4.1.8072.1.3.2.3.1.1.6.114.101.98.111.111.116 = STRING: 0
> .1.3.6.1.4.1.8072.1.3.2.3.1.1.10.110.116.112.113.95.100.101.108.97.121 = STRING: 3681
> .1.3.6.1.4.1.8072.1.3.2.3.1.1.11.110.116.112.113.95.106.105.116.116.101.114 = STRING: 1886
> .1.3.6.1.4.1.8072.1.3.2.3.1.1.11.110.116.112.113.95.111.102.102.115.101.116 = STRING: 908
> .1.3.6.1.4.1.8072.1.3.2.3.1.1.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = STRING: 4687
> .1.3.6.1.4.1.8072.1.3.2.3.1.2.6.114.101.98.111.111.116 = STRING: 0
> .1.3.6.1.4.1.8072.1.3.2.3.1.2.10.110.116.112.113.95.100.101.108.97.121 = STRING: 3681
> .1.3.6.1.4.1.8072.1.3.2.3.1.2.11.110.116.112.113.95.106.105.116.116.101.114 = STRING: 1886
> .1.3.6.1.4.1.8072.1.3.2.3.1.2.11.110.116.112.113.95.111.102.102.115.101.116 = STRING: 908
> .1.3.6.1.4.1.8072.1.3.2.3.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = STRING: 4687
> .1.3.6.1.4.1.8072.1.3.2.3.1.3.6.114.101.98.111.111.116 = INTEGER: 1
> .1.3.6.1.4.1.8072.1.3.2.3.1.3.10.110.116.112.113.95.100.101.108.97.121 = INTEGER: 1
> .1.3.6.1.4.1.8072.1.3.2.3.1.3.11.110.116.112.113.95.106.105.116.116.101.114 = INTEGER: 1
> .1.3.6.1.4.1.8072.1.3.2.3.1.3.11.110.116.112.113.95.111.102.102.115.101.116 = INTEGER: 1
> .1.3.6.1.4.1.8072.1.3.2.3.1.3.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = INTEGER: 1
> .1.3.6.1.4.1.8072.1.3.2.3.1.4.6.114.101.98.111.111.116 = INTEGER: 0
> .1.3.6.1.4.1.8072.1.3.2.3.1.4.10.110.116.112.113.95.100.101.108.97.121 = INTEGER: 0
> .1.3.6.1.4.1.8072.1.3.2.3.1.4.11.110.116.112.113.95.106.105.116.116.101.114 = INTEGER: 0
> .1.3.6.1.4.1.8072.1.3.2.3.1.4.11.110.116.112.113.95.111.102.102.115.101.116 = INTEGER: 0
> .1.3.6.1.4.1.8072.1.3.2.3.1.4.13.89.69.120.82.97.116.101.82.101.109.97.105.110 = INTEGER: 0
> .1.3.6.1.4.1.8072.1.3.2.4.1.2.6.114.101.98.111.111.116.1 = STRING: 0
> .1.3.6.1.4.1.8072.1.3.2.4.1.2.10.110.116.112.113.95.100.101.108.97.121.1 = STRING: 3681
> .1.3.6.1.4.1.8072.1.3.2.4.1.2.11.110.116.112.113.95.106.105.116.116.101.114.1 = STRING: 1886
> .1.3.6.1.4.1.8072.1.3.2.4.1.2.11.110.116.112.113.95.111.102.102.115.101.116.1 = STRING: 908
> .1.3.6.1.4.1.8072.1.3.2.4.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.110.1 = STRING: 4687
> 
> 
> 
> The oid to collect is .1.3.6.1.4.1.8072.1.3.2.3.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.110 (value = 4687)
> 
> 
> 
> So the datacollection config looks like:
> 
> <?xml version="1.0"?>
> <datacollection-group name="Github">
>  <group name="github" ifType="ignore">
>    <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.2.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105" instance="110" alias="YExRateRemain" type="octetstring" />
>   </group>
> <systemDef name="Github">
>   <sysoidMask>.1.3.6.1.4.1.8072.</sysoidMask>
>   <collect>
>     <includeGroup>github</includeGroup>
>   </collect>
> </systemDef>
> </datacollection-group>
> 
> 
> 
> datacollection-config.xml has an "Github" entry.
> 
> 
> 
> Because this datacollection works fine https://github.com/opennms-config-modules/ntp/blob/master/datacollection/netsnmp-ntp.xml <https://github.com/opennms-config-modules/ntp/blob/master/datacollection/netsnmp-ntp.xml> I tried to adapt it for my case. But mine doesn't work... :-/
> 
> 
> 
> I already tried a lot:
> 
> * changed type to octetstring, integer
> 
> * iType all and ignore
> 
> * ONMS v20.0.1 and 19.0.1
> 
> * Tried other sysDef and group names
> 
> * also tried to collect
> 
> .1.3.6.1.4.1.8072.1.3.2.4.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.110.1 = STRING: 4687
> 
> with
> 
>    <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.2.1.2.13.89.69.120.82.97.116.101.82.101.109.97.105.101" instance="1" alias="YExRateRemain" type="octetstring" />
> 
> but in this case no RRD file was created.
> 
> 
> 
> Thanks for feedback!
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
> 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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
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
signature.asc (application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJZgZs2AAoJEJB1suUIokUetXQH/RSisrWi8Et9U00eC4Hs6y0O
GQrooI8XQv46KdTA7ZuCXed4s96PWoSABKOx+0cZWwfoKoKwctseptbCHiY1qJJV
FXlcAFwjNZsv8PlS4q4s7nvpEkE3Jx7gxvVA/WPULI4jvrcZI+dy6TRxZf+ko8+b
zLQcThs4jilhsQebDrwYaqFqRO1a1uSMldQ4JytIn078yYoqQWQF0+c6OkXraoOc
izhuGicq+981S6HRfDBcC0iJHAmaX0l8uddRGXM2qcP9RxOPLXiGwopyCGQbtLU9
RZaE1XN7fyBNPq4bGlqUk/ltWs3vDUANEiSAz3Ty8kpJaiUggWTtRMq+9ddf87A=
=DaB2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.