Alert on Running Processes

There’s a graph for Running Processes under Graphs->System. Is there a way to alert on this value? I had a script error that hit the ulimit and I would like to alert on that if it happens again.