This isn't a question, it's a share - wasn't sure how to share something the community. I was looking for a way to monitor a given process in Linux (specifically Ubuntu.) I used to use Xymon which allowed me to set a min/max number of a process and alert based on that; wanted something like that for PRTG. After some research I really couldn't find what I was looking for, so I made it myself.
ProcCount=$(ps -e | grep $1 | wc -l) echo "0:$ProcCount:Found $ProcCount of $1 running"
give it a name and save it in /var/prtg/scripts on the linux system you want to monitor. Then create a SSH Script sensor for that machine and select the script you just made; set the 'parameters' to be the name of the process to check then edit the alerting to set your high/low limits.
The script just does a simple process count and returns the number found.