Thanks for the tip. As per the other thread i used the powershell script at the bottom of the thread to reset the primary channel to channel 15
$username = "username"
$password = "password"
$prtgServer = "prtg.local"
$response = Invoke-RestMethod "https://$prtgServer/api/table.json?content=sensors&columns=objid,device,sensor&filter_tags=@tag(wmiphysicaldisksensor)&username=$username&password=$password"
foreach($sensor in $response.sensors) {
$result = Invoke-RestMethod "https://$prtgServer/editsettings" -Method "POST" -Headers @{ "Content-Type" = "application/x-www-form-urlencoded" } -Body "primarychannel_=15&id=$($sensor.objid)&username=$username&password=$password"
Write-Host "Modified sensor $($sensor.objid) ($($sensor.device))"
}
One line change in the code allowed to me then do the same for sensor types instead of sensor tags
$response = Invoke-RestMethod "https://$prtgServer/api/table.json?content=sensors&columns=objid,device,sensor&filter_type=netappcdotvolume&username=$username&password=$password"
Add comment