Is it possible to create/modify Service Templates via REST API.
I know for a fact that, we can create a servicetemplate.cfg and place it in import dir for XI to pick up and insert into DB.
But, are there any recommended ways/commands, we could use to manage following parameters?
1. Service Templates
2. Check_commands
3. Adding service to service templates
4. Assigning Event Handlers to Service Templates
Manage Service Templates through REST API
Manage Service Templates through REST API
"Machines don't make mistakes, we do."
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Manage Service Templates through REST API
Hello, @karthek .
As of right now, configs that can be edited through REST API are limited to Host, Service, Servicegroup, Hostgroup. However, there should be more Rest API features in the upcoming version of XI 5.5. I can also put a feature request specifically for Service Templates and Check commands if you'd like?
As of right now, configs that can be edited through REST API are limited to Host, Service, Servicegroup, Hostgroup. However, there should be more Rest API features in the upcoming version of XI 5.5. I can also put a feature request specifically for Service Templates and Check commands if you'd like?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Manage Service Templates through REST API
That would be great! Can i track the feature request?I can also put a feature request specifically for Service Templates and Check commands if you'd like?
"Machines don't make mistakes, we do."
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Manage Service Templates through REST API
@karthek, Looks like we had a few related API feature requests already. I'll put a note in there. Chances are this feature may be added in the upcoming release of XI, either 5.5 or the next one. Keep an eye on the release announcements and the changelog.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Manage Service Templates through REST API
Thank you for the info.
You may lock this thread.
You may lock this thread.
"Machines don't make mistakes, we do."