Monitor multiple Windows processes with the same name

Get metrics:
UserParameter=powershell.get.process.by.path[*],powershell -nologo -command "Get-Process | select Name,Path,Id,$2 | Where-Object { $_.Path -eq \"$1\" } | foreach {$_.$2}"
Available metrics:
Get-Process | Where-Object { $_.ProcessName -eq "thunderbird" } | % {$_.Id}
Get-Process | select * | Where-Object { $_.Id -eq "11712" }
Detect if process is running:
UserParameter=powershell.if.process.running[*],powershell -nologo -command "Get-Process | select Path | Where-Object { $_.Path -eq \"$1\" } | measure | foreach {$_.Count}"

No comments: