Page 2 of 2
Re: REST API - Delete Method not working for HostGroup
Posted: Thu Oct 10, 2019 10:59 am
by scomdco
Sounds good, i've escalated the info to my upper-management, and when we upgrade i'll run the command again and update the thread with the results.
For now, thanks again!
Re: REST API - Delete Method not working for HostGroup
Posted: Thu Oct 10, 2019 11:27 am
by scottwilkerson
scomdco wrote:Sounds good, i've escalated the info to my upper-management, and when we upgrade i'll run the command again and update the thread with the results.
For now, thanks again!
Sounds good!
Re: REST API - Delete Method not working for HostGroup
Posted: Tue Oct 15, 2019 4:30 pm
by scomdco
Management has some questions in regards to the upgrade that i hope you could help me answer, please see below:
Any insight is appreciated!
1. Will upgrading the Nagios version wipe-out/overwrite any performance/metrics data that is currently collected for any of our host/services?
We have our service checks configured to have Retain Status information, Retain non-status information, and Process perf data set to either On or Skip
2. When upgrading Nagios, what data IS overwritten/modified? Is it just core system files, or will configuration or plugin files get touched as well?
3. This is somewhat related to question 2, but have their been known issues of core plugins breaking because of upgrades? Like because of the plugins not being compatible with a new version or something similar to that scenario.
Re: REST API - Delete Method not working for HostGroup
Posted: Wed Oct 16, 2019 7:07 am
by scottwilkerson
scomdco wrote:1. Will upgrading the Nagios version wipe-out/overwrite any performance/metrics data that is currently collected for any of our host/services?
We have our service checks configured to have Retain Status information, Retain non-status information, and Process perf data set to either On or Skip
No it will not
scomdco wrote:2. When upgrading Nagios, what data IS overwritten/modified? Is it just core system files, or will configuration or plugin files get touched as well?
The php files in the nagiosxi directory, Nagios Core is upgraded to a newer version and the config wizards and components are updated.
scomdco wrote:3. This is somewhat related to question 2, but have their been known issues of core plugins breaking because of upgrades? Like because of the plugins not being compatible with a new version or something similar to that scenario.
The base nagios-plugins are not updated in this version however there are a few plugins that are updated that are included for the wizards for some bug fixes.
As far as we know there are no breaking changes.
Re: REST API - Delete Method not working for HostGroup
Posted: Wed Oct 16, 2019 10:25 am
by scomdco
The quick response is much appreciated,
With these questions answered i should be able to perform the upgrade soon, as stated before i'll be updating the thread with the results of running the command again post-update.
Re: REST API - Delete Method not working for HostGroup
Posted: Wed Oct 16, 2019 10:26 am
by scottwilkerson
scomdco wrote:The quick response is much appreciated,
With these questions answered i should be able to perform the upgrade soon, as stated before i'll be updating the thread with the results of running the command again post-update.
sounds good!
Re: REST API - Delete Method not working for HostGroup
Posted: Mon Oct 21, 2019 8:55 am
by scomdco
I'm happy to report that the upgrade was successful and resolved the issue of the hostgroup API call not working.
This thread can be marked as resolved!
Here's the output of the call:
Code: Select all
StatusCode : 200
StatusDescription : OK
Content : {
"success": "Removed host groups from the system. Config imported but not yet applied.",
"hostgroups": [
"ACS_2019.5.385037"
],
"failed": [
]
}
RawContent : HTTP/1.1 200 OK
Access-Control-Allow-Orgin: *
Access-Control-Allow-Methods: *
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Length: 182
Content-Type: application/json
Date: Mon,...
Forms : {}
Headers : {[Access-Control-Allow-Orgin, *], [Access-Control-Allow-Methods, *], [Keep-Alive, timeout=5, max=100], [Connection, Keep-Alive]...}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : System.__ComObject
RawContentLength : 182
Re: REST API - Delete Method not working for HostGroup
Posted: Mon Oct 21, 2019 9:03 am
by scottwilkerson
scomdco wrote:I'm happy to report that the upgrade was successful and resolved the issue of the hostgroup API call not working.
This thread can be marked as resolved!
Here's the output of the call:
Code: Select all
StatusCode : 200
StatusDescription : OK
Content : {
"success": "Removed host groups from the system. Config imported but not yet applied.",
"hostgroups": [
"ACS_2019.5.385037"
],
"failed": [
]
}
RawContent : HTTP/1.1 200 OK
Access-Control-Allow-Orgin: *
Access-Control-Allow-Methods: *
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Length: 182
Content-Type: application/json
Date: Mon,...
Forms : {}
Headers : {[Access-Control-Allow-Orgin, *], [Access-Control-Allow-Methods, *], [Keep-Alive, timeout=5, max=100], [Connection, Keep-Alive]...}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : System.__ComObject
RawContentLength : 182
Great!
Locking thread