Page 1 of 1

Free (Custom) Variables Listed From objects/statehistory API

Posted: Wed Oct 07, 2020 12:06 pm
by eblackstone
ServiceNow NagiosXI MID Server Script Includes objects/statehistory API Free (Custom) Variables

Hello,

In ServiceNow to Configure event collection from NagiosXI we are using the out-of-the-box NagiosXI MID Server Script Includes. The NagiosXI MID Server Script Includes utilizes the objects/statehistory API. We would like to get a list of free (custom) variables which will be added to the JSON output returned when the objects/statehistory API is called. I am not able to locate an argument to be able to make this happen. Is there an argument similar to customvars=1 that is available like for objects/host, objects/service, and objects/contact API's that would list the free variables to the JSON output returned when the objects/statehistory API is called?

Nagios XI 5.7.1
redhat-release-server-7.8-2.el7.x86_64
ServiceNow Orlando

Thanks

Re: Free (Custom) Variables Listed From objects/statehistory

Posted: Thu Oct 08, 2020 11:58 am
by ssax
There is not currently a way to show them in that API endpoint, development would need to add that functionality into the code, I've created a feature request on your behalf with a link back to this thread:

FR: XI - API - objects/statehistory - Add customvars=1 support

Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

Re: Free (Custom) Variables Listed From objects/statehistory

Posted: Mon Oct 19, 2020 9:16 am
by eblackstone
Hi ssax,

Thanks for submitting a feature request for this.

As a follow up does Nagios XI support development of custom API's?

Thanks

Re: Free (Custom) Variables Listed From objects/statehistory

Posted: Tue Oct 20, 2020 10:02 am
by benjaminsmith
Hi,

Your welcome!

We have done custom programming projects in the past, I would recommend reaching out to sales ([email protected]) if you have any questions. Just let me know if you need any assistance connecting.

Regards,
Benjamin