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?
Solved! Go to Solution.
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 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 -
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.