Mycheck-Temp-Mem-CPU-Monitoring

The Mycheck tool will allow you to monitor Temperature, Memory usage and CPU workload during a small period of time.
A Mycheck.sh script is planned in the cron tab that generates a /var/log/Mycheck.log data file. A PHP interface reads this data file to display the cool graphs.
I have corrected the bugs and graphs are now auto scaled.

Mycheck.JPG

This wiki is a synthesis and an update of the Forum initiated by wizt (who is the main author of this tool):
http://mybookworld.wikidot.com/forum/t-60559/mycheck-temp-mem-and-more-monitoring-tool-intrested

--------- -
Installation procedure :
--------- -
0. Prerequisites :
Configure a php Web server , following the webServer tutorial (http://mybookworld.wikidot.com/web-server).

1. Download the .tar and extract it

cd /shares/internal/PUBLIC/WWW/Welcome
wget http://mybookworld.wikidot.com/local--files/mycheck-temp-mem-cpu-monitoring/Mycheck.tar
tar -xf Mycheck.tar

2. chmod the file so it can be run.

chmod 755 /shares/internal/PUBLIC/WWW/Welcome/Mycheck/mycheck.sh

3. edit /etc/crontabs/root (with nano or any other editor) and add one of the following line (depending on the sample rate you want) to the end:

# Run MyCheck every 15 min
*/15 * * * * /shares/internal/PUBLIC/WWW/Welcome/Mycheck/mycheck.sh

or
# Run MyCheck every 5 min
*/5 * * * * /shares/internal/PUBLIC/WWW/Welcome/Mycheck/mycheck.sh

4. Restart Cron :

/etc/init.d/crond.sh stop
/etc/init.d/crond.sh start

5 Access the report :
https://<Mybook>/Mycheck/index.php
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License