Skip to content

Commit d70d951

Browse files
authored
[SNMP] Add device_hostname tag (#17433)
* Update tests with new device_id and device_ip tags * Add device_hostname tag * Format * Add changelog
1 parent f8203ea commit d70d951

File tree

149 files changed

+203
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+203
-4
lines changed

snmp/changelog.d/17433.added

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[SNMP] Add device_hostname tag

snmp/datadog_checks/snmp/data/default_profiles/_base.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ metric_tags:
44
- OID: 1.3.6.1.2.1.1.5.0
55
symbol: sysName
66
tag: snmp_host
7+
- OID: 1.3.6.1.2.1.1.5.0
8+
symbol: sysName
9+
tag: device_hostname
710

811
metadata:
912
device:

snmp/tests/test_e2e_core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def test_e2e_memory_cpu_f5_big_ip(dd_agent_check):
253253
'device_namespace:default',
254254
'device_vendor:f5',
255255
'snmp_host:f5-big-ip-adc-good-byol-1-vm.c.datadog-integrations-lab.internal',
256+
'device_hostname:f5-big-ip-adc-good-byol-1-vm.c.datadog-integrations-lab.internal',
256257
'snmp_profile:f5-big-ip',
257258
]
258259
device_ip = instance['ip_address']
@@ -417,6 +418,7 @@ def test_e2e_meraki_cloud_controller(dd_agent_check):
417418
common_tags = [
418419
'snmp_profile:meraki-cloud-controller',
419420
'snmp_host:dashboard.meraki.com',
421+
'device_hostname:dashboard.meraki.com',
420422
'device_vendor:meraki',
421423
'device_namespace:default',
422424
'snmp_device:' + ip_address,
@@ -515,6 +517,7 @@ def test_e2e_core_detect_metrics_using_apc_ups_metrics(dd_agent_check):
515517
'ups_name:testIdentName',
516518
# metric_tags from _base.yaml
517519
'snmp_host:APC_UPS_NAME',
520+
'device_hostname:APC_UPS_NAME',
518521
]
519522
device_ip = instance['ip_address']
520523

@@ -620,6 +623,7 @@ def test_e2e_cisco_nexus(dd_agent_check):
620623
"device_ip:{}".format(device_ip),
621624
"device_id:default:{}".format(device_ip),
622625
'snmp_host:Nexus-eu1.companyname.managed',
626+
'device_hostname:Nexus-eu1.companyname.managed',
623627
]
624628

625629
common.assert_common_metrics(aggregator, common_tags, is_e2e=True, loader='core')
@@ -828,6 +832,7 @@ def test_e2e_cisco_legacy_wlc(dd_agent_check):
828832
'snmp_profile:cisco-legacy-wlc',
829833
'device_vendor:cisco',
830834
'snmp_host:DDOGWLC',
835+
'device_hostname:DDOGWLC',
831836
'snmp_device:' + ip_address,
832837
"device_ip:" + ip_address,
833838
"device_id:default:" + ip_address,

snmp/tests/test_e2e_core_metadata.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def test_e2e_core_metadata_f5(dd_agent_check):
7979
u'status': 1,
8080
u'sys_object_id': u'1.3.6.1.4.1.3375.2.1.3.4.43',
8181
u'tags': [
82+
u'device_hostname:f5-big-ip-adc-good-byol-1-vm.c.datadog-integrations-lab.internal',
8283
u'device_id:' + device_id,
8384
u'device_ip:' + device_ip,
8485
u'device_namespace:default',
@@ -213,6 +214,7 @@ def test_e2e_core_metadata_cisco_3850(dd_agent_check):
213214
u'status': 1,
214215
u'sys_object_id': u'1.3.6.1.4.1.9.1.1745',
215216
u'tags': [
217+
u'device_hostname:Cat-3850-4th-Floor.companyname.local',
216218
u'device_id:' + device_id,
217219
u'device_ip:' + device_ip,
218220
u'device_namespace:default',
@@ -279,6 +281,7 @@ def test_e2e_core_metadata_cisco_catalyst(dd_agent_check):
279281
u'device_vendor:cisco',
280282
u'snmp_device:' + device_ip,
281283
u'snmp_host:catalyst-6000.example',
284+
u'device_hostname:catalyst-6000.example',
282285
u'snmp_profile:cisco-catalyst',
283286
],
284287
u'vendor': u'cisco',
@@ -326,6 +329,7 @@ def test_e2e_core_metadata_hp_ilo4(dd_agent_check):
326329
u'device_vendor:hp',
327330
u'snmp_device:' + device_ip,
328331
u'snmp_host:hp-ilo4.example',
332+
u'device_hostname:hp-ilo4.example',
329333
u'snmp_profile:hp-ilo4',
330334
],
331335
u'vendor': u'hp',
@@ -373,6 +377,7 @@ def test_e2e_core_metadata_hpe_proliant(dd_agent_check):
373377
u'device_vendor:hp',
374378
u'snmp_device:' + device_ip,
375379
u'snmp_host:hpe-proliant.example',
380+
u'device_hostname:hpe-proliant.example',
376381
u'snmp_profile:hpe-proliant',
377382
],
378383
u'vendor': u'hp',
@@ -618,6 +623,7 @@ def test_e2e_core_metadata_aruba_switch(dd_agent_check):
618623
'device_vendor:aruba',
619624
'snmp_device:' + device_ip,
620625
'snmp_host:aruba-switch.device.name',
626+
'device_hostname:aruba-switch.device.name',
621627
'snmp_profile:aruba-switch',
622628
],
623629
'vendor': 'aruba',
@@ -664,6 +670,7 @@ def test_e2e_core_metadata_aruba_access_point(dd_agent_check):
664670
'device_vendor:aruba',
665671
'snmp_device:' + device_ip,
666672
'snmp_host:aruba-335-name',
673+
'device_hostname:aruba-335-name',
667674
'snmp_profile:aruba-access-point',
668675
],
669676
'vendor': 'aruba',
@@ -712,6 +719,7 @@ def test_e2e_core_metadata_arista(dd_agent_check):
712719
'device_vendor:arista',
713720
'snmp_device:' + device_ip,
714721
'snmp_host:DCS-7504-name',
722+
'device_hostname:DCS-7504-name',
715723
'snmp_profile:arista',
716724
],
717725
'vendor': 'arista',
@@ -805,6 +813,7 @@ def test_e2e_core_metadata_netapp(dd_agent_check):
805813
'device_vendor:netapp',
806814
'snmp_device:' + device_ip,
807815
'snmp_host:example-datacenter.company',
816+
'device_hostname:example-datacenter.company',
808817
'snmp_profile:netapp',
809818
],
810819
'vendor': 'netapp',
@@ -853,6 +862,7 @@ def test_e2e_core_metadata_checkpoint(dd_agent_check):
853862
'device_vendor:checkpoint',
854863
'snmp_device:' + device_ip,
855864
'snmp_host:checkpoint.device.name',
865+
'device_hostname:checkpoint.device.name',
856866
'snmp_profile:checkpoint',
857867
],
858868
'vendor': 'checkpoint',
@@ -902,6 +912,7 @@ def test_e2e_core_metadata_checkpoint_firewall(dd_agent_check):
902912
'device_vendor:checkpoint',
903913
'snmp_device:' + device_ip,
904914
'snmp_host:checkpoint.device.name',
915+
'device_hostname:checkpoint.device.name',
905916
'snmp_profile:checkpoint-firewall',
906917
],
907918
'vendor': 'checkpoint',
@@ -949,6 +960,7 @@ def test_e2e_core_metadata_fortinet_fortigate(dd_agent_check):
949960
'device_vendor:fortinet',
950961
'snmp_device:' + device_ip,
951962
'snmp_host:fortinet-fortigate.device.name',
963+
'device_hostname:fortinet-fortigate.device.name',
952964
'snmp_profile:fortinet-fortigate',
953965
],
954966
'vendor': 'fortinet',
@@ -1370,6 +1382,7 @@ def test_e2e_core_metadata_cisco_wlc(dd_agent_check):
13701382
u'device_vendor:cisco',
13711383
u'snmp_device:' + device_ip,
13721384
u'snmp_host:DDOGWLC',
1385+
'device_hostname:DDOGWLC',
13731386
u'snmp_profile:cisco-legacy-wlc',
13741387
],
13751388
u'vendor': u'cisco',

snmp/tests/test_e2e_core_profiles/test_profile_3com.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_3com(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:3com',
3030
'snmp_host:3com.device.name',
31+
'device_hostname:3com.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,
@@ -54,6 +55,7 @@ def test_e2e_profile_3com(dd_agent_check):
5455
'device_namespace:default',
5556
'snmp_device:' + ip_address,
5657
'snmp_host:3com.device.name',
58+
'device_hostname:3com.device.name',
5759
'snmp_profile:3com',
5860
],
5961
'vendor': '3com',

snmp/tests/test_e2e_core_profiles/test_profile_3com_huawei.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_3com_huawei(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:3com-huawei',
3030
'snmp_host:3com-huawei.device.name',
31+
'device_hostname:3com-huawei.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,
@@ -84,6 +85,7 @@ def test_e2e_profile_3com_huawei(dd_agent_check):
8485
'device_namespace:default',
8586
'snmp_device:' + ip_address,
8687
'snmp_host:3com-huawei.device.name',
88+
'device_hostname:3com-huawei.device.name',
8789
'snmp_profile:3com-huawei',
8890
],
8991
'vendor': '3com',

snmp/tests/test_e2e_core_profiles/test_profile__checkpoint_firewall_cpu_memory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_e2e_profile__checkpoint_firewall_cpu_memory(dd_agent_check):
2727
common_tags = [
2828
'snmp_profile:checkpoint-firewall-cpu-memory',
2929
'snmp_host:_checkpoint-firewall-cpu-memory.device.name',
30+
'device_hostname:_checkpoint-firewall-cpu-memory.device.name',
3031
'device_namespace:default',
3132
'snmp_device:' + ip_address,
3233
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__cisco_generic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def test_e2e_profile__cisco_generic(dd_agent_check):
3434
common_tags = [
3535
'snmp_profile:cisco-generic',
3636
'snmp_host:_cisco-generic.device.name',
37+
'device_hostname:_cisco-generic.device.name',
3738
'device_namespace:default',
3839
'snmp_device:' + ip_address,
3940
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__cisco_ipsec_flow_monitor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_e2e_profile__cisco_ipsec_flow_monitor(dd_agent_check):
2525
common_tags = [
2626
'snmp_profile:cisco-ipsec-flow-monitor',
2727
'snmp_host:_cisco-ipsec-flow-monitor.device.name',
28+
'device_hostname:_cisco-ipsec-flow-monitor.device.name',
2829
'device_namespace:default',
2930
'snmp_device:' + ip_address,
3031
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__dell_rac.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_e2e_profile__dell_rac(dd_agent_check):
2727
common_tags = [
2828
'snmp_profile:dell-rac',
2929
'snmp_host:_dell-rac.device.name',
30+
'device_hostname:_dell-rac.device.name',
3031
'device_namespace:default',
3132
'snmp_device:' + ip_address,
3233
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__generic_bgp4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_e2e_profile__generic_bgp4(dd_agent_check):
2727
common_tags = [
2828
'snmp_profile:generic-bgp4',
2929
'snmp_host:_generic-bgp4.device.name',
30+
'device_hostname:_generic-bgp4.device.name',
3031
'device_namespace:default',
3132
'snmp_device:' + ip_address,
3233
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__generic_entity_sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_e2e_profile__generic_entity_sensor(dd_agent_check):
2727
common_tags = [
2828
'snmp_profile:generic-entity-sensor',
2929
'snmp_host:_generic-entity-sensor.device.name',
30+
'device_hostname:_generic-entity-sensor.device.name',
3031
'device_namespace:default',
3132
'snmp_device:' + ip_address,
3233
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__generic_rtp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_e2e_profile__generic_rtp(dd_agent_check):
2525
common_tags = [
2626
'snmp_profile:generic-rtp',
2727
'snmp_host:_generic-rtp.device.name',
28+
'device_hostname:_generic-rtp.device.name',
2829
'device_namespace:default',
2930
'snmp_device:' + ip_address,
3031
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__generic_sip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_e2e_profile__generic_sip(dd_agent_check):
2525
common_tags = [
2626
'snmp_profile:generic-sip',
2727
'snmp_host:_generic-sip.device.name',
28+
'device_hostname:_generic-sip.device.name',
2829
'device_namespace:default',
2930
'snmp_device:' + ip_address,
3031
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__generic_ucd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_e2e_profile__generic_ucd(dd_agent_check):
2727
common_tags = [
2828
'snmp_profile:generic-ucd',
2929
'snmp_host:_generic-ucd.device.name',
30+
'device_hostname:_generic-ucd.device.name',
3031
'device_namespace:default',
3132
'snmp_device:' + ip_address,
3233
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__generic_ups.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_e2e_profile__generic_ups(dd_agent_check):
2727
common_tags = [
2828
'snmp_profile:abstract-generic-ups',
2929
'snmp_host:_generic-ups.device.name',
30+
'device_hostname:_generic-ups.device.name',
3031
'device_namespace:default',
3132
'snmp_device:' + ip_address,
3233
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile__hp_compaq_health.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_e2e_profile__hp_compaq_health(dd_agent_check):
2727
common_tags = [
2828
'snmp_profile:hp-compaq-health',
2929
'snmp_host:_hp-compaq-health.device.name',
30+
'device_hostname:_hp-compaq-health.device.name',
3031
'device_namespace:default',
3132
'snmp_device:' + ip_address,
3233
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_a10_thunder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_a10_thunder(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:a10-thunder',
3030
'snmp_host:a10-thunder.device.name',
31+
'device_hostname:a10-thunder.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_alcatel_lucent_ent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_alcatel_lucent_ent(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:alcatel-lucent-ent',
3030
'snmp_host:alcatel-lucent-ent.device.name',
31+
'device_hostname:alcatel-lucent-ent.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_alcatel_lucent_ind.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_alcatel_lucent_ind(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:alcatel-lucent-ind',
3030
'snmp_host:alcatel-lucent-ind.device.name',
31+
'device_hostname:alcatel-lucent-ind.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_alcatel_lucent_omni_access_wlc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_alcatel_lucent_omni_access_wlc(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:alcatel-lucent-omni-access-wlc',
3030
'snmp_host:alcatel-lucent-omni-access-wlc.device.name',
31+
'device_hostname:alcatel-lucent-omni-access-wlc.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_anue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_anue(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:anue',
3030
'snmp_host:anue-packet-broker.device.name',
31+
'device_hostname:anue-packet-broker.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_apc_netbotz.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_e2e_profile_apc_netbotz(dd_agent_check):
2727
common_tags = [
2828
'snmp_profile:apc-netbotz',
2929
'snmp_host:apc-netbotz.device.name',
30+
'device_hostname:apc-netbotz.device.name',
3031
'device_namespace:default',
3132
'snmp_device:' + ip_address,
3233
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_apc_pdu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test_e2e_profile_apc_pdu(dd_agent_check):
2929
common_tags = [
3030
'snmp_profile:apc-pdu',
3131
'snmp_host:apc-pdu.device.name',
32+
'device_hostname:apc-pdu.device.name',
3233
'device_namespace:default',
3334
'snmp_device:' + ip_address,
3435
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_arista_switch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_e2e_profile_arista_switch(dd_agent_check):
3131
common_tags = [
3232
'snmp_profile:arista-switch',
3333
'snmp_host:arista-switch.device.name',
34+
'device_hostname:arista-switch.device.name',
3435
'device_namespace:default',
3536
'snmp_device:' + ip_address,
3637
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_aruba_clearpass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test_e2e_profile_aruba_clearpass(dd_agent_check):
2929
common_tags = [
3030
'snmp_profile:aruba-clearpass',
3131
'snmp_host:aruba-clearpass.device.name',
32+
'device_hostname:aruba-clearpass.device.name',
3233
'device_namespace:default',
3334
'snmp_device:' + ip_address,
3435
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_aruba_cx_switch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test_e2e_profile_aruba_cx_switch(dd_agent_check):
2929
common_tags = [
3030
'snmp_profile:aruba-cx-switch',
3131
'snmp_host:aruba-cx-switch.device.name',
32+
'device_hostname:aruba-cx-switch.device.name',
3233
'device_namespace:default',
3334
'snmp_device:' + ip_address,
3435
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_aruba_mobility_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_aruba_mobility_controller(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:aruba-mobility-controller',
3030
'snmp_host:aruba-mobility-controller.device.name',
31+
'device_hostname:aruba-mobility-controller.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_aruba_switch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def test_e2e_profile_aruba_switch(dd_agent_check):
3030
common_tags = [
3131
'snmp_profile:aruba-switch',
3232
'snmp_host:aruba-switch.device.name',
33+
'device_hostname:aruba-switch.device.name',
3334
'device_namespace:default',
3435
'snmp_device:' + ip_address,
3536
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_aruba_wireless_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_aruba_wireless_controller(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:aruba-wireless-controller',
3030
'snmp_host:aruba-wireless-controller.device.name',
31+
'device_hostname:aruba-wireless-controller.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_audiocodes_mediant_sbc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_e2e_profile_audiocodes_mediant_sbc(dd_agent_check):
2828
common_tags = [
2929
'snmp_profile:audiocodes-mediant-sbc',
3030
'snmp_host:audiocodes-mediant-sbc.device.name',
31+
'device_hostname:audiocodes-mediant-sbc.device.name',
3132
'device_namespace:default',
3233
'snmp_device:' + ip_address,
3334
'device_ip:' + ip_address,

snmp/tests/test_e2e_core_profiles/test_profile_avaya_aura_media_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test_e2e_profile_avaya_aura_media_server(dd_agent_check):
2929
common_tags = [
3030
'snmp_profile:avaya-aura-media-server',
3131
'snmp_host:avaya-aura-media-server.device.name',
32+
'device_hostname:avaya-aura-media-server.device.name',
3233
'device_namespace:default',
3334
'snmp_device:' + ip_address,
3435
'device_ip:' + ip_address,

0 commit comments

Comments
 (0)