Random Project

monitoring httpd problem…

Does not work well with IBMHttpServer.

little change to trap process httpd instead of Apache2:

cpu_load=”$(cpu_load=0; ps -Ao pcpu,args | grep “$path_binary/httpd”

But does not work…

./check_apache2.sh -H …myServer… -b /opt/IBMHttpServer/bin/ -n httpd.pid

OK – Apache serves 35 Requests per second with an average CPU utilization of 0%. Busy workers: 5, idle: 70 | ‘cpu_load’=0 ‘req_psec’=35 ‘bytes_psec’=756659 ‘bytes_preq’=11031.4 ‘workers_busy’=5 ‘workers_idle’=70

The variable cpu_load seems does not change.