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

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

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

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

Luca

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

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

Thanks for the tip.