I'm quite a fan of one-liners, so here's my UserParameters for monitoring Apache on FreeBSD:
Hope that helps!
Matt :-)
Code:
UserParameter=apache.accesses,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep Accesses | cut -d " " -f 3 UserParameter=apache.totalkb,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep kBytes | cut -d " " -f 3 UserParameter=apache.cpuload,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep CPULoad | cut -d " " -f 2 UserParameter=apache.uptime,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep Uptime | cut -d " " -f 2 UserParameter=apache.reqpersec,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep ReqPerSec | cut -d " " -f 2 UserParameter=apache.bytespersec,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep BytesPerSec | cut -d " " -f 2 UserParameter=apache.bytesperreq,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep BytesPerReq | cut -d " " -f 2 UserParameter=apache.busywokers,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep BusyWorkers | cut -d " " -f 2 UserParameter=apache.idleworkers,fetch -qo - http://localhost/server-status?auto | head -n 9 | grep IdleWorkers | cut -d " " -f 2
Matt :-)

Comment