This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
objcopy --only-keep-debug $1 $1.dbg | |
strip -g $1 | |
objcopy --add-gnu-debuglink=$1.dbg $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GMETRIC=gmetric | |
GMETRIC_OPTS="" | |
# TODO: check ipmi modules? | |
# send cpu temps if gmond is running | |
service gmond status &> /dev/null | |
if [ $? -eq 0 ]; then | |
$GMETRIC $GMETRIC_OPTS --type="int32" --group="temp" --name="system_temp" --units="Celsius" --value=`ipmitool sdr 2>/dev/null | grep 'Sys.* Temp' | cut -d'|' -f2 | awk '{print $1}'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GMETRIC=gmetric | |
GMETRIC_OPTS="" | |
# check that coretemp is loaded | |
module=`lsmod | awk '{print $1}' | grep coretemp` | |
if [ -z "$module" ]; then | |
exit | |
fi |