Tiny Core Base > CorePlus

Any way to monitor cpu temp, remaining ram and disk read write check

(1/2) > >>

malikawan:
I want to monitor read write disk, remaining ram and cpu temperature with script and write the output to file. I need just commands or any idea to write a script if any one can help. Thanks in advance

patrikg:
Why just write the info to a text file ??
Just do a sqlite3 database.
For easy parse the values from the database afterwards.

https://www.sqlite.org/cli.html

http://stackoverflow.com/questions/4152321/how-to-automate-an-insert-into-process-in-sqlite?answertab=active#tab-top

Misalf:
Simple disk activity monitor script:
http://forum.tinycorelinux.net/index.php/topic,16256.msg96390.html#msg96390

Misalf:
RAM: Try the  free  command.

--- Code: ---free -m | awk '/Mem:/ {printf "Free: %s MB\n", $4}'

--- End code ---

CPU temperature: Possible with  lm_sensors  which is currently not available in the 7.0 x86 repo.

Misalf:
Free memory including buffers and cache:

--- Code: ---echo "Free: $(( $(( $(cat /proc/meminfo | awk '/^MemFree:/ {print $2}') + $(cat /proc/meminfo | awk '/^Cached:/ {print $2}') + $(cat /proc/meminfo | awk '/^Buffers:/ {print $2}') )) / 1024 )) MB"

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version