zorkian / nagios-api

A REST-like, JSON interface to Nagios
BSD 3-Clause "New" or "Revised" License
586 stars 173 forks source link

Add support for Acknowledgements via the API #13

Closed lozzd closed 11 years ago

lozzd commented 11 years ago

It would be awesome if it were possible to acknowledge service and host issues using the nagios-api.

zorkian commented 11 years ago

Actually, someone implemented it -- it just is undocumented. You can use the method "acknowledge_problem" and "remove_acknowledgement" to manipulate these.

Check out the code here: https://github.com/xb95/nagios-api/blob/master/nagios-api#L367

I will use this ticket as a push to add the documentation for this method though. Thanks!

(PS, I love Etsy. :))

zorkian commented 11 years ago

https://github.com/xb95/nagios-api/commit/2ce26e3681ccfc5a817119f3f310af35edfd6bb6

Documented the methods. Closing this ticket now.

lozzd commented 11 years ago

Ah awesome! Even better!

Thanks so much! We love the API! ;)