[英]Sensu Client status
I am trying to see why my Sensu Client does not connect to my Sensu Server. 我正在尝试查看为什么我的Sensu客户端无法连接到我的Sensu服务器。
How can I see the status of the client and whether it tried, succeeded, failed in connecting with the server? 我如何查看客户端的状态以及它是否尝试,成功,失败与服务器连接?
C:\\etc\\sensu\\conf.d\\client.json
C:\\等\\意义上的\\ conf.d \\ client.json
{
"client": {
"name": "DanWindows",
"address": " 192.168.59.3",
"subscriptions": [ "all" ]
}
}
C:\\etc\\sensu\\config.json
C:\\等\\意义上的\\ config.json
{
"rabbitmq": {
"host": "192.168.59.103",
"port": 5671,
"vhost": "/sensu",
"user": "sensu",
"password": "password",
"ssl": {
"cert_chain_file": "C:/etc/sensu/ssl/cert.pem",
"private_key_file": "C:/etc/sensu/ssl/key.pem"
}
}
}
I have installed and started the Sensu Client service using following command: 我已经使用以下命令安装并启动了Sensu Client服务:
sc create sensu-client binPath= C:\\Tools\\sensu\\bin\\sensu-client.exe DisplayName= "Sensu Client"
On the Uchiwa panel I do not see any clients. 在Uchiwa面板上,我没有看到任何客户端。
The "sensu-client.err.log" and "sensu-client.out.log" are empty, while "sensu-client.wrapper.log" contains this: “ sensu-client.err.log”和“ sensu-client.out.log”为空,而“ sensu-client.wrapper.log”包含以下内容:
2015-01-16 13:41:51 - Starting C:\\Tools\\sensu\\embedded\\bin\\ruby C:\\Tools\\sensu\\embedded\\bin\\sensu-client -d C:\\etc\\sensu\\conf.d -l C:\\Tools\\sensu\\sensu-client.log 2015-01-16 13:41:51 - Started 3800
How can I see the status of the Windows client and whether it tried, succeeded, failed in connecting with the server? 如何查看Windows客户端的状态,以及它是否尝试,成功,失败与服务器连接?
Question on the docker, is this one you built yourself? 在docker上提问,这是您自己打造的吗? I recently built my own as well only using Ubuntu instead of CentOS.
我最近也只使用Ubuntu而不是CentOS构建了自己的。
Recent versions of sensu require the following two files in the /etc/sensu/conf.d
directory: sensu的最新版本在
/etc/sensu/conf.d
目录中需要以下两个文件:
/etc/sensu/conf.d/rabbitmq.json
/etc/sensu/conf.d/client.json
The client.json file will have contents similar to this: client.json文件将具有类似于以下内容:
{ "client": {
"name": "my-sensu-client",
"address": "192.168.x.x",
"subscriptions": [ "ALL" ] }
}
The only place I have heard of needing a config.json
file is on the sensu-server. 我听说需要
config.json
文件的唯一位置是sensu服务器上。 But I have only recently been looking at sensu so this may be an older sensu requirement. 但是我直到最近才在使用sensu,因此这可能是较早的sensu要求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.