-
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
Add snmp table feature #540 #735
Conversation
yes, I ran into this recently too, can you paste in your entire config file and I can help? It seems like the toml parser doesn't like |
here the config file: https://gist.github.com/titilambert/e5572dd1223a85c5d2af |
try replacing all of the |
@sparrc It's working ! We should catch the error and print a better error message for users |
@sparrc It's NOT workgin (I load an other config file :/) |
@sparrc I just updated the gist |
what about:
to just
|
Still no :( (gist updated) |
try removing the trailing comment: https://gist.github.com/titilambert/e5572dd1223a85c5d2af#file-telegraf-conf-L830? |
Still no :(
The only diff is : in the working file I just commented the last line .... |
@sparrc are we stuck with this parser ? |
I tried pelletier/go-toml but it doesn't provide the capability to unmarshal toml data onto an arbitrary interface. https://github.com/kezhuw/toml looks promising. |
@sparrc So what can I do ? :D |
I really don't know, sorry, just try to get the file to not panic 🙈 🔫 |
:D oki, I will try something this evening :) |
@sparrc I made a "dirty workaround" which removes all comments from sampleconfig test file when you run |
@sparrc well, it's working, it's ugly ... this is workaround definition ... |
😱! no! this is catching an actual bug, the -sample-config generated file should work out of the box. Try rebasing and running again (I made some changes to the config file format when merging a separate PR just now) |
@sparrc :D :D |
@titilambert I've merged all necessary external PRs and fixed dependencies for #745, please rebase and the config file panic should be fixed. |
@sparrc rebased ! |
OK, is this ready to go then? Could you update the README with an explanation of what these table features are exactly? |
@sparrc README added ! |
in the README, can you put more explanation of the different config options? I'm not sure I understand the differences between |
23cd00c
to
e3e12f7
Compare
@sparrc README updated ! Tell me if is OK now. |
#TODELETE stuff removed :) @sparrc This PR is good for me ! |
closes influxdata#735 closes influxdata#773 closes influxdata#540
@sparrc Hello !
It seems tests are failing because of number of entries in config files ???
If I remove 4 entries in
testconfig.conf
file, I don't have any error ...Is it a bug from toml ???