简体   繁体   中英

Twitter handler (sensu and ruby) troubleshooting

I'm trying to get Sensu twitter-handler working on my environment. The issue is that I'm not getting any errors on screen or logs when I cat a .json event into the twitter-handler and, the tweets are not being shown on the linked account.

Here're are my config files:

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

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

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

This is the output I get:

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

One important note is that in sensu-api.log the request are being recieved:

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

So, my question is: is there a way to troubleshoot this issue? Any way to debug the handler.rb? Thanks!

Finally got it working! Thing was the new 'twitter' gem (in my case v5.6) won't work with the code as it was written. I needed to follow this great answer and this thread too. Was just a matter of sintaxis (as usual). Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM