【问题标题】:Twitter handler (sensu and ruby) troubleshootingTwitter 处理程序(sensu 和 ruby​​)故障排除
【发布时间】:2014-02-03 23:18:22
【问题描述】:

我正在尝试让 Sensu twitter-handler 在我的环境中工作。问题是当我将 .json 事件放入 twitter-handler 时,我在屏幕或日志上没有收到任何错误,并且推文没有显示在链接的帐户上。

这是我的配置文件:

https://gist.github.com/Mariano-gon/8648427

https://gist.github.com/Mariano-gon/8648455

https://gist.github.com/Mariano-gon/8648489

这是我得到的输出:

https://gist.github.com/Mariano-gon/8648480

一个重要的注意事项是在 sensu-api.log 中正在接收请求:

https://gist.github.com/Mariano-gon/8673758

所以,我的问题是:有没有办法解决这个问题?有什么方法可以调试handler.rb? 谢谢!

【问题讨论】:

    标签: ruby debugging twitter handler sensu


    【解决方案1】:

    终于搞定了!问题是新的“twitter” gem(在我的例子中是 v5.6)在编写代码时无法使用。我也需要关注这个伟大的answer 和这个thread。只是一个sintaxis的问题(像往常一样)。 谢谢!

    【讨论】:

      猜你喜欢
      • 2022-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-01
      • 2016-06-18
      相关资源
      最近更新 更多