Xymon Mailing List Archive search

Log messages

list Greg Shea
Wed, 15 Aug 2007 09:09:47 -0400
Message-Id: <user-080f9ab365ef@xymon.invalid>

The temp is the temperature.sh (V4.0) script from deadcat.
The emcpp script returns 0, temp script returns 1.
The interesting thing about temp is my BBOSTYPE variable has an
extra carriage return in it.
[hobbit at hershey ext]$ echo "$BBOSTYPE"
linux
It seems version 4.1 of the temperature.sh script (cannot find 4.0)
chokes on this, reporting

sh-3.2$ ./temperature.sh
Unknown OS linux

sh-3.2$ echo $?
1
Exactly, temperature.sh checks the $BBOSTYPE variable for known OS types
case "$BBOSTYPE" in
solaris)
        get_temp_solaris
        ;;
osf)
        get_temp_osf
        ;;
linux|redhat)
        get_temp_omreport
        ;;
*)
        echo "Unknown OS $BBOSTYPE"
        exit 1
esac

It should match on the linux|redhat) line but doesn't

-Grs-