agent462 / sensu-cli

A Sensu CLI for getting and deleting information from Sensu.
103 stars 42 forks source link

Useful helpers for sensu-cli #11

Open yacn opened 10 years ago

yacn commented 10 years ago

sensu-cli makes interacting with the Sensu API simple and fairly painless, unless you want to apply some action to multiple results. I've got a script I threw together that I've been using to help automate some of the actions surrounding this. I figure they may be of use to others.

https://gist.github.com/yacn/6453047

It's pretty hacky and could definitely be cleaned up and refined, but I figured I may as well get it out there so others could benefit.

agent462 commented 10 years ago

Thanks,

I'll take a look at this when I get a chance to see if making it native functionality is beneficial.

yacn commented 10 years ago

Thanks for taking a look, appreciate it. I just updated the gist, it's slightly more complicated now but now you can refer to columns by their title instead of their position in the array.