Hey guys,
We just upgraded our Nagios dev box to 5.5.5 and now all of our scripts which use the API are now broken. Thankfully we haven't upgraded our production box yet.
Did the API change? We're still using v1 API, so there shouldn't be any breaking changes, right?
API keys changed?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: API keys changed?
HI @Mr.Woodward,
In the minor release 5.5.0, there were a large number of updates including changes to the API. The help documentation has also been updated to reflect those changes, and more information is available on the changelog.
Let me know if I can help answer any specific questions as it relates to the API changes.
In the minor release 5.5.0, there were a large number of updates including changes to the API. The help documentation has also been updated to reflect those changes, and more information is available on the changelog.
Let me know if I can help answer any specific questions as it relates to the API changes.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
MrWoodward
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
Re: API keys changed?
Any reason why the API version wasn't updated when breaking changes to the API were made? This is pretty standard operating procedure for something like this, right?
This is a bit frustrating for us because we have to refactor our code base first before we can update to 5.5.x
To make our life easier, is there a full list of all the things that were changed to the API between 5.4.x and 5.5.x?
This is a bit frustrating for us because we have to refactor our code base first before we can update to 5.5.x
To make our life easier, is there a full list of all the things that were changed to the API between 5.4.x and 5.5.x?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: API keys changed?
@MrWoodward,
We migrated from a third party JSON libary to using the standard PHP library, there is a full list of the changes on our website, please review the the API section at:
https://www.nagios.com/nagios-xi-5-5/#all-changes
The impacting change is that objects API calls will no longer return with <object>list root. JSON is now valid and using the json_encode() function built into PHP instead of a 3rd party library, allowing for better PHP version compatibility in PHP 7+.
Sorry about the frustration, we do our best to ensure maintenance release do not have breaking changes, and provide 3 licenses with Nagios XI with every purchase: one for production, one for testing, and one for high availability to aid upgrading major and minor releases.
We migrated from a third party JSON libary to using the standard PHP library, there is a full list of the changes on our website, please review the the API section at:
https://www.nagios.com/nagios-xi-5-5/#all-changes
The impacting change is that objects API calls will no longer return with <object>list root. JSON is now valid and using the json_encode() function built into PHP instead of a 3rd party library, allowing for better PHP version compatibility in PHP 7+.
Sorry about the frustration, we do our best to ensure maintenance release do not have breaking changes, and provide 3 licenses with Nagios XI with every purchase: one for production, one for testing, and one for high availability to aid upgrading major and minor releases.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!