Hi All, I am trying to integrate service now with Sensu go. Sensu go is installed on ubuntu 14.04. I have added asset and created handler with below configuration
type: Handler
api_version: core/v2
metadata:
created_by: admin
name: IncidentMgmt
namespace: default
spec:
command: sensu-servicenow-handler --host --incidentTable incident --username --password
env_vars: null
filters:
- is_incident
handlers: null
runtime_assets: - sensu/sensu-servicenow-handler
secrets: null
timeout: 0
type: pipe
But I am getting below error in logs
{“check_name”:“check-dnsmasq-process”,“check_namespace”:“default”,“component”:“pipelined”,“entity_name”:“elk01”,“entity_namespace”:“default”,“event_id”:“ed160e3a-41a3-4bf5-9241-79db8477e5c4”
,“handler_name”:“IncidentMgmt”,“handler_namespace”:“default”,“level”:“info”,“msg”:“event pipe handler executed”,“output”:"2021/04/20 11:16:22 Configuration Item sys_id: \n2021/04/20 11:16:22
Looking for existing incident for elk01/check-dnsmasq-process\n2021/04/20 11:16:22 Get ServiceNow incident URL: https:///api/now/table/incident?sysparm_limit=1\u0026sys
parm_fields=sys_id\u0026sysparm_query=descriptionSTARTSWITHSensu+event+elk01%2Fcheck-dnsmasq-process%5EstateNOT+IN6%2C7\npanic: runtime error: index out of range [0] with length 0\n\
Please help