Question, is there any kind of pluging that will querry top?


#1

I want to querry top and see how many instanances of httpd are running.


#2

top | grep httpd | wc -l

fine tune it a bit to avoid “grep httpd” as a result and use it as an snmp script :slight_smile:

Luca


#3

forget that top… it’s “ps -ef” :slight_smile:

Luca


#4

If you are speaking of a nagios plugin, just use the check_procs plugin.


#5

ah hah cool, yah check_procs -u www (since apache runs as www) works great!

Thanks for the tip.