I want to do this without any external dependencies.
What if your apache somehow dies? (Separation of problems?)
() Nagios , , . , / " / ", "cpu load/user activy X per second" .. , .
nagios , .
Apache
apache, apache mod_status nagios.
:
APACHE OK - 0.080 sec. response time, Busy/Idle 18/16, open 766/800, ReqPerSec 12.4, BytesPerReq 3074, BytesPerSec 38034
mod_status , .
Nagios, nagios - , nagios ( script)..
:
Memcache:
OK - consumption: 82.88% (106.1 MBytes/128.0 MBytes), connections: 2, requests/s: 10.99, hitrate: 95.2% (34601210/36346999), getrate: 50.1% (36346999/72542987)
Application feature #1 usage:
OK - last 5m: 22 last 24h: 655 ever: 26121
Application feature #2 usage:
OK - last 5m: 39 last 24h: 11011
Other applications metrics:
OK - users online: 556
: Nagios .
, 3-4 , , , .
Nagios