-
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
MIBS not Loaded after Update to 1.21.2 #10444
Comments
@langweiler2020 What is the exact filename and path for your Palo Alto MIB files? |
Hello, thx for answer in the 9-1 folder are all PanOS MIBs as well as the Standard MIBs of the Operating System Best Regards |
Great - see the above issue referenced, and #10444. Rename |
thank you very much :) |
@langweiler2020 do you confirm this solved your issue? |
Hello, my issue is solved, works fine now tyvm :) |
Hi @langweiler2020, we recently merged a change that should fix the MIB naming/parsing issue you ran into (see #10802). Could you test it by renaming your MIB file back to what it was when you had the problem (was it PAN-COMMON-MIB.txt?) and running a nightly build? Nightly builds: https://github.com/influxdata/telegraf/blob/master/docs/NIGHTLIES.md |
Hi @reimda , we are running telegraf inside docker containers, but as far as i can see there are no containers with the nightly build on docker hub. is this korrekt ? Best Regards |
You are right, we currently don't have a docker container nightly build. If you're not able to test without one, I think it's ok. We've had positive responses about this change from a few other community members so we're still planning to include it in the next build. I'll look into adding a nightly docker container build. I think it would be helpful for others too. |
Hello! This issue still persists in 1.26.1. I have manually written a MIB for a REDDOXX appliance (it's here) and imported it into our Nix configuration that we deploy to monitoring agents that run Telegraf and send data back to our InfluxDB instance. The specific error I got is:
When inspecting the generated Telegraf configuration, I can confirm that the file exists: ...in config:
...and in the specified
So it's clearly there, has no extension and basename and module name also match. Here is the section in the configuration pointed out by the error message:
I also did an
So clearly, it works. Now I am qute dumbfounded... Do you have any idea what I can do? A collegue has recently ran into similiar issues with MIBs published by Zyxel - but they also are plagued with syntax errors... so that's another issue. Still... Do you have an idea what is going on here? Thanks and kind regards! |
Hi can you test with latest 1.29 version and also let us know what value you set for |
I will give it a try; upgrading nixos should give me the latest version. As for the parser, |
...I will have to get back at this at a later point, I apologize. I did clone the gosmi source and see if it would load the MIB from the CLI (
So I have high hopes that upgrading Telegraf could fix this issue. Do you have a temporary workaround though? Is there something I can do on 1.26 to at least hotfix the issue for the time being? |
I was able to find a workaround! Long story short, It seems that 1.26 is one of the versions affected with the "regression". I didn't have time to sift through the commit history to find the exact point it was fixed, but I suspect that it was at the earliest 1.27. Hopefuly this detail helps someone stumbling over this! |
... Nevermind. It just never generated the config, and I missed that, because I had set my own option to Well, the error is right back, even on 1.28. Though I had to wonder - is it having issues with the The error I tried to google for that, but could not find a clear reference to which SNMP types are understood, potentially automatically converted, and which are not. Do you have any pointer for that approach? Thanks! |
This addresses influxdata#14598 and influxdata#10444 The previous error message was unclear, especially to newcommers to SNMP, SMI and MIBs. With this slight rephrasing, users may have a better clue as to what the issue might be and can start looking for issues approprietly.
Relevent telegraf.conf
Logs from Telegraf
docker-compose up telegraf
Starting telegraf ... done
Attaching to telegraf
telegraf | 2022-01-14T09:19:59Z I! Starting Telegraf 1.21.2
telegraf | 2022-01-14T09:19:59Z I! Using config file: /etc/telegraf/telegraf.conf
telegraf | 2022-01-14T09:19:59Z I! Loaded inputs: cpu snmp
telegraf | 2022-01-14T09:19:59Z I! Loaded aggregators:
telegraf | 2022-01-14T09:19:59Z I! Loaded processors:
telegraf | 2022-01-14T09:19:59Z I! Loaded outputs: influxdb
telegraf | 2022-01-14T09:19:59Z I! Tags enabled: host=telegraf
telegraf | 2022-01-14T09:19:59Z I! [agent] Config: Interval:1m0s, Quiet:false, Hostname:"telegraf", Flush Interval:10s
telegraf | 2022-01-14T09:20:01Z E! [telegraf] Error running agent: could not initialize input inputs.snmp: initializing field panSessionUtilization: translating: cannot make PAN-COMMON-MIB::panSessionUtilization.0 numeric, please ensure all imported mibs are in the path
System info
telegraf 1.21.2 Docker 20.10.12
Docker
No response
Steps to reproduce
...
Expected behavior
Should be running fine with the PALOALTO Network MIBS
Actual behavior
Container is restarting permanently
Additional info
Running perfect on telegraf version 1.20.4
The text was updated successfully, but these errors were encountered: