频道1已关闭,您无法再使用它! (AMQP :: ChannelClosedError)
问题描述:
我想使用sensu框架来监视我的EC2实例,但不幸的是我面临着一个问题The channel 1 was closed, you can't use it anymore! (AMQP::ChannelClosedError)
。 错误的堆栈也在这里提出,但可以找出解决方案。 http://www.sand4.info/index.php?q=aHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20vMTQ5MTA0NA%3D%3D频道1已关闭,您无法再使用它! (AMQP :: ChannelClosedError)
任何帮助将不胜感激..
答
得到了IRC的解决方案...我还没有在我的Windows系统配置石墨。我还没有找到任何方式来配置在Windows中。我所做的是我已经删除了石墨处理程序,并将默认处理程序在客户端和服务器端。 这是服务器端的config.json。
{
"rabbitmq": {
"port": 5672,
"host": "127.0.0.1",
"user": "guest",
"password": "guest",
"vhost": "/"
},
"redis": {
"host": "localhost",
"port": 6379
},
"api": {
"host": "localhost",
"port": 4567
},
"dashboard": {
"host": "localhost",
"port": 8080,
"user": "admin",
"password": "admin"
},
"handlers": {
"default": {
"type": "pipe",
"command": "ruby C:/sensuServer/sensuserverSSL/stdout.rb",
"send_only_check_output": true
}
},
"checks": {
"b": {
"command": "ruby C:/sensuServer/sensuserverSSL/stdout.rb",
"subscribers": [
"test"
],
"interval": 10,
"auto_resolve": true
}
}
}