REST API - Delete Method not working for HostGroup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scomdco
Posts: 45
Joined: Fri Oct 04, 2019 3:18 pm

Re: REST API - Delete Method not working for HostGroup

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: REST API - Delete Method not working for HostGroup

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scomdco
Posts: 45
Joined: Fri Oct 04, 2019 3:18 pm

Re: REST API - Delete Method not working for HostGroup

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: REST API - Delete Method not working for HostGroup

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scomdco
Posts: 45
Joined: Fri Oct 04, 2019 3:18 pm

Re: REST API - Delete Method not working for HostGroup

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: REST API - Delete Method not working for HostGroup

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scomdco
Posts: 45
Joined: Fri Oct 04, 2019 3:18 pm

Re: REST API - Delete Method not working for HostGroup

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: REST API - Delete Method not working for HostGroup

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked