Quote:
Originally Posted by
BMDan
Er... something like this:
if [ $(pidof httpd | awk '{print $2}') -gt 50 ]; then
echo Too many httpd processes.
fi
Again, if you have any actual input/output, we can help.
, its giving me process id of httpd is above 50 but i asked
i want to calculate threshold for users on apache, if it exceed than 100 so it generate mail, cron will run after 10 minute, and also need to calculate apache instance if it exceed than 50 so it generate email.
Is it possible to calculte apache process swap taking currently and how much it taking in MB, how much apache process taking memory, in MB.
can anyone shed a light on it plsssss................
Thanks,
Bash