Sensu client not executing the checks

Hi All,

I am new to sensu, I have installed sensu on my desktop and it is working great. When I tried the similar setup in AWS it isn’t working. I don’t see the checks being executed in sensu-client.log. I am using Uchiwa dashboard and I neither see the clients being listed out there.

I am not using rabbitmq in ssl mode. Here is my server and client configuration please advice.

config.json

{

“rabbitmq”: {

“port”: 5672,

“host”: “127.0.0.1”,

“user”: “sensu”,

“password”: “something”,

“vhost”: “/sensu”

},

“redis”: {

“host”: “localhost”,

“port”: 6379

},

“api”: {

“host”: “localhost”,

“port”: 4567,

“user”: “admin”,

“password”: “something”,

“bind”: “0.0.0.0”

},

“handlers”: {

“default”: {

“type”: “pipe”,

“command”: “true”

}

}

}

Check on server

{

“checks”: {

“check_nodeproc”: {

“handlers”: [“default”, “mailer”],

“command”: “/opt/sensu/embedded/bin/ruby /etc/sensu/plugins/check-procs.rb -p server.js -C 10”,

“interval”: 60,

“subscribers”: [ “monitorServer”, “webserver1” ]

}

}

}

Client Configuration:

config.json

{

“rabbitmq”: {

“host”: “10.0.0.30”,

“port”: 5672,

“vhost”: “/sensu”,

“user”: “sensu”,

“password”: “something”

}

}

client.json

{

“client”: {

“name”: “nodewebserver1”,

“address”: “127.0.0.1”,

“subscriptions”: [ “monitorServer”, “webserver1” ]

}

}

Thanks for your help in advance.

Mani

Can you pastebin all your logs so we can get the full context?

···

On Thu, Aug 28, 2014 at 7:27 PM, reachmani <reachmani@gmail.com> wrote:

Hi All,

I am new to sensu, I have installed sensu on my desktop and it is working
great. When I tried the similar setup in AWS it isn't working. I don't see
the checks being executed in sensu-client.log. I am using Uchiwa dashboard
and I neither see the clients being listed out there.

I am not using rabbitmq in ssl mode. Here is my server and client
configuration please advice.

config.json
{
        "rabbitmq": {
                "port": 5672,
                "host": "127.0.0.1",
                "user": "sensu",
                "password": "something",
                "vhost": "/sensu"
        },
        "redis": {
                "host": "localhost",
                "port": 6379
        },
        "api": {
                "host": "localhost",
                "port": 4567,
                "user": "admin",
                "password": "something",
                "bind": "0.0.0.0"
        },
        "handlers": {
                "default": {
                        "type": "pipe",
                        "command": "true"
                }
        }
}

Check on server
{
  "checks": {
    "check_nodeproc": {
      "handlers": ["default", "mailer"],
      "command": "/opt/sensu/embedded/bin/ruby
/etc/sensu/plugins/check-procs.rb -p server.js -C 10",
      "interval": 60,
      "subscribers": [ "monitorServer", "webserver1" ]
    }
  }
}

Client Configuration:
config.json
{
  "rabbitmq": {
    "host": "10.0.0.30",
    "port": 5672,
    "vhost": "/sensu",
    "user": "sensu",
    "password": "something"
  }
}

client.json
{
  "client": {
    "name": "nodewebserver1",
    "address": "127.0.0.1",
    "subscriptions": [ "monitorServer", "webserver1" ]
  }
}

Thanks for your help in advance.

Mani

I did clean install and it works seamlessly. Thanks for your reply.

···

On Friday, August 29, 2014 8:40:29 PM UTC+5:30, Kyle Anderson wrote:

Can you pastebin all your logs so we can get the full context?

On Thu, Aug 28, 2014 at 7:27 PM, reachmani reac...@gmail.com wrote:

Hi All,

I am new to sensu, I have installed sensu on my desktop and it is working

great. When I tried the similar setup in AWS it isn’t working. I don’t see

the checks being executed in sensu-client.log. I am using Uchiwa dashboard

and I neither see the clients being listed out there.

I am not using rabbitmq in ssl mode. Here is my server and client

configuration please advice.

config.json

{

    "rabbitmq": {
            "port": 5672,
            "host": "127.0.0.1",
            "user": "sensu",
            "password": "something",
            "vhost": "/sensu"
    },
    "redis": {
            "host": "localhost",
            "port": 6379
    },
    "api": {
            "host": "localhost",
            "port": 4567,
            "user": "admin",
            "password": "something",
            "bind": "0.0.0.0"
    },
    "handlers": {
            "default": {
                    "type": "pipe",
                    "command": "true"
            }
    }

}

Check on server

{

“checks”: {

"check_nodeproc": {
  "handlers": ["default", "mailer"],
  "command": "/opt/sensu/embedded/bin/ruby

/etc/sensu/plugins/check-procs.rb -p server.js -C 10",

  "interval": 60,
  "subscribers": [ "monitorServer", "webserver1" ]
}

}

}

Client Configuration:

config.json

{

“rabbitmq”: {

"host": "10.0.0.30",
"port": 5672,
"vhost": "/sensu",
"user": "sensu",
"password": "something"

}

}

client.json

{

“client”: {

"name": "nodewebserver1",
"address": "127.0.0.1",
"subscriptions": [ "monitorServer", "webserver1" ]

}

}

Thanks for your help in advance.

Mani