1

我正在尝试使用 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

任何帮助将不胜感激..

4

1 回答 1

1

从 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
            }
    }   
}
于 2012-04-25T08:53:10.967 回答