cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create a mapping for an agent with a space

dravisaanka
Guide

I have the following agent names that need to be connected to

dtwsagent[Apache 2.2-api]@server1

dtwsagent[Apache 2.2-www]@server1

dtwsagent[Apache 2.2-api]@server2

dtwsagent[Apache 2.2-www]@server2

I would like to make agent mapping such a way that server1/api is mapped as Webserver-1-API server2/api is mapped as Webserver-2-API; similarly for www as well.

This is what i tried initially.

I had an agent mapping with

Agent Mapping - regex = dtwsagent\[Apache.*api.*

Agent Host - regex to match the hostname

but it looks like the agents are not identified properly.

i was not able to use Agent name contains, since it doesn't allow spaces in the text box.

Can someone please let me know how I can solve the issue?


2 REPLIES 2

bobby_crumley
Dynatrace Advisor
Dynatrace Advisor

Devi -You could try going for just the secondary portion of the agent name. Ignore the "dtwsagent[Apache 2.2-" and just say "Contains --> api]@server1", "Contains--> www]@server1". If its not many servers, that could work.

Bob C


kyle_kowalski
Dynatrace Pro
Dynatrace Pro

The other thing I would recommend is changing the name in the dtwsagent.ini to match the server you want. I think this would require 2 different binaries installed on the same server (one for api one for www). I say this because I think the core problem is the agent is named dtwsagent and the Apache part is appended later based on the tech type.