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

check-mysql-connections.rb getting connection error message #93

Open
vedantsingh1995 opened this issue Dec 19, 2018 · 1 comment
Open

Comments

@vedantsingh1995
Copy link

vedantsingh1995 commented Dec 19, 2018

Check failed to run: Connection refused - connect(2) for "10.236.220.135" port 3306, ["/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/ruby-mysql-2.9.14/lib/mysql/protocol.rb:153:in initialize'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/ruby-mysql-2.9.14/lib/mysql/protocol.rb:153:in new'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/ruby-mysql-2.9.14/lib/mysql/protocol.rb:153:in block in initialize'", "/opt/sensu/embedded/lib/ruby/2.4.0/timeout.rb:76:in timeout'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/ruby-mysql-2.9.14/lib/mysql/protocol.rb:147:in initialize'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/ruby-mysql-2.9.14/lib/mysql.rb:115:in new'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/ruby-mysql-2.9.14/lib/mysql.rb:115:in connect'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/ruby-mysql-2.9.14/lib/mysql.rb:50:in new'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-mysql-3.1.0/bin/check-mysql-connections.rb:84:in run'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.5/lib/sensu-plugin/cli.rb:58:in block in class:CLI'"]

@gonja-dude
Copy link

there might be a firewall preventing the sensu server from making the connection. If you have a firewall in place, kindly all inbound traffic from the sensu server to the DB and I am pretty sure that should resolve the connection error message

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

2 participants