An open API service indexing awesome lists of open source software.

https://github.com/enikeishik/toplog

Simple script to logging top processes that load CPU.
https://github.com/enikeishik/toplog

cpu-monitoring logger logging php-cli top-process-meter utility

Last synced: 8 months ago
JSON representation

Simple script to logging top processes that load CPU.

Awesome Lists containing this project

README

          

# Toplog

[![Software License][ico-license]](LICENSE.txt)

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:

```bash
*/5 * * * * php -f /path_to_script/toplog.php >> /var/log/toplog/toplog.log 2>&1
```

[ico-license]: https://img.shields.io/badge/license-GPL-brightgreen.svg?style=flat-square