/ Published in: PHP
Tiny script to write a daily logfile with the serverload. Can be run every X minutes using a cron for example.
Result in logfile:
13.40 | 2.45 2.45 2.43
13.45 | 1.62 2.02 2.25
Result in logfile:
13.40 | 2.45 2.45 2.43
13.45 | 1.62 2.02 2.25
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $load = sys_getloadavg();