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

Interval flag not respected #14

Open
raidancampbell opened this issue Nov 13, 2016 · 0 comments
Open

Interval flag not respected #14

raidancampbell opened this issue Nov 13, 2016 · 0 comments

Comments

@raidancampbell
Copy link

This may 100% be an issue with my collectd install, but I've found the Interval flag (in the LoadPlugin) section of collectd.conf does not change the query frequency of collectd-plex. A simple solution would be to add a parser argument, and pass it as the second parameter in the following line:

 collectd.register_read(get_metrics)

As it stands, I see collectd-plex query the server every 15 seconds, and no matter how many changes I made to collectd.conf, nothing changed this behavior. By changing the above line to:

 collectd.register_read(get_metrics, 60)

I see the update interval drop to the expected 60 seconds.

I would have expected that the Interval flag set in the LoadPlugin python section would work, but it did not. Below is the relevant sections of my config:

 <LoadPlugin python>
   Globals true
   Interval 60
 </LoadPlugin>

...

 <Plugin python>
     ModulePath "/usr/local/src/collectd-plex"
     Import "plex"
     Interval 60
   <Module plex>
     Host "******"
     Port 32400
     AuthToken ******
     Interval 60
   </Module>
 </Plugin>

As expected, the two Interval flags in the <Plugin python> section and subsection do nothing: they simply raise warnings for unexpected flags.

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

1 participant