I've created a template that executes a PowerShell script via the agent and retrieves the current CPU temperatures as XML data. This works fines from the script perspective but I'm having issues with getting the value back when the location in the XML can be different depending on the make of CPU - I've only seen two different ones so far.
I thought I could achieve this by using two preprocessing entries and then enabling "Custom on fail" with "Discard value". When I test if the first one succeeds I see the correct result and for the second it shows a fail. However when it's the other way around, the first fails but the second doesn't get executed and I have no data.



I thought I could achieve this by using two preprocessing entries and then enabling "Custom on fail" with "Discard value". When I test if the first one succeeds I see the correct result and for the second it shows a fail. However when it's the other way around, the first fails but the second doesn't get executed and I have no data.