Most ALIX system boards come with onboard i2c temperature sensors. Nagios Plugins come with a check_sensors command.
However, the default lm-sensors configuration that ships with most distributions doesn't know about the ALIX sensors and the default Nagios plugin doesn't report performance data.
Once lm-sensors is installed and you run sensors-detect, the sensors command will output something like this:
root@bnalrr01:~# sensors
lm86-i2c-0-4c
Adapter: CS5536 ACB0
temp1: +30.0 C (low = +0.0 C, high = +70.0 C)
(crit = +85.0 C, hyst = +75.0 C)
temp2: +36.9 C (low = +0.0 C, high = +70.0 C)
(crit = +85.0 C, hyst = +75.0 C)
And the check_sensors probe would output something like this:
root@bnalrr01:~# ./check_sensors sensor ok
To make the senors output more verbose, add this to your /etc/sensors3.conf:
chip "lm90-*" "adm1032-*" "lm86-*" "max6657-*" "adt7461-*" label temp1 "M/B Temp" label temp2 "CPU Temp" label tcrit1 "M/B Crit" label tcrit2 "CPU Crit"
Now the sensors command is a bit more verbose on the sensors:
root@bnalrr01:~# sensors
lm86-i2c-0-4c
Adapter: CS5536 ACB0
M/B Temp: +30.0 C (low = +0.0 C, high = +70.0 C)
(crit = +85.0 C, hyst = +75.0 C)
CPU Temp: +36.6 C (low = +0.0 C, high = +70.0 C)
(crit = +85.0 C, hyst = +75.0 C)
To add performance data to the check_sensors probe, replace the content with
#! /bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
PROGNAME=`basename $0`
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
REVISION="1.4.15"
. $PROGPATH/utils.sh
print_usage() {
echo "Usage: $PROGNAME"
}
print_help() {
print_revision $PROGNAME $REVISION
echo ""
print_usage
echo ""
echo "This plugin checks hardware status using the lm_sensors package."
echo ""
support
exit 0
}
case "$1" in
--help)
print_help
exit 0
;;
-h)
print_help
exit 0
;;
--version)
print_revision $PROGNAME $REVISION
exit 0
;;
-V)
print_revision $PROGNAME $REVISION
exit 0
;;
*)
sensordata=`sensors 2>&1`
CPUHEAT=`sensors -A | grep CPU | grep Temp | cut -c 15,16`
MOBHEAT=`sensors -A | grep M/B | grep Temp | cut -c 15,16`
PERFDATA="cpu_temp=$CPUHEAT;mob_heat=$MOBHEAT"
status=$?
if test "$1" = "-v" -o "$1" = "--verbose"; then
echo ${sensordata}
fi
if test ${status} -eq 127; then
echo "SENSORS UNKNOWN - command not found (did you install lmsensors?)"
exit -1
elif test ${status} -ne 0 ; then
echo "WARNING - sensors returned state $status |$PERFDATA"
exit 1
fi
if echo ${sensordata} | egrep ALARM > /dev/null; then
echo "SENSOR CRITICAL - Sensor alarm detected! |$PERFDATA"
exit 2
else
echo "sensor ok |$PERFDATA"
exit 0
fi
;;
esac
Now it prints out performance data and can be graphed with pnp4nagios:
root@bnalrr01:~# ./check_temp_sensors sensor ok |cpu_temp=36;mob_heat=30
Posted Mar 05, 2011
Tagged as: ALIX, i2c, lm-sensors, Nagios
If you don't know, what I want to tell with this post, just forget it. If you do, press Shift-Scrl-Lock.
Posted Feb 13, 2011
Tagged as: IBM, Lenovo, Numlock, Thinkpad
When asked to review the new edition of Marc Deslisle's book Mastering phpMyAdmin 3.3.X for Effective MySQL Management, I said yes, as I already liked one of the previous editions a lot. Again I was surprised, how good the book is.
In addition to some rewritten chapters and parts, completely new aspects of phpMyAdmin are introduced compared to the 3.1 edition. This includes complete new chapters covering the new data and structure syncronization, replication features and change tracking features of phpMyAdmin 3.3.
Even if you already own a previous edition of this book, you should consider buying the new edition, as it has been improved in many different aspects.
Posted Feb 13, 2011
Tagged as: Book, MySQL, PHP, phpMyAdmin, Review
Nov 4 17:32:31 startup archives install Nov 4 17:32:37 install mod-pagespeed-beta0.9.0.0-r128 Nov 4 17:32:37 status half-installed mod-pagespeed-beta 0.9.0.0-r128 Nov 4 17:32:38 configure mod-pagespeed-beta 0.9.0.0-r128 0.9.0.0-r128 Nov 4 17:32:38 status half-configured mod-pagespeed-beta 0.9.0.0-r128 Nov 4 17:32:38 status unpacked mod-pagespeed-beta 0.9.0.0-r128 Nov 4 17:32:38 status unpacked mod-pagespeed-beta 0.9.0.0-r128 Nov 4 17:32:38 status unpacked mod-pagespeed-beta 0.9.0.0-r128 Nov 4 17:32:38 status unpacked mod-pagespeed-beta 0.9.0.0-r128 Nov 4 17:32:38 status unpacked mod-pagespeed-beta 0.9.0.0-r128 Nov 4 17:32:39 status installed mod-pagespeed-beta 0.9.0.0-r128 Nov 4 17:32:54 bnibws02 sudo: sebastian : TTY=pts/1 ; PWD=/home/sebastian ; USER=root ; COMMAND=/etc/init.d/apache2 restart Nov 4 17:35:12 bnibws02 kernel: [ 3839.801359] CPU0: Core temperature above threshold, cpu clock throttled (total events = 1) Nov 4 17:35:15 bnibws02 kernel: [ 3839.801363] Disabling lock debugging due to kernel taint Nov 4 17:35:15 bnibws02 kernel: [ 3839.801724] CPU0: Core temperature/speed normal Nov 4 17:36:08 bnibws02 kernel: [ 3900.000027] Machine check events logged Nov 4 17:40:12 bnibws02 login[5033]: pam_unix(login:session): session opened for user sebastian by LOGIN(uid=0) Nov 4 17:40:58 bnibws02 kernel: [ 4190.528549] possible SYN flooding on port 80. Sending cookies. Nov 4 17:41:41 bnibws02 kernel: [ 4234.950287] CPU0: Core temperature above threshold, cpu clock throttled (total events = 9) Nov 4 17:41:41 bnibws02 kernel: [ 4234.950653] CPU0: Core temperature/speed normal Nov 4 17:41:59 bnibws02 kernel: [ 4252.256557] possible SYN flooding on port 80. Sending cookies. Nov 4 17:43:23 bnibws02 sudo: sebastian : TTY=tty1 ; PWD=/home/sebastian ; USER=root ; COMMAND=/etc/init.d/apache2 stop Nov 4 17:43:36 bnibws02 kernel: [ 4350.000059] Machine check events logged Nov 4 17:46:42 bnibws02 kernel: [ 4534.950368] CPU0: Core temperature above threshold, cpu clock throttled (total events = 55481) Nov 4 17:46:44 bnibws02 kernel: [ 4534.950735] CPU0: Core temperature/speed normal Nov 4 17:47:23 bnibws02 sudo: sebastian : TTY=tty1 ; PWD=/home/sebastian ; USER=root ; COMMAND=/usr/bin/killall -9 apache2 Nov 4 17:47:43 bnibws02 kernel: [ 4596.016227] possible SYN flooding on port 80. Sending cookies. Nov 4 17:48:16 bnibws02 sudo: sebastian : TTY=tty1 ; PWD=/home/sebastian ; USER=root ; COMMAND=/usr/bin/killall -9 apache2 Nov 4 17:49:58 bnibws02 sudo: sebastian : TTY=pts/3 ; PWD=/etc/apache2/mods-enabled ; USER=root ; COMMAND=/bin/mv pagespeed.conf pagespeed.load ../mods-available/ Nov 4 17:50:08 bnibws02 sudo: sebastian : TTY=pts/3 ; PWD=/etc/apache2/mods-enabled ; USER=root ; COMMAND=/bin/rm pagespeed.conf pagespeed.load
Posted Nov 04, 2010
Tagged as: Apache, Google, Software Quality
We are looking for a Software Developer and Quality Assurance Engineer in Cologne. If you are interested, feel free to apply.
Posted Sep 10, 2010
Tagged as: Cologne, Java, PHP, PHPUnit, Selenium, Software Development, Software Quality, Work
<<< Page 1 of 7 >>>