Почему клиент Sensu не слушает, в то время как он должен работать согласно журналу на CentOS7?

Это дополнительный вопрос к этому Q & A.

  • Клиент Sensu не запускается

sudo systemctl start sensu-client
Job for sensu-client.service failed because the control process exited with error code. See "systemctl status sensu-client.service" and "journalctl -xe" for details.

  • В журнале указано:

{"timestamp":"2016-07-03T23:38:20.923380+0000","level":"warn","message":"loading config file","file":"/etc/sensu/config.json"}
{"timestamp":"2016-07-03T23:38:20.923636+0000","level":"warn","message":"loading config files from directory","directory":"/etc/sensu/conf.d"}
{"timestamp":"2016-07-03T23:38:20.923762+0000","level":"fatal","message":"client must be a hash","object":null}
{"timestamp":"2016-07-03T23:38:20.923862+0000","level":"fatal","message":"SENSU NOT RUNNING!"}


{
  "client": {
    "name": "rhel",
    "address": "127.0.0.1",
    "environment": "development",
    "subscriptions": [
      "dev",
      "rhel"
    ],
    "socket": {
      "bind": "127.0.0.1",
      "port": 3030
    }
  }
}
  • Ошибка не была показана один раз sudo systemctl restart sensu-client.service был выполнен

  • Однако порт 3030 не слушает

  • По логу клиент должен работать


{"timestamp":"2016-07-03T23:43:30.266806+0000","level":"warn","message":"config file applied changes","file":"/etc/sensu/conf.d/client.json","changes":{"client":[null,{"name":"rhel","address":"127.0.0.1","environment":"development","subscriptions":["dev","rhel"],"socket":{"bind":"127.0.0.1","port":3030}}]}}
{"timestamp":"2016-07-03T23:43:30.271493+0000","level":"warn","message":"loading extension files from directory","directory":"/etc/sensu/extensions"}
{"timestamp":"2016-07-03T23:43:30.271782+0000","level":"info","message":"configuring sensu spawn","settings":{"limit":12}}

0 ответов

Другие вопросы по тегам