[hobbit] Log messages
shea_greg at emc.com
shea_greg at emc.com
Wed Aug 15 15:09:47 CEST 2007
> > 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-
More information about the Xymon
mailing list