Parse the field host

Hello can you guys tell me how can i parse this ...

image

I want to change the field host instead of saying icmp-icmp, i want a description or a name of the device.

What options are available to do this ?

Hi @Luis_Pereira1 - I'd recommend you give names to the monitors.

In the 6.7 UI, a series of named monitors with names like ["anothericmp", "icmptest"] will display with a pattern like icmp-{CUSTOM_NAME}-ip@{IP} like shown below:

You can configure a name simply by adding name: 'your-custom-name' to the monitor definitions.

In future versions of the UI we will likely be displaying simply the name in this field.

HI Justin,

Thank you for the reply, can you show me an example in yml?

Sure thing Luis.

The YAML for the monitors I showed above looks like:

- type: icmp
  schedule: '*/5 * * * * * *'
  hosts: ['8.8.8.8']
  name: 'icmptest'
- type: icmp
  schedule: '*/5 * * * * * *'
  hosts: ['0.0.0.0']
  name: 'anothericmp'

I apologize as I'm now realizing the way I showed my names before was confusing. Please let me know if I can help further.

Thank you for your help, its working now :grinning:

1 Like

This topic was automatically closed 24 days after the last reply. New replies are no longer allowed.