Wednesday, November 29, 2006

temp sensors and mrtg

Temperature monitoring using openbsd's sensor framework and mrtg.

  1. Locate sensors on main board:
    $ dmesg | grep lm
    lm0 at isa0 port 0x290/8: LM79
  2. Locate number of CPU temperature sensor:
    $ sysctl hw.sensors | grep temp
    hw.sensors.7=lm0, Temp1, temp, 36.00 degC / 96.80 degF
  3. Write a simple script for passing temperature to mrtg:
    #!/bin/sh
    sysctl hw.sensors.7 | awk '{ print $4 }'
    sysctl hw.sensors.7 | awk '{ print $4 }'
  4. Add the following lines to your mrtg config:
    Target[Temp1]: `/root/temp.sh`
    MaxBytes[Temp1]: 70
    Options[Temp1]: gauge, noinfo, nopercent
    YLegend[Temp1]: Celsius
    LegendI[Temp1]: Temp
    LegendO[Temp1]: Temp
    Title[Temp1]: CPU temp
    ShortLegend[Temp1]: C
    PageTop[Temp1]: <h1>CPU temp</h1>
  5. Have fun!

Sunday, November 26, 2006

asus wl-500g premium

i got one wl-500g router for my home:

  • 1 wan ethernet
  • 4 lan ethernet
  • 2 usb
  • wi-fi
here is uname string:
Linux 1 2.4.20 #46 Thu May 25 22:40:57 MSD 2006 mips unknown
some of cpuinfo:
system type : Broadcom BCM947XX
cpu model : BCM3302 V0.6
BogoMIPS : 262.96
wait instruction : no
microsecond timers : yes
tlb_entries : 32
many nice features of this router can be used in custom firmware.

Saturday, November 25, 2006

going to new blogger

after some months of blogging @ wordpress.com I'm here. ;)
so, best posts from old blog will be merged here soon.

Wednesday, November 22, 2006

palm z22

I was bought new toy: Palm Zire 22. It is a Samsung 200MHz ARM processor based PDA with 32MB RAM (20MB accessible) and color 160×160 touchscreen display. Its weight is only 96g.

Nice PDA for typically tasks of most users.