/toplog

Simple script to logging top processes that load CPU.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Toplog

Software License

Simple script to logging top processes that load CPU.

Usage

  1. Just download toplog.php and put it to home (or any another) folder.
  2. Create folder for log files (default /var/log/toplog).
  3. Copy config for logrotate (toplog.logrotate.conf) into logrotate dir (default /var/etc/logrotate.d).
  4. Create cron job:
*/5 * * * * php -f /path_to_script/toplog.php >> /var/log/toplog/toplog.log 2>&1