api read host configuration
Posted: Thu Sep 19, 2019 8:17 am
Hello,
some days ago i wrote a topic, because i was experiencing some issue trying to retrieve the complete configuration for a service. In particular i noticed that using the 'Config' endpoint i could read the Service Template used by the service, but not the inherited parameters.
Using the 'Object' endpoint,instead, i'm able to recover inherited parameters from the Service Template (even if i cannot retrieve the name of the Service Template). Using both of them is possible to retrieve the full service configuration.
I expected the same behavior reading the host configuration, but it's not so. Almost all my hosts use one or more Host Template. Using the Object endpoint i can retrieve only some parameters defined in the HT... check_command, event_handler are not retrieved.
Is this an issue on my Nagios XI platform or a bug?
some days ago i wrote a topic, because i was experiencing some issue trying to retrieve the complete configuration for a service. In particular i noticed that using the 'Config' endpoint i could read the Service Template used by the service, but not the inherited parameters.
Using the 'Object' endpoint,instead, i'm able to recover inherited parameters from the Service Template (even if i cannot retrieve the name of the Service Template). Using both of them is possible to retrieve the full service configuration.
I expected the same behavior reading the host configuration, but it's not so. Almost all my hosts use one or more Host Template. Using the Object endpoint i can retrieve only some parameters defined in the HT... check_command, event_handler are not retrieved.
Is this an issue on my Nagios XI platform or a bug?