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

Question - How to connect to the sensu api using the sensu-cli? #48

Closed
030 opened this issue Oct 4, 2016 · 3 comments
Closed

Question - How to connect to the sensu api using the sensu-cli? #48

030 opened this issue Oct 4, 2016 · 3 comments

Comments

@030
Copy link

030 commented Oct 4, 2016

sensu-cli check list
An HTTP error occurred. Check your settings. Connection refused - connect(2)

/home/user/.sensu/settings.rb.

host "company.sheva.io"
port "4567"
ssl false
read_timeout 20
open_timeout 20
user ""
password ""

uchiwa.json contains an empty pass and username as well

@030 030 changed the title Question - How to connect to the sensu api using the sensu-cli Question - How to connect to the sensu api using the sensu-cli? Oct 4, 2016
@agent462
Copy link
Owner

agent462 commented Oct 4, 2016

I won't be able to solve why you are getting a connection refused. This is usually because of a firewall or nothing is listening on the IP:Port you are specifying.

You can check that the port is listening with something like sudo netstat -tulpn | grep 4567

Other than that make sure iptables, firewalld or whatever physical firewall you have has the port open.

@030
Copy link
Author

030 commented Oct 4, 2016

I did a telnet and it is able to connect

@030
Copy link
Author

030 commented Oct 4, 2016

A /home/user/.sensu/settings.rb was created initially, subsequently the correct values were put in /home/user/.sensu/settings.rb., while it should have been /home/user/.sensu/settings.rb. The issue was caused by the .

@030 030 closed this as completed Oct 4, 2016
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