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
Luca
forget that top… it’s “ps -ef”
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.