Entry posted 21 Jan 2007 in afternoon in categories: php, monitoring, hardware, linux
I would like to recommend loadavg for all owners of their own (or even VDS) servers — script for monitoring processor load, memory usage and network throughput. Written in PHP, consists of several parts: logger.php — to collect statistics and store it in log file, running through cron, and index.php — to show beautiful statistics in your browser:
When configuring it on our current VDS (OpenVZ) I have some troubles: our cron can read information about memory usage not directly from /proc/user_beancounters, but only from special separated file — function shell_exec() in PHP disabled on our server for security reasons:
[error] PHP Warning: shell_exec() has been disabled for security reasons in /home/gluek.info/html/loadavg/index.php on line 423