Adding customvars support for hoststatus/servicestatus API
Posted: Tue Sep 17, 2019 2:22 pm
Hi,
I was wondering if you are planning on officially adding "customvars=1" support for the hoststatus/servicestatus API endpoints. We are trying to display custom variable information from the API into a NOC-like view inside Nagios Fusion.
It shouldn't be that hard (copying parts of the code from utils-xmlobjects to utils-xmlstatus, changing object_id to host/service_object_id seems to work), but there might be some posible optimizations to avoid doing a query for each host/service.
Thanks, Gonzalo
I was wondering if you are planning on officially adding "customvars=1" support for the hoststatus/servicestatus API endpoints. We are trying to display custom variable information from the API into a NOC-like view inside Nagios Fusion.
It shouldn't be that hard (copying parts of the code from utils-xmlobjects to utils-xmlstatus, changing object_id to host/service_object_id seems to work), but there might be some posible optimizations to avoid doing a query for each host/service.
Thanks, Gonzalo