sensu client on windows not working


#1

Hi,

I used sensu-0.26.0-1.msi to install sensu on a windows server 2012 R2. The service starts but i get “[amqp] Detected TCP connection failure” in the sensu-client.log file. When i print the config using sensu cli my rabbitmq config is not there and my subscription to “windows” is not there. I’ve tried this on two different windows machines with the same results. I’ve also tried two different version of sensu. See below.

C:\opt\sensu\conf.d\client.json

{

“client”: {

“name”: “IEATVC6VM4”,

“address”: “10.44.91.173”,

“subscriptions”: [

“windows”

]

}

}

C:\opt\sensu\conf.d\rabbitmq.json

{

“rabbitmq”: {

“ssl”: {

“cert_chain_file”: “C:\opt\sensu\ssl\cert.pem”,

“private_key_file”: “C:\opt\sensu\ssl\key.pem”

},

“host”: “atvpasensu1.xxxxxxxxxxx”,

“port”: 5671,

“vhost”: “/sensu”,

“user”: “sensu”,

“password”: “sensu”

}

}

C:\opt\sensu\conf.d\transport.json

{

“transport”: {

“name”: “rabbitmq”,

“reconnect_on_error”: true

}

}

This is the output from print_config:

C:\opt\sensu\embedded\bin>sensu-client --print_config

{“timestamp”:“2016-11-04T14:47:49.121344+0000”,“level”:“warn”,“message”:"applied

sensu client overrides",“client”:{“name”:“ieatvc6vm4”,“address”:“10.44.91.173”,

“subscriptions”:[“client:ieatvc6vm4”]}}

{“timestamp”:“2016-11-04T14:47:49.121344+0000”,“level”:“warn”,“message”:"outputt

ing compiled configuration and exiting"}

{

“sensu”:{

“spawn”:{

“limit”:12

}

},

“transport”:{

“name”:“rabbitmq”,

“reconnect_on_error”:true

},

“checks”:{},

“filters”:{},

“mutators”:{},

“handlers”:{},

“extensions”:{},

“client”:{

“name”:“ieatvc6vm4”,

“address”:“10.44.91.173”,

“subscriptions”:[

“client:ieatvc6vm4”

]

}

}

sensu-client.log

{“timestamp”:“2016-11-04T14:52:58.090773+0000”,“level”:“warn”,“message”:“applied sensu client overrides”,“client”:{“name”:“ieatvc6vm4”,“address”:“10.44.91.173”,“subscriptions”:[“client:ieatvc6vm4”]}}

{“timestamp”:“2016-11-04T14:52:58.090773+0000”,“level”:“info”,“message”:“configuring sensu spawn”,“settings”:{“limit”:12}}

{“timestamp”:“2016-11-04T14:52:59.278282+0000”,“level”:“error”,“message”:"[amqp] Detected TCP connection failure: "}

···

This is the output with the same config but after installing sensu-0.26.3-1.msi …

C:\opt\sensu\embedded\bin>sensu-client --print_config

{“timestamp”:“2016-11-04T15:30:18.111208+0000”,“level”:“warn”,“message”:"applied

sensu client overrides",“client”:{“name”:“ieatvc6vm4”,“address”:“10.44.91.173”,

“subscriptions”:[“client:ieatvc6vm4”]}}

{“timestamp”:“2016-11-04T15:30:18.111208+0000”,“level”:“fatal”,“message”:"client

subscriptions must be an array",“object”:{“name”:“ieatvc6vm4”,“address”:"10.44.

91.173",“subscriptions”:[“client:ieatvc6vm4”]}}

{“timestamp”:“2016-11-04T15:30:18.111208+0000”,“level”:“warn”,“message”:"outputt

ing compiled configuration and exiting"}

{

“client”:{

“name”:“ieatvc6vm4”,

“address”:“10.44.91.173”,

“subscriptions”:[

“client:ieatvc6vm4”

]

},

“sensu”:{

“spawn”:{

“limit”:12

}

},

“transport”:{

“name”:“rabbitmq”,

“reconnect_on_error”:true

},

“checks”:{},

“filters”:{},

“mutators”:{},

“handlers”:{},

“extensions”:{}

}

and sensu-client.log …

{“timestamp”:“2016-11-04T15:16:03.843747+0000”,“level”:“warn”,“message”:“applied sensu client overrides”,“client”:{“name”:“ieatvc6vm4”,“address”:“10.44.91.173”,“subscriptions”:[“client:ieatvc6vm4”]}}

{“timestamp”:“2016-11-04T15:16:03.843747+0000”,“level”:“fatal”,“message”:“client subscriptions must be an array”,“object”:{“name”:“ieatvc6vm4”,“address”:“10.44.91.173”,“subscriptions”:[“client:ieatvc6vm4”]}}

{“timestamp”:“2016-11-04T15:16:03.843747+0000”,“level”:“fatal”,“message”:“SENSU NOT RUNNING!”}

Any help greatly appreciated.

BTW, this link on sensu document page is not working https://sensu.global.ssl.fastly.net/msi/sensu-0.26.1-1.msi

Regards,

Noel