Anyone interested into Fan and Temperature monitoring, plus HDD usage, here is my startup script - works pretty well:
Fist you need i2c-tools:
Than a custom little script that reads the 2 values we are interested in (fan/tempspeed):
I saved it under /usr/bin/hwmon, and added +x (exec) rights
And finally put this in your .bashrc file:
An while we are at it, some nice prompt colors:
Oh, and for fun, a nice /etc/motd (you can cp/paste)
Et voila! Every time you ssh login to the zyxel box, you have all the infos you needed right there.
Fist you need i2c-tools:
# apt-get install i2c-tools
Than a custom little script that reads the 2 values we are interested in (fan/tempspeed):
#!/bin/bash echo "Temperature" $(($(i2cget -y 0x0 0x0a 0x07))) "C" echo "Fanspeed" $[60000/$(($(i2cget -y 0x0 0x0a 0x08)))] "RPM" exit 0
I saved it under /usr/bin/hwmon, and added +x (exec) rights
chmod +x /usr/bin/hwmon
And finally put this in your .bashrc file:
echo "" # for spacing date # because I like to montior systime hwmon # our script! echo "" df -h -x tmpfs -x udev # disk usage, minus def and swap echo ""
An while we are at it, some nice prompt colors:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Oh, and for fun, a nice /etc/motd (you can cp/paste)
+-+-+-+-+-+-+-+-+-+-+-+-+ |D|e|b|i|a|n| |Z|y|x|e|l| +-+-+-+-+-+-+-+-+-+-+-+-+
Et voila! Every time you ssh login to the zyxel box, you have all the infos you needed right there.