API on service update
Posted: Mon Aug 26, 2019 9:05 am
Dear all,
i'm using the Nagios XI API on a Nagios XI 5.5.1.
I'm focusing on services creation and update: i've noticed that using the "config/service" endpoint i cannot specify an optional Service Template.
I've workarounded this limitation using the raw import ("config/import").
However now i've a problem: if i want to change the service's Service Template i can't do it: the "config/import" doesn't allow me to update this field, and if i use the raw import Nagios creates a second services (with the service template updated).
What would you suggest?
Why the ""config/service" endpoint doesn't allow to specify such a fundamental object like the service template?
Do you know if, in the future releases, this will be allowed?
Regards
Francesco
i'm using the Nagios XI API on a Nagios XI 5.5.1.
I'm focusing on services creation and update: i've noticed that using the "config/service" endpoint i cannot specify an optional Service Template.
I've workarounded this limitation using the raw import ("config/import").
However now i've a problem: if i want to change the service's Service Template i can't do it: the "config/import" doesn't allow me to update this field, and if i use the raw import Nagios creates a second services (with the service template updated).
What would you suggest?
Why the ""config/service" endpoint doesn't allow to specify such a fundamental object like the service template?
Do you know if, in the future releases, this will be allowed?
Regards
Francesco