tg3-pci-0301
Adapter: PCI adapter
temp1: +73.0°C (high = +100.0°C, crit = +110.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +41.0°C (high = +85.0°C, crit = +105.0°C)
Core 0: +33.0°C (high = +85.0°C, crit = +105.0°C)
Core 1: +40.0°C (high = +85.0°C, crit = +105.0°C)
Core 2: +35.0°C (high = +85.0°C, crit = +105.0°C)
Core 3: +37.0°C (high = +85.0°C, crit = +105.0°C)
acpitz-acpi-0
Adapter: ACPI interface
temp1: +8.3°C (crit = +31.3°C)
tg3-pci-0300
Adapter: PCI adapter
temp1: +73.0°C (high = +100.0°C, crit = +110.0°C)
power_meter-acpi-0
Adapter: ACPI interface
power1: 0.00 W (interval = 300.00 s)
bash -x ./check_temp.sh -w 65 -c 75 -s "Core 1",cpu -s Core\ 2,cpu2
+ VERSION='Version 1.0'
+ AUTHOR='(c) 2011 Jack-Benny Persson ([email protected])'
++ awk '{print $2}'
++ whereis -b -B /bin /sbin /usr /bin/arch /bin/ash /bin/base64 /bin/bash /bin/bbconfig /bin/busybox /bin/cat /bin/chgrp /bin/chmod /bin/chown /bin/conspy /bin/cp /bin/date /bin/dd /bin/df /bin/dmesg /bin/dnsdomainname /bin/dumpkmap /bin/echo /bin/ed /bin/egrep /bin/false /bin/fatattr /bin/fdflush /bin/fgrep /bin/findmnt /bin/fsync /bin/getopt /bin/grep /bin/gunzip /bin/gzip /bin/hostname /bin/ionice /bin/iostat /bin/ipcalc /bin/kbd_mode /bin/kill /bin/link /bin/linux32 /bin/linux64 /bin/ln /bin/login /bin/ls /bin/lsblk /bin/lzop /bin/makemime /bin/mkdir /bin/mknod /bin/mktemp /bin/more /bin/mount /bin/mountpoint /bin/mpstat /bin/mv /bin/netstat /bin/nice /bin/pidof /bin/ping /bin/ping6 /bin/pipe_progress /bin/printenv /bin/ps /bin/pwd /bin/reformime /bin/rev /bin/rm /bin/rmdir /bin/run-parts /bin/sed /bin/setpriv /bin/setserial /bin/sh /bin/sleep /bin/stat /bin/stty /bin/su /bin/sync /bin/tar /bin/touch /bin/true /bin/umount /bin/uname /bin/usleep /bin/watch /bin/wdctl /bin/zcat /sbin/acpid /sbin/adjtimex /sbin/agetty /sbin/apk /sbin/arp /sbin/blkdiscard /sbin/blkid /sbin/blkzone /sbin/blockdev /sbin/chcpu /sbin/ctrlaltdel /sbin/depmod /sbin/fbsplash /sbin/fdisk /sbin/findfs /sbin/fsck /sbin/fsck.cramfs /sbin/fsck.minix /sbin/fsfreeze /sbin/fstrim /sbin/getty /sbin/halt /sbin/hdparm /sbin/hwclock /sbin/ifconfig /sbin/ifdown /sbin/ifenslave /sbin/ifup /sbin/init /sbin/inotifyd /sbin/insmod /sbin/ip /sbin/ipaddr /sbin/iplink /sbin/ipneigh /sbin/iproute /sbin/iprule /sbin/iptunnel /sbin/klogd /sbin/ldconfig /sbin/loadkmap /sbin/logread /sbin/losetup /sbin/lsmod /sbin/mdev /sbin/mkdosfs /sbin/mkfs /sbin/mkfs.bfs /sbin/mkfs.cramfs /sbin/mkfs.minix /sbin/mkfs.vfat /sbin/mkmntdirs /sbin/mkswap /sbin/modinfo /sbin/modprobe /sbin/nameif /sbin/nologin /sbin/pivot_root /sbin/poweroff /sbin/raidautorun /sbin/raw /sbin/reboot /sbin/rmmod /sbin/route /sbin/setconsole /sbin/slattach /sbin/swaplabel /sbin/swapoff /sbin/swapon /sbin/switch_root /sbin/sysctl /sbin/syslogd /sbin/tunctl /sbin/udhcpc /sbin/vconfig /sbin/watchdog /sbin/wipefs /sbin/zramctl /usr/bin /usr/include /usr/lib /usr/libexec /usr/local /usr/sbin /usr/share /usr/src -f sensors
+ SENSORPROG=/usr/bin/sensors
+ '[' -e /utils.sh ']'
+ STATE_OK=0
+ STATE_WARNING=1
+ STATE_CRITICAL=2
+ STATE_UNKNOWN=3
+ thresh_warn=
+ thresh_crit=
+ default_sensor=CPU
+ sensor_declared=false
+ STATE=0
+ [[ ! -x /usr/bin/sensors ]]
+ [[ -n -w ]]
+ case "$1" in
+ [[ -z 65 ]]
+ [[ 65 = +([0-9]) ]]
+ thresh=65
+ thresh_warn=65
+ shift 2
+ [[ -n -c ]]
+ case "$1" in
+ [[ -z 75 ]]
+ [[ 75 = +([0-9]) ]]
+ thresh=75
+ thresh_crit=75
+ shift 2
+ [[ -n -s ]]
+ case "$1" in
+ [[ -z Core 1,cpu ]]
+ sensor_declared=true
+ process_sensor Core 1,cpu
++ echo Core
+ sensor=Core
++ echo Core
+ sensor_display=Core
+ echo 'sensor is Core'
sensor is Core
+ [[ -z Core ]]
+ [[ -z 65 ]]
+ [[ -z 75 ]]
+ [[ 75 -lt 65 ]]
++ /usr/bin/sensors
++ grep Core
++ head -n1
++ head -n1
++ grep -o '+[0-9]\+\(\.[0-9]\+\)\?[^ \t,()]*'
+ WHOLE_TEMP=+33.0°C
++ echo +33.0°C
++ grep -o '[0-9]\+\(\.[0-9]\+\)\?'
+ TEMPF=33.0
++ echo 33.0
++ cut -d. -f1
+ TEMP=33
+ echo Core test
Core test
+ echo Core test
Core test
+ [[ '' -ge 1 ]]
+ PERFDATA=' Core=33;65;75'
+ [[ 33 != +([0-9]) ]]
+ [[ 33 -gt 75 ]]
+ [[ 33 -gt 65 ]]
+ OUTPUT_TEXT=', Core has temperature: +33.0°C'
+ set_state 0
+ [[ 0 -lt 0 ]]
+ shift 2
+ [[ -n -s ]]
+ case "$1" in
+ [[ -z Core 2,cpu2 ]]
+ sensor_declared=true
+ process_sensor Core 2,cpu2
++ echo Core
+ sensor=Core
++ echo Core
+ sensor_display=Core
+ echo 'sensor is Core'
sensor is Core
+ [[ -z Core ]]
+ [[ -z 65 ]]
+ [[ -z 75 ]]
+ [[ 75 -lt 65 ]]
++ /usr/bin/sensors
++ grep -o '+[0-9]\+\(\.[0-9]\+\)\?[^ \t,()]*'
++ ++ grep Core
head -n1
++ head -n1
+ WHOLE_TEMP=+33.0°C
++ echo +33.0°C
++ grep -o '[0-9]\+\(\.[0-9]\+\)\?'
+ TEMPF=33.0
++ echo 33.0
++ cut -d. -f1
+ TEMP=33
+ echo Core test
Core test
+ echo Core test
Core test
+ [[ '' -ge 1 ]]
+ PERFDATA=' Core=33;65;75 Core=33;65;75'
+ [[ 33 != +([0-9]) ]]
+ [[ 33 -gt 75 ]]
+ [[ 33 -gt 65 ]]
+ OUTPUT_TEXT=', Core has temperature: +33.0°C, Core has temperature: +33.0°C'
+ set_state 0
+ [[ 0 -lt 0 ]]
+ shift 2
+ [[ -n '' ]]
+ '[' true = false ']'
+ case "$STATE" in
+ STATE_TEXT=OK
++ echo , Core has temperature: +33.0°C, Core has temperature: +33.0°C
++ sed -e 's/, //'
+ OUTPUT_TEXT='Core has temperature: +33.0°C, Core has temperature: +33.0°C'
+ echo 'TEMPERATURE OK - Core has temperature: +33.0°C, Core has temperature: +33.0°C | Core=33;65;75 Core=33;65;75'
TEMPERATURE OK - Core has temperature: +33.0°C, Core has temperature: +33.0°C | Core=33;65;75 Core=33;65;75
+ exit 0