sensu/sensu-community-plugins — pull request #590 by jmherbst (2014-05-15 19:18:48+00:00)
Title: Added aggregate API 'limit' parameter as an option to the check-aggregate.rb plugin

Hello,

I was setting up an aggregate check and wanted a way to monitor the aggregates. Found this plugin, but there was no option/ability to retrieve and check just the most recent aggregate. The "--age" option only allowed me view aggregates OLDER than a certain time, and no way to view aggregates NEWER -- This seems to be by design of the 'age' option for the aggregate API, but I'm still not sure what scenario that would be used for.

Instead I wanted to add functionality for the 'limit' option in the aggregate API to accomplish my goal.

This merge request accomplishes that goal without breaking the current functionality of the plugin.

Please merge!
Thanks,
jmherbst