The REST API - Config Reference that's built into Nagios XI doesn't have any documentation on how to POST a Host or Service Template.
I tried using the 'POST config/host' endpoint, but it didn't seem to like that my Host Template didn't have a 'host_name' and failed.
Is there a 'POST config/host_template' (and service_template) endpoint for the NagiosXI REST API?
We're on NagiosXI 5.4.11, btw.
API: How to Post a HostTemplate or a ServiceTemplate
-
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: API: How to Post a HostTemplate or a ServiceTemplate
Template creation is currently not available but we will be looking to add these endpoints in future versions
-
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
Re: API: How to Post a HostTemplate or a ServiceTemplate
Ok, thanks for the fast reply. We'll work around this.
Re: API: How to Post a HostTemplate or a ServiceTemplate
@scottwilkerson, is there a FR already in place for this or better yet a timeline?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: API: How to Post a HostTemplate or a ServiceTemplate
There is a FR in place for this, however I do not have a timeline on when it will get created.krutaw wrote:@scottwilkerson, is there a FR already in place for this or better yet a timeline?
Re: API: How to Post a HostTemplate or a ServiceTemplate
Understood. Thankfully, the DB schema isn't all that complicated on the NagioSQL side of things so this should be a pretty simple thing to work around in the meantime.