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

Unhandled python exception #10

Closed
wabit opened this issue Dec 27, 2015 · 5 comments · Fixed by #11
Closed

Unhandled python exception #10

wabit opened this issue Dec 27, 2015 · 5 comments · Fixed by #11
Assignees
Labels

Comments

@wabit
Copy link

wabit commented Dec 27, 2015

When collectd starts I am getting the following problem:

plex plugin: configured with Namespace(authtoken='neJiTQP65rqsqx#####', episodes=True, exclude=[], host='localhost', https=True, include=[], movies=True, port=32400, sessions=True, shows=True)
Dec 27 15:44:37 plex collectd[1969]: plex plugin: configured with Namespace(authtoken='neJiTQP65rqsqx#####', episodes=True, exclude=[], host='localhost', https=True, include=[], movies=True, port=32400, sessions=True, shows=True)
Dec 27 15:44:37 plex collectd[1969]: Initialization complete, entering read-loop.
Dec 27 15:44:37 plex collectd[1969]: rrdtool plugin: Adjusting "RandomTimeout" to 0.000 seconds.
Dec 27 15:44:37 plex collectd[1969]: Unhandled python exception in read callback: ValueError: zero length field name in format
Dec 27 15:44:37 plex collectd[1969]: read-function of plugin `python.plex' failed. Will suspend it for 20.000 seconds.

@rickatnight11
Copy link
Owner

What does your config look like?

@rickatnight11
Copy link
Owner

Also, what version of Python are you running?

@wabit
Copy link
Author

wabit commented Dec 27, 2015

Hi Im using Python 2.6.6 and my config looks like:

Globals true ModulePath "/usr/bin/collectd/plugins" Import "plex"
<Module plex>
    Host "localhost"
    Port 32400
    AuthToken neJiTQP65rqsqx#####
</Module>

Full config can be found here http://pastebin.com/sY8fKq1x

@rickatnight11
Copy link
Owner

@wabit, I just pushed a new branch (above) that should fix this (I developed this against Python 2.7, which doesn't explicitly need indices when using string formatting, but Python 2.6 does). Will you grab plex.py from that branch and try it out?

@wabit
Copy link
Author

wabit commented Dec 31, 2015

Awesome I've just tried it and its working fine. thanks for the fix :)

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

Successfully merging a pull request may close this issue.

2 participants