railsmachine/nagiosharder — pull request #9 by jnewland (2012-10-21 14:18:28+00:00)
Title: 0.4.0rc1

Yo @technicalpickles wanna add me to the gem owners so I can release an RC of this?

### Bugfixes

* Fixes simple typos in the docs

### Improvements

* Accept `time` config option to specify optionally force US time format. Defaults to existing version-based detection behavior.
* Implement host acknowledgements.
* Upgrades httparty and hashie dependencies.
* Adds `muted` command to CLI, returns all muted services
* Adds `acked` command to CLI, returns all acked services that aren't muted
* Adds `critical` command to CLI, returns all services in hard critical state that aren't acknowledged, muted, or have notifications disabled
* Adds `warning` command to CLI, returns all services in hard warning state that aren't acknowledged, muted, or have notifications disabled
* Adds `unknown` command to CLI, returns all services in hard unknown state that aren't acknowledged, muted, or have notifications disabled

### Breaking changes

* Refactors `service_status` based on a new `Nagiosharder::Filters` class to accept all nagios filter and sort types by name. Old `type` options passed to `service_status` (like `:all_problems`) are no longer supported.

```
# > Nagiosharder::Filters.value(:host)
# => 0
# > Nagiosharder::Filters.value(:host, :state_acknowledged)
# => 4
# > Nagiosharder::Filters.value(:host, :state_acknowledged, :checks_disabled)
# => 20
# > nagios.site.service_status(
:service_status_types => [
:critical,
],
:sort_type => :descending,
:sort_option => :state_duration,
)

```