17 Oct 2023 10:44 AM - edited 25 Oct 2023 09:08 AM
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
Solved! Go to Solution.
17 Oct 2023 11:20 AM
Exactly right. You can create a Custom Device to accurately represent this element throughout the path.
Radek
30 Sep 2024 01:30 PM
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
}'