30 Jul 2021 04:51 PM
Hello Folks,
How can we rename the custom device created by IBM MQ extension?
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
Solved! Go to Solution.
03 Aug 2021 05:09 AM
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
03 Aug 2021 01:50 PM
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
10 Aug 2021 03:14 PM - edited 10 Aug 2021 07:56 PM
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 -
Output -
Regards,
AK
10 Aug 2021 08:57 PM
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