Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hotsanic and lm-sensors HOWTO/GUIDE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Gentoo Server
Apprentice
Apprentice


Joined: 21 Jul 2003
Posts: 279

PostPosted: Fri Feb 10, 2006 2:48 pm    Post subject: Hotsanic and lm-sensors HOWTO/GUIDE Reply with quote

First I want to show you how it looks when its finished

this guide is made with kernel 2.6.15 and a i875 mainboard (other mainboards does need a slight change)

http://proxyshare.com/server/


0) emerge rrdtool

1) create a hotsanic init.d script
#!/sbin/runscript
# file:/usr/portage.local/net-analyzer/hotsanic/files/0.5.0_pre3/hotsanic



start() {
ebegin "Starting service hotsanic..."
/opt/hotsanic/rrdgraph start
eend $? "Failed to start hotsanic"
}

stop() {
ebegin "Stopping service hotsanic..."
/opt/hotsanic/rrdgraph stop
eend $? "Failed to stop hotsanic"
}

2) dl last snapshot at http://hotsanic.sourceforge.net/snapshot/
0.5.0-pre6 and unpack it in /opt/hotsanic

3) make sensors working

make these kernel modules
<*> Hardware Monitoring support
<M> Winbond W83627HF, W83627THF, W83637HF, W83697HF (use right one according to your mb)
<M> Winbond W83627EHF (use right one according to your mb)
<M> I2C support
<M> I2C device interface
<M> I2C bit-banging interfaces
<M> Intel 82801 (ICH) (use right one according to your mb)

modprobe i2c-dev
modprobe i2c-core

emerge lm-sensors

add these to /etc/conf.d/sensors

# Load modules at startup
LOADMODULES=yes

# Initialize sensors at startup
INITSENSORS=yes

MODULE_0=i2c-isa
MODULE_1=w83627hf

/etc/init.d/lm_sensors start
rc-update add lm_sensors default

check with sensors if its working (sensors are tricky)!


4) setup hotsanic with

cd /opt/hotsanic/

./setup.pl

maybe say yes to all now to see all possible modules

5) edit settings

/opt/hotsanic/settings

your webdir:
WEBDIR="/mnt/db/website/proxyshare.com/server"
what to use:
RUN="apps part ping sensors system traffic "
SHOW="apps part ping sensors system traffic "


/opt/hotsanic/modules/apps/settings

#APP="adsl-connect,adsl-connect"
#APP="agetty,agetty"
#APP="aio/1,aio/1"
#APP="apache,apache"
APP="apache2,apache2"
APP="bash,bash"

just comment out (or add what you want to see)

/opt/hotsanic/modules/traffic/settings
#linespeed in bytes
GRAPH_MIN="-266000"
GRAPH_MAX="266000"
#your device
DEV="ppp0,266000,266000,DSL"

/opt/hotsanic/modules/part/settings

#add your drives here
DRIVE="/dev/md/3,Database"
DRIVE="/dev/hdd1,tmp"
DRIVE="/dev/mapper/crypt,crypt"
DRIVE="/dev/mapper/cback,backup"
DRIVE="/dev/mapper/cdata,data"
DRIVE="/dev/mapper/ctemp,temp"

/opt/hotsanic/modules/ping/settings
#just some sites to test
HOST="www.heise.de,Heise"
HOST="www.t-online.de,T-Online"

/opt/hotsanic/modules/sensors/settings
SENSOR="/sys/bus/i2c/devices/9191-0290/temp1_input,temp1,Case temp,1,0.001,0,°C"
SENSOR="/sys/bus/i2c/devices/9191-0290/temp2_input,temp2,P4 diode,1,0.001,°C"
SENSOR="/sys/bus/i2c/devices/9191-0290/temp3_input,temp3,P4 therm,1,0.001,0,°C"
SENSOR="/sys/bus/i2c/devices/9191-0290/fan2_input,fan,CPU fan,1,1,0,RPM"
SENSOR="/sys/bus/i2c/devices/9191-0290/in0_input,vcore1,VCore1,1,0.001,0,V"
SENSOR="/sys/bus/i2c/devices/9191-0290/in1_input,vcore2,VCore2,1,0.001,0,V"
SENSOR="/sys/bus/i2c/devices/9191-0290/in2_input,vcore3,+3.3V,1,0.001,0,V"
SENSOR="/sys/bus/i2c/devices/9191-0290/in3_input,vcore4,+5V,1,0.00168,0,V"
SENSOR="/sys/bus/i2c/devices/9191-0290/in4_input,vcore5,+12V,1,0.0038,0,V"

use your right device according to your board

6) start hotsanic and add to autostart
/etc/init.d/hotsanic start
rc-update add hotsanic default


Enjoy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum