Is the Nagios 4.X API read only?
Posted: Wed Apr 29, 2015 5:54 pm
Hello,
I'm learning to use APIs and would like to be able to silence alarms, comment, etc. with out having to do it manually for each host in Nagios. My technical understanding of RESTful services and JSON is still pretty weak. I'm using nagios-api and nagira in a dev environment, they each have their strengths and weaknesses, but productionalizing them will take time that I could apply elsewhere, so what about the built-in Nagios API? JSONquery works fine for a dashboard but I'm not seeing a PUT/POST mechanism. Google has not been particularly helpful, and sorry, but the Nagios documentation isn't great in this regard, so I thought I'd better just ask the smart people of this forum.
How do you guys recommend programattically going about doing this? I would love to hear your thoughts!
Specifically, this is for Nagios 4.0.8 and Apache 2.2.27, both built from source running on Ubuntu 12.04 LTS. Am I reading that 4.1 will have this ability?
Thank you and thank you again!
I'm learning to use APIs and would like to be able to silence alarms, comment, etc. with out having to do it manually for each host in Nagios. My technical understanding of RESTful services and JSON is still pretty weak. I'm using nagios-api and nagira in a dev environment, they each have their strengths and weaknesses, but productionalizing them will take time that I could apply elsewhere, so what about the built-in Nagios API? JSONquery works fine for a dashboard but I'm not seeing a PUT/POST mechanism. Google has not been particularly helpful, and sorry, but the Nagios documentation isn't great in this regard, so I thought I'd better just ask the smart people of this forum.
How do you guys recommend programattically going about doing this? I would love to hear your thoughts!
Specifically, this is for Nagios 4.0.8 and Apache 2.2.27, both built from source running on Ubuntu 12.04 LTS. Am I reading that 4.1 will have this ability?
Thank you and thank you again!