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...
Possible to add host to hostgroup(s) at time of POST?
-
MrWoodward
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
-
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?
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?
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.
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?
https://assets.nagios.com/downloads/nag ... tions.html
Although I should ask, what version of XI are you running?
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?
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!
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!
Re: Possible to add host to hostgroup(s) at time of POST?
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?
I think this is good for now. Thanks.