Page 1 of 1

ServiceNow see host description as [object object]

Posted: Tue Apr 06, 2021 12:57 pm
by capgemtools
Hello,

We have a Nagios XI Enterprise version 5.6.14 running in our environment monitoring all types of Network devices over snmp. These XI servers are integrated with ServiceNow. When a device goes down XI generates host DOWN event which then ServiceNow pulls with the help of Nagios XI Connector at ServiceNow end. When an event is pulled at ServiceNow end it show Type = [object object] and Metric name = [object object].

Could you help us to change it to have hostname/host down as a value.

The screenshot of the host and service properties in Nagios and event view in ServiceNow are attached.

Re: ServiceNow see host description as [object object]

Posted: Tue Apr 06, 2021 4:33 pm
by dchurch
If you PM me a system profile I can diagnose further. Get one by going to Admin (top menu) => System Profile (in the left menu), then clicking the blue button.

If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.

Re: ServiceNow see host description as [object object]

Posted: Fri Apr 09, 2021 11:29 am
by dchurch
Profile received. Investigating now.

Re: ServiceNow see host description as [object object]

Posted: Fri Apr 09, 2021 1:24 pm
by dchurch
Something's wrong. I can find nothing called "Total Outage" in your entire system profile. What service is the ServiceNow connector polling?

We don't normally provide support for integrating ServiceNow, as the connector software is provided by ServiceNow - it's out of our hands. Which of ServiceNow's tutorials are you following to set this up? Did you have this working at some point before? Have you tried using a transport script such as the one found on this tutorial here?

Re: ServiceNow see host description as [object object]

Posted: Mon Apr 12, 2021 8:31 am
by capgemtools
Hello Dchurch,

The screenshots are just examples how the event looks like in servicenow for host alert and service alert. The problem here is only with HOST down alert. It says "[ObjectObject]" for event type and metric name value. But in case of service event it shows properly.

Re: ServiceNow see host description as [object object]

Posted: Mon Apr 12, 2021 5:59 pm
by ssax
Grab your API key by logging in as an admin and then clicking the username in the top right corner, then edit the URL below and paste it into you web browser address bar:

Code: Select all

https://YOURXISERVER/nagiosxi/api/v1/objects/statehistory?apikey=YOURAPIKEY&pretty=1
Now look for the information for that service, does everything look proper?

If it looks proper then you should reach out to servicenow as it's likely an issue on their end. Since servicenow reaches into the XI system to grab the data it's likely something on their end if the API is outputting the proper information.