This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

EUWebMonitorTransactionMetrics monitoringAgent returns null

Hi

Can somebody explain me why the
o2.get("monitoringAgent/name") returns null for a EUWebMonitorTransactionMetrics object?

and yet the webmonitoragent is showing properties in the script console

For an FTR object it seems to be working

def sb = new StringBuilder()
//FTR
def o1=server.TopologyService.getObject('68ef8899-10c2-4a7e-938a-0c6b21712935')
sb.append(o1.get("monitoringAgent"))
sb.append("\n")
sb.append(o1.get("monitoringAgent").type)
sb.append("\n")
sb.append(o1.get("monitoringAgent").name)
sb.append("\n")
sb.append("\n")
//WEBMONITOR
def o2=server.TopologyService.getObject('0c34e675-aad0-4fb2-9075-6160ac94a44b')
sb.append(o2.get("monitoringAgent"))
sb.append("\n")
sb.append(o2.get("monitoringAgent").type)
sb.append("\n")
sb.append(o2.get("monitoringAgent/name"))

return sb

  • script output:

    foglight-5:FTRAgent:d64a9478-2539-4e00-a834-e9ea74cc77d7:28 datasource=foglight-5:foglight-5
    FTR
    FTR_FTR_general@wpextmon006a@wpextmon006a

    foglight-5:F5WebMonitorAgent:99569fe6-d16e-4399-8261-94f7e65b257f:5 datasource=foglight-5:foglight-5
    WebMonitorAgent
    null
  • sb.append(o2.get("monitoringAgent").name)
    Would this help?
  • Having tried your script - it works fine on my environment

     

  • thanks
    That does indeed work:
    foglight-5:F5WebMonitorAgent:99569fe6-d16e-4399-8261-94f7e65b257f:5 datasource=foglight-5:foglight-5
    WebMonitorAgent
    WebMonitorAgent@<servername>

    this also works on the FTR object:
    sb.append(o1.get("monitoringAgent/name"))
    foglight-5:FTRAgent:d64a9478-2539-4e00-a834-e9ea74cc77d7:28 datasource=foglight-5:foglight-5
    FTR
    FTR_FTR_general@<server>

    but than this does not work for me on the webmonitor:
    sb.append(o2.get("monitoringAgent/name"))

    it's not a syntax issue no?