We are working to create integration with our alerting system and need to get the machine name out of the alert so it can properly route the alert. We have not seen anything standard that just shows the machine name for the source yet. They all include other data either before a / or after a \ or even after a ; Has anyone found an easy solution for this?
Not sure how you are interfacing with the ticketing system now, I assume you use a command channel?
I think you will have to use the MonitoringObjectPath of the alert and strip it with powershell (with something like split).
We are doing this using a script to connect via API to our ticketing system. From the alert details we use ‘Netbioscomputername’ and if that is null then it uses ‘MonitoringObjectDisplayName’ so we try both source and path.
For some objects such as clusters we have had to add them into our ticketing system as “Servers” so that it can pull back details from it but apart from that it works for almost everything and we’re putting in workarounds where it doesn’t work.