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

Rename the custom Device detected/created by IBM MQ extension

AK
Advisor

Hello Folks,

 

How can we rename the custom device created by IBM MQ extension?

 

 

AK_1-1627659050787.png

 

The problem is, whenever alert triggers its getting difficult to understand from which MQ server it is triggered.

Basically wanted to get some more details on alert like MQ server name or IP. Is it achievable?

 

Regards,

AK

5 REPLIES 5

diego_morales
Dynatrace Helper
Dynatrace Helper

Hi AK,

Because it is possible to have multi-instanced queue managers across multiple hosts, it would not be feasible to create different custom devices for each host the queue manager runs on.

The only way right now you could rename your custom devices is by using the Monitored Entities API. You would have to update existing custom device names to add those values in the names manually.

Alternatively, the link you get in the alerts to the custom device should show that IP and Port property when expanded.

 

Hope this helped.

Thanks,

Diego

Keep in mind that if you use the API, it would have to be done after every execution of the extension or else it would be overwritten by the extension.

If you modify the extension for your specific use case, that could also work but you would lose support and maintenance.

Thanks,

Diego

Hi @diego_morales,

 

Thanks for the inputs.

But, I would need a help with request body to update the name of custom device because when I use the following request body it get resulted into bad request.

Request Body -

AK_1-1628604801773.png

Output - 

AK_0-1628604768229.png

Regards,

AK

diego_morales
Dynatrace Helper
Dynatrace Helper

Hi AK,

If you want to test that, use a payload like this:
{
"customDeviceId": "IBM MQ - YourCurrentCustomDeviceGroupName - QM_NAME",
"displayName": "The name you want to display",
"group": "IBM MQ - YourCurrentCustomDeviceGroupName"
}

 

You need at least those three. Keep in mind that this will be overwritten the next time the extension polls.

 

Thanks,

Diego

@diego_morales, great.. It worked. thanks for the all help and suggestions.

 

Regards,

AK