-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
snmp input plugin handling opaque type #2590
Comments
Does it work if you do:
We can make this automatic if it does work. If it doesn't work, I'll try to duplicate the issue and see about adding a fix. |
No luck with the conversion line addition. |
I noticed the Need More Info label addition; I'd love to provide whatever info is needed. Do you need anything specific? |
Not sure why it has that label. I should be able to reproduce this locally (just haven't gotten to it yet). I don't think I need any additional info. |
I'm having this same problem, with the same Synology UPS OIDs, in fact. |
Also having the same problems with this, is there any work around for now ? |
If someone experiencing this issue can collect a packet capture then I will try to fix.
|
Having finally found the time for this, I have just tried to reproduce this again in order to grab a pcap file for @danielnelson ... but when I uncommented the parts of
I'm afraid I don't know whether this is due to a change at Synology's side, or an update to Telegraf since this issue was posted, but it looks like I can decommission my 'sellotape and string' snmpget+curl solution and get all my SNMP figures via Telegraf now, after all... nice. :) I'm using Telegraf 1.9.2 and DSM 6.2.1-23824 Update 4, in case it helps anyone. |
Well one thing I just noticed in the original issue report is that the configured OID is incorrect. The MIB file has The config should be: |
I don't think it was a config problem, as I ran into this puzzling issue quite independently from the OP and I tried both the numerical or name formats for the objects. Older versions of Telegraf (or perhaps Synology DSM), would work OK for some of the SNMP stats provided by Synology NASes, but not all of them. The ones that I had problems with - and thus used a script with snmpget+curl to push the values to InfluxDB - included the following (this is a snippet from my workaround script):
|
Some of the mibs Synology had on their site at the time were broken, so it's possible what I posted at the time was correct for the changes I made to the mib locally; it's also possible I had that line incorrectly configured. In my initial post, I trimmed down my config to show one specific example, but had multiple values at the time that weren't loading. I don't have access to the setup that originally prompted me to create the ticket so I can't verify that it's fixed for me, but it sounds like it is per @GainfulShrimp's update. |
Feature Request
I'm currently pulling a lot of snmp data from a Synology NAS with telegraf v 1.2.1 and the new snmp plugin. Several points of data are returned as an opaque float:
Relevant sections from their MIB:
Proposal:
Process the value returned and add it to the data output. I haven't found a way to handle it currently, hopefully I didn't miss something.
Current behavior:
The value seems to be dropped. Using the conversion option for the field doesn't seem to do anything.
Using a basic inputs.snmp config with this specific entry (is_tag is set to true to force output; if it's just a field nothing is output for this point)
Produces this output
synology_ups,agent_hostname=nas,upsInfoLoadValue=<nil>,agent_host=nas,host=telegraf upsBatteryRuntimeValueSec=3270i 1490788434000000000
upsBatteryRuntimeValueSec is another OID I query for, but it returns as an INTEGER type.
Desired behavior:
Produce this output
synology_ups,agent_hostname=nas,agent_host=nas,host=telegraf upsInfoLoadValue=9.0000000 1490788434000000000
Use case:
Monitoring snmp data output in this format, though I'm not sure how common this is.
The text was updated successfully, but these errors were encountered: