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

Worker crash if hostname is not resolving #22

Open
guillaume-u opened this issue May 30, 2017 · 0 comments
Open

Worker crash if hostname is not resolving #22

guillaume-u opened this issue May 30, 2017 · 0 comments

Comments

@guillaume-u
Copy link

I removed a host from my bind configuration. So NRPE is not able to resolve it anymore.

I get this error :

File "/var/lib/shinken/modules/booster-nrpe/module.py", line 508, in work
self.do_work(s, returns_queue, c)
File "/var/lib/shinken/modules/booster-nrpe/module.py", line 547, in do_work
self.launch_new_checks()
File "/var/lib/shinken/modules/booster-nrpe/module.py", line 446, in launch_new_checks
n = NRPEAsyncClient(host, port, use_ssl, timeout, unknown_on_timeout, cmd)
File "/var/lib/shinken/modules/booster-nrpe/module.py", line 189, in init
self.create_socket(family, socket.SOCK_STREAM)
UnboundLocalError: local variable 'family' referenced before assignment

And I get this log :

WARNING: [Shinken] [monitoring-cme001] The worker 1 goes down unexpectedly!

As the result, shinken doesn't execute NRPE check after a while and probes status are staled.

Guillaume.

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