Icinga connector - Icinga2Events_JS - ReferenceError: "status" is not defined


Description

The aim of this KB is to address 2 issues in Icinga2Events_JS MID Server Script Include
https://<instance_name>.service-now.com/nav_to.do?uri=ecc_agent_script_include.do?sys_id=bce0e5550f3003001756489ce1050e61

1. in lines 554 to 574 status is called but it is not defined
2. in 497 to 500, we are not checking timestamp.length, and it crashed if timestamp.length < 10)

This will lead to error observer in MID server logs (debug):
Worker-Interactive:ConnectorProbe-71e5c3ce1b8b781005df411acd4bcb4e *** Script: ReferenceError: "status" is not defined.

Steps to Reproduce

Icinga can't be forced to return the responsebody, which breaks the script but can use icinga API and return a response body containing only a timestamp that doesn't include "." character.

Workaround

This problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this article to be notified when more information becomes available.

 


Related Problem: PRB1536570