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
Adding customvars support for hoststatus/servicestatus API
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Adding customvars support for hoststatus/servicestatus A
Hello Gonzalo,
That functionality was added in Nagios XI 5.6. What version are you currently using?
That functionality was added in Nagios XI 5.6. What version are you currently using?
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Adding customvars support for hoststatus/servicestatus A
Hi
I'm using latest XI (5.6.6), and that option is available for objects/host and objects/service endpoints but not for objects/hoststatus nor objects/servicestatus (the ones I need).
Thanks, Gonzalo
I'm using latest XI (5.6.6), and that option is available for objects/host and objects/service endpoints but not for objects/hoststatus nor objects/servicestatus (the ones I need).
Thanks, Gonzalo
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Adding customvars support for hoststatus/servicestatus A
Yes you would need to make multiple API callsgzaloprgm wrote:Hi
I'm using latest XI (5.6.6), and that option is available for objects/host and objects/service endpoints but not for objects/hoststatus nor objects/servicestatus (the ones I need).
Thanks, Gonzalo