Possible to add host to hostgroup(s) at time of POST?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MrWoodward
Posts: 66
Joined: Fri Jan 06, 2017 1:58 pm

Possible to add host to hostgroup(s) at time of POST?

Post by MrWoodward »

When POSTing a Host to NagiosXI, is it possible to specify which hostgroups to add the host to? Or does this need to happen later?

I see that it is possible to specify Contacts and ContactGroups...
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Possible to add host to hostgroup(s) at time of POST?

Post by dwhitfield »

Are you having trouble with this? That's certainly the idea. See the quote below.
** All normal host directives are able to be used like normal core config definition files.
MrWoodward
Posts: 66
Joined: Fri Jan 06, 2017 1:58 pm

Re: Possible to add host to hostgroup(s) at time of POST?

Post by MrWoodward »

Yeah, I saw that quote, but didn't know what it meant.

Is there a way to see a listing of all the optional parameters I can pass as well?

Thanks.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Possible to add host to hostgroup(s) at time of POST?

Post by dwhitfield »

https://assets.nagios.com/downloads/nag ... tions.html

Although I should ask, what version of XI are you running?
MrWoodward
Posts: 66
Joined: Fri Jan 06, 2017 1:58 pm

Re: Possible to add host to hostgroup(s) at time of POST?

Post by MrWoodward »

We're on 5.4.0 for our Dev box.

Btw, thanks for that link. It's way more useful than the API Help menu on our NagiosXI box.

EDIT: Oh my, yes, this is very helpful... Thanks!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Possible to add host to hostgroup(s) at time of POST?

Post by cdienger »

Did you have any more questions or can this thread be closed?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
MrWoodward
Posts: 66
Joined: Fri Jan 06, 2017 1:58 pm

Re: Possible to add host to hostgroup(s) at time of POST?

Post by MrWoodward »

I think this is good for now. Thanks.
Locked