ServiceNow see host description as [object object]

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
capgemtools
Posts: 56
Joined: Wed Aug 12, 2020 3:16 pm

ServiceNow see host description as [object object]

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks,
Supriya
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: ServiceNow see host description as [object object]

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: ServiceNow see host description as [object object]

Post by dchurch »

Profile received. Investigating now.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: ServiceNow see host description as [object object]

Post 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?
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
capgemtools
Posts: 56
Joined: Wed Aug 12, 2020 3:16 pm

Re: ServiceNow see host description as [object object]

Post 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.
Thanks,
Supriya
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: ServiceNow see host description as [object object]

Post 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.
Locked