So I'm trying to pull a list of Group Names with their corresponding notification triggers using PRTGAPI, Get-Sensor | Get-Trigger gives me ObjectId & OnNotificationAction but I am struggling to find a way to list the object name instead of the OID. This is probably an easy fix but I have to admit I'm a dunce when it comes to scripting and the closest I've gotten is something like this
Get-Sensor | Get-Trigger | select * | Format-Table -AutoSize -Wrap | Export-Csv -Path 'C:\Users\austin\Desktop\prtg.csv'
Any help you can give would be greatly appreciated!
Add comment