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

Issue with rethinkdbs plugin #6429

Closed
sloaizav opened this issue Jul 11, 2019 · 9 comments · Fixed by #6431
Closed

Issue with rethinkdbs plugin #6429

sloaizav opened this issue Jul 11, 2019 · 9 comments · Fixed by #6431
Assignees
Labels
area/collectors Everything related to data collection bug collectors/python.d
Milestone

Comments

@sloaizav
Copy link

sloaizav commented Jul 11, 2019

hi all .

i have a question regarding rethinkdbs plugin on netdata

when i try to run the plugin on debug mode i get this:

root@xxxxxxxxx:/usr/libexec/netdata/plugins.d# ./python.d.plugin debug 1 rethinkdbs
2019-07-11 01:29:40: python.d INFO: plugin[main] : using python v2
2019-07-11 01:29:40: python.d INFO: plugin[main] : starting setup
2019-07-11 01:29:40: python.d INFO: plugin[main] : checking for config in ['/etc/netdata', '/usr/lib/netdata/conf.d']
2019-07-11 01:29:40: python.d INFO: plugin[main] : config found, loading config '/usr/lib/netdata/conf.d/python.d.conf'
2019-07-11 01:29:40: python.d INFO: plugin[main] : config successfully loaded
2019-07-11 01:29:40: python.d INFO: plugin[main] : starting checker process (1 module(s) to check)
2019-07-11 01:29:40: python.d INFO: plugin[checker] : starting...
2019-07-11 01:29:40: python.d INFO: plugin[checker] : rethinkdbs : checking

2019-07-11 01:29:40: python.d INFO: plugin[checker] : rethinkdbs : source successfully loaded
2019-07-11 01:29:40: python.d INFO: plugin[checker] : rethinkdbs : found config file '/etc/netdata/python.d/rethinkdbs.conf'
2019-07-11 01:29:40: python.d INFO: plugin[checker] : rethinkdbs : created 1 job(s) from the config
2019-07-11 01:29:40: python.d WARNING: plugin[checker] : rethinkdbs[connect] : unhandled exception on check : 'module' object has no attribute 'connect', skipping the job
2019-07-11 01:29:40: python.d INFO: plugin[checker] : rethinkdbs : all jobs failed, skipping module
2019-07-11 01:29:40: python.d INFO: plugin[checker] : terminating...
2019-07-11 01:29:40: python.d INFO: plugin[main] : stopping checker process
2019-07-11 01:29:40: python.d INFO: plugin[main] : no modules to run
DISABLE

in the /etc/netdata/python.d/rethinkdbs.conf i have:

local:
name : 'bots'
host : '127.0.0.1'
port : 28015
user : ""
password : "
"

do you have any ideas?

Thank you!

@sloaizav sloaizav added no changelog Issues which are not going to be added to changelog question labels Jul 11, 2019
@ilyam8
Copy link
Member

ilyam8 commented Jul 11, 2019

Hi

rethinkdbs[connect] : unhandled exception on check

name : 'bots'

The name is connect according logs

self.log.warning("{0}[{1}] : unhandled exception on check : {2}, skipping the job".format(
task.module_name, job.name, error))

Please do

./python.d.plugin debug 1 rethinkdbs trace

@sloaizav
Copy link
Author

hello!

same result
this name refers to?

`root@xxxxxxxxxxx:/usr/libexec/netdata/plugins.d# ./python.d.plugin debug 1 rethinkdbs trace
2019-07-11 13:12:49: python.d INFO: plugin[main] : using python v2
2019-07-11 13:12:49: python.d INFO: plugin[main] : starting setup
2019-07-11 13:12:49: python.d INFO: plugin[main] : checking for config in ['/etc/netdata', '/usr/lib/netdata/conf.d']
2019-07-11 13:12:49: python.d INFO: plugin[main] : config found, loading config '/usr/lib/netdata/conf.d/python.d.conf'
2019-07-11 13:12:49: python.d INFO: plugin[main] : config successfully loaded
2019-07-11 13:12:49: python.d INFO: plugin[main] : starting checker process (1 module(s) to check)
2019-07-11 13:12:49: python.d INFO: plugin[checker] : starting...
2019-07-11 13:12:49: python.d INFO: plugin[checker] : rethinkdbs : checking

2019-07-11 13:12:49: python.d INFO: plugin[checker] : rethinkdbs : source successfully loaded
2019-07-11 13:12:49: python.d INFO: plugin[checker] : rethinkdbs : found config file '/etc/netdata/python.d/rethinkdbs.conf'
2019-07-11 13:12:49: python.d INFO: plugin[checker] : rethinkdbs : created 1 job(s) from the config
2019-07-11 13:12:49: python.d WARNING: plugin[checker] : rethinkdbs[connect] : unhandled exception on check : 'module' object has no attribute 'connect', skipping the job
2019-07-11 13:12:49: python.d INFO: plugin[checker] : rethinkdbs : all jobs failed, skipping module
2019-07-11 13:12:49: python.d INFO: plugin[checker] : terminating...
2019-07-11 13:12:49: python.d INFO: plugin[main] : stopping checker process
2019-07-11 13:12:49: python.d INFO: plugin[main] : no modules to run
DISABLE`

thank you !

@ilyam8
Copy link
Member

ilyam8 commented Jul 11, 2019

ok, found, breaking changes in new version

https://stackoverflow.com/questions/33516546/rethinkdb-connect-attributeerror

@sloaizav
Copy link
Author

ok , i gonna change the code , thank you bro!!!!

@ilyam8
Copy link
Member

ilyam8 commented Jul 11, 2019

wait, i am doing PR

@sloaizav
Copy link
Author

yeah , now it's working , thank you so much !!!!!

@ilyam8 ilyam8 removed question no changelog Issues which are not going to be added to changelog labels Jul 11, 2019
@ilyam8
Copy link
Member

ilyam8 commented Jul 11, 2019

@sloaizav i simplified the fix, could you test new version?

@sloaizav
Copy link
Author

sloaizav commented Jul 11, 2019

yes , now it works fine ,

now it's failing because it doesn't detect the job, not for the code 👍

@ilyam8 ilyam8 added this to the v1.17-rc1 milestone Jul 11, 2019
@ilyam8 ilyam8 reopened this Jul 11, 2019
@ilyam8
Copy link
Member

ilyam8 commented Jul 11, 2019

the issue will be closed after the fix is merged

@ilyam8 ilyam8 added collectors/python.d area/collectors Everything related to data collection and removed area/external/python labels Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection bug collectors/python.d
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants