Uchiwa problem with stash


#1

Hi,

It is very strange. The uchiwa frontend can apparently display clients and events withno issue.

But when it comes to stash, I find a lot of error in the log:

{“Date”:“2015-03-03T20:20:53.70131664Z”,“Level”:“warning”,“Src”:{“Func”:“github.com/sensu/uchiwa/uchiwa.Build",“Line”:49},“Output”:"API call to “http://127.0.0.1:4567/stashes” returned: Get http://127.0.0.1:4567/stashes: dial tcp 127.0.0.1:4567: connection refused”}

Here is my config.json

{

“rabbitmq”: {

"host": "localhost",

"port": 5671,

"vhost": "/sensu",

"user": "sensu",

"password": "password",

"ssl": {

  "cert_chain_file": "/etc/sensu/ssl/cert.pem",

  "private_key_file": "/etc/sensu/ssl/key.pem"

}

},

“redis”: {

"host": "localhost",

"port": 6379

},

“api”: {

"host": "localhost",

"bind": "0.0.0.0",

"port": 4567

}

}

and here is my uchiwa config:

{

“uchiwa”: {

"user": "admin",

"pass": "password",

"refresh": 5,

"host": "0.0.0.0",

"port": 3000

},

“sensu”: [

{

  "name": "Sensu",

  "host": "127.0.0.1",

  "port": 4567,

  "path": "",

  "ssl": false,

  "timeout": 5

}

]

}

What did I miss in my configuration?


#2

Hi Anthony,

The reason why you see entries regarding the stashes is simply because it’s the first call made to an API by Uchiwa and if it fails, it will pass to the next API.

I recommend that to verify your Sensu API logs in order to understand why Uchiwa can’t connect temporarily to the API. It might be, for example, because your configuration management tool is restarting the API.

···

On Tuesday, March 3, 2015 at 10:34:50 PM UTC-5, Anthony Kong wrote:

Hi,

It is very strange. The uchiwa frontend can apparently display clients and events withno issue.

But when it comes to stash, I find a lot of error in the log:

{“Date”:“2015-03-03T20:20:53.70131664Z”,“Level”:“warning”,“Src”:{“Func”:“github.com/sensu/uchiwa/uchiwa.Build”,“Line”:49},“Output”:“API call to “[http://127.0.0.1:4567/stashes](http://127.0.0.1:4567/stashes\)” returned: Get http://127.0.0.1:4567/stashes: dial tcp 127.0.0.1:4567: connection refused”}

Here is my config.json

{

“rabbitmq”: {

"host": "localhost",
"port": 5671,
"vhost": "/sensu",
"user": "sensu",
"password": "password",
"ssl": {
  "cert_chain_file": "/etc/sensu/ssl/cert.pem",
  "private_key_file": "/etc/sensu/ssl/key.pem"
}

},

“redis”: {

"host": "localhost",
"port": 6379

},

“api”: {

"host": "localhost",
"bind": "0.0.0.0",
"port": 4567

}

}

and here is my uchiwa config:

{

“uchiwa”: {

"user": "admin",
"pass": "password",
"refresh": 5,
"host": "0.0.0.0",
"port": 3000

},

“sensu”: [

{
  "name": "Sensu",
  "host": "127.0.0.1",
  "port": 4567,
  "path": "",
  "ssl": false,
  "timeout": 5
}

]

}

What did I miss in my configuration?