Manage Service Templates through REST API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Manage Service Templates through REST API

Post by karthek »

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
"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

Post by npolovenko »

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 May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: Manage Service Templates through REST API

Post by karthek »

I can also put a feature request specifically for Service Templates and Check commands if you'd like?
That would be great! Can i track the feature request?
"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

Post by npolovenko »

@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.
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: Manage Service Templates through REST API

Post by karthek »

Thank you for the info.

You may lock this thread.
"Machines don't make mistakes, we do."
Locked