Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 0.1.0 (from previous python release) broke string data #88

Closed
HyperDevil opened this issue Nov 29, 2016 · 6 comments
Closed

Comments

@HyperDevil
Copy link

HyperDevil commented Nov 29, 2016

Hi!

I just upgraded to the Go version 0.1.0.
I use this to monitor my NTP server, and after i installed the Go version some data stopped arriving into Prometheus.

This is the data that was previously working:
snmpwalk -c public -v 1 10.0.1.8 .1.3.6.1.4.1.5597.30.0.2.4.0
iso.3.6.1.4.1.5597.30.0.2.4.0 = STRING: "-0.000419"

Now with the new Go 0.1.0 version i get this output:
curl 'localhost:9116/snmp?target=10.0.1.8&module=meinberglantime'
HELP NTPRefclockOffset
TYPE NTPRefclockOffset untyped
NTPRefclockOffset 0

So something broke in the Go version that worked previously.

@brian-brazil
Copy link
Contributor

No version of this exporter has ever supported string values.

@HyperDevil
Copy link
Author

I can guarantee that it worked before the upgrade to the Go version.
I installed the Go version 8:26 PM November 23rd 2016.

Here is the output of prometheus:
https://postimg.org/image/oeuj18pyb/

@HyperDevil
Copy link
Author

Template:

meinberglantime:
walk:

  • 1.3.6.1.2.1.1
  • 1.3.6.1.4.1.5597
  • 1.3.6.1.4.1.14988.1.1.14.1.1
  • 1.3.6.1.2.1.7
    metrics:
  • name: SystemUptime
    oid: 1.3.6.1.2.1.1.3
  • name: NTPRefclockOffset
    oid: 1.3.6.1.4.1.5597.30.0.2.4.0
  • name: NTPStratum
    oid: 1.3.6.1.4.1.5597.30.0.2.2
  • name: SystempCelcius
    oid: 1.3.6.1.4.1.5597.30.0.5.2.1
  • name: SatsInView
    oid: 1.3.6.1.4.1.5597.30.0.1.2.1.6
  • name: InUDPdatagrams
    oid: 1.3.6.1.2.1.7.1
  • name: OutUDPdatagrams
    oid: 1.3.6.1.2.1.7.4

@brian-brazil
Copy link
Contributor

That must have been by accident due to a quirk of the Python language and netsnmp python bindings. Even with string support, we're unlikely to support PDUs like this that are using an inappropriate type.

@HyperDevil
Copy link
Author

I presume this will fix my issue?

#79

@brian-brazil
Copy link
Contributor

No, there's no plans to allow conversion of strings to floats. That way lies madness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants