Sensu:注册客户端不会在延迟后呈现保持活动状态警告



当我使用POST /clients API资源创建Sensu客户端时,它会显示在Uchiwa Dashboard中,但我预计保持活动检查默认情况下会在180秒后失败,因为没有实际的Sensu客户端签入。

如何使保活检查开始失败?

成功地将keepalive添加到注册上的订阅没有任何效果。

Sensu服务器不支持通过API创建的客户端保持活动:https://github.com/sensu/sensu/blob/master/lib/sensu/server/process.rb#L476

  # Create a blank client (data) and add it to the client
  # registry. Only the client name is known, the other client
  # attributes must be updated via the API (POST /clients:client).
  # Dynamically created clients and those updated via the API will
  # have client keepalives disabled, `:keepalives` is set to
  # `false`.

相关内容

最新更新