Skip to content

Simple script to logging top processes that load CPU.

License

Notifications You must be signed in to change notification settings

enikeishik/toplog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

 
 
 

Languages