Restmon agent for ThousandEyes

book

Article ID: 212180

calendar_today

Updated On:

Products

DX Operational Intelligence

Issue/Introduction

We are attempting to integrate the ThousandEyes metrics into our DXI platform using the Restmon agent.  We are able to get performance metrics but we are unable to get alarm metrics.

We would like to get help fixing the issue.

It is generating the following error:

2021-01-20 20:04:52,515 [ProfileHandler|thousandeyes~~thousandeyes] ERROR GetJSONVar:196 - Failed to parse script #(function(){var hst = '1640694#bgp&undefined,1640696#bgp&undefined,1640697#bgp&undefined,1640698#bgp&undefined,1640699#bgp&undefined,1640701#bgp&undefined,1851109#bgp&undefined,1851122#bgp&undefined,1851123#bgp&undefined,1851124#bgp&undefined,1851078#bgp&undefined,1851117#bgp&undefined,1851118#bgp&undefined,1851120#bgp&undefined,1850038#dns-server&undefined,1644465#dns-trace&undefined,37785#http-server&https://login.microsoftonline.com';var idhst=hst.split(',');var testMap ={};for(var i = 0;i<idhst.length;i++){ var sd = idhst[i].split('#'); testMap[sd[0]]= sd[1].split('&')[1];} 
var ciId=[];for(var i=0;i<root.alert.length;i++){ if(root.alert[i].type!='Path Trace'){ for(var j=0;j<root.alert[i].agents.length;j++){ var cnt =root.alert[i].agents[j].metricsAtStart.split(':').length - 1 ; var testIdAlert= root.alert[i].testId; for(var k=0;k<cnt;k++){ ciId.push(testMap[testIdAlert]);} } }}return ciId;})();
avax.script.ScriptException: org.graalvm.polyglot.PolyglotException: TypeError: Cannot read property 'length' of undefined
        at org.graalvm.js.scriptengine/com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:381)
        at org.graalvm.js.scriptengine/com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:356)
        at com.ca.ce.restmon.util.GetJSONVar.eval(GetJSONVar.java:411)
        at com.ca.ce.restmon.util.GetJSONVar.evaluateJs(GetJSONVar.java:259)
        at com.ca.ce.restmon.util.GetJSONVar.parseElement(GetJSONVar.java:192)
        at com.ca.ce.restmon.util.GetJSONVar.evaluateExpression(GetJSONVar.java:175)
        at com.ca.ce.restmon.util.GetJSONVar.evaluateNewExpression(GetJSONVar.java:115)
        at com.ca.ce.restmon.util.GetJSONVar.<init>(GetJSONVar.java:94)
        at com.ca.ce.restmon.util.GetJSONVar.<init>(GetJSONVar.java:77)
        at com.ca.ce.restmon.util.ParserUtil.parsePathValue(ParserUtil.java:350)
        at com.ca.ce.restmon.util.ParserUtil.parseMetricPathValues(ParserUtil.java:247)
        at com.ca.ce.restmon.core.ProfileHandler.parseAlarmAttributes(ProfileHandler.java:597)

Environment

Release : 20.2

Component : CA DOI Foundations

Resolution

For now Restmon for ThousandEyes app is not supported by Broadcom, you can customize the schema to integrate it.

Additional Information

Broadcom Support does not support customizations that you make to out-of-the-box configurations. For help with this customization, DX Operational Intelligence Services or your Broadcom Sales Representative at: http://support.broadcom.com/, your regional Broadcom office, or call U.S.: 1-800-225-5224