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

Creating custom device from an unmonitored host

henk_stobbe
DynaMight Leader
DynaMight Leader

Hello,

 

So to put it simple,

Requests originating from services and targeting an (agentless) local ip range are called unmonitored Hosts

From the unmonitored hosts, You can use a specific Ip address (or range), to create a device.

Correct?

To read the more complete story:

https://www.dynatrace.com/news/blog/add-custom-network-devices-with-just-a-few-clicks/

KR Henk

 

 

2 REPLIES 2

radek_jasinski
DynaMight Guru
DynaMight Guru

Exactly right. You can create a Custom Device to accurately represent this element throughout the path.

 

Radek

 

Have a nice day!

xstreur
Frequent Guest

Hello, I tried to create a device and porst an event for this device. The device is created but the ingest of the event states ReportCount 0". The syntax of the script is given here:

#!/bin/bash

# set -x

CiTkn="Token1"

CrtTkn="Token2"

 

# ##############################################################

# Add Custom Device

# ##############################################################

curl -k -X 'POST' \

  "https://10.224.73.9/e/9b3c1c96-fbed-4434-b713-c063b98ba1d7/api/v2/entities/custom?uiBased=true" \

  -H 'accept: application/json; charset=utf-8' \

  -H "Authorization: Api-Token ${CiTkn}" \

  -H 'Content-Type: application/json; charset=utf-8' \

  -d '{

  "configUrl": "",

  "customDeviceId": "v5060mgt1234",

  "displayName": "Router1234",

  "dnsNames": [

    "v5060mgt1234.grit-ot.nl"

  ],

  "group": "myCustomDeviceGroup",

  "ipAddresses": [

    "10.224.73.123"

  ],

  "listenPorts": [

    80

  ],

  "properties": {},

  "type": "Router"

}'

 

# ##############################################################

# Report Event

# ##############################################################

curl -k -X 'POST' \

  "https://10.224.73.9/e/9b3c1c96-fbed-4434-b713-c063b98ba1d7/api/v2/events/ingest" \

  -H 'accept: application/json; charset=utf-8' \

  -H "Authorization: Api-Token ${CrtTkn} "\

  -H 'Content-Type: application/json; charset=utf-8' \

  -d '{

  "entitySelector": "type(SERVICE),entityName.startsWith(v5060mgt1234)",

  "eventType": "ERROR_EVENT",

  "properties": {

    "dt.event.allow_davis_merge": "false",

    "componentName": "Power Supply",

    "eventDescription": "Device temperature above 105 degrees"

  },

  "title": "CustomEvent",

  "timeout": 360

}'

Featured Posts