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.
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.
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.