[xymon] temperature.sh reports Unknown OS

Josephine Tsikoudaki jotsik at vivodi.gr
Mon Feb 14 13:22:51 CET 2011


Thanks Martin.

Ok now the path is ok, i run the program for testing and i get the
results, i see the output in the log files of the script but the results
won't show to the display. Strange cause this is not the only external
script that runs in the server...
Can anyone help me debugg this?

thanks in advance

josephine


On Mon, 2011-02-14 at 12:19 +0100, Martin Flemming wrote:

> Hi !
> 
> I think, that's are two different errors
> 
> 
> a) temperature.sh and "Unknown OS"
> 
> The BBOSTYPE-Variable is not defined or won't be exported ...
> .. don't why/how to fix it  ( i've got also some scripts from deadcat with the same behaviour :-(  )  ...
> 
> Maybe someone on the list can give us an hint :-)
> 
> 
> /usr/lib/hobbit/client # bin/bbcmd sh -x ext/temperature.sh
> 2011-02-14 12:06:44 Using default environment file 
> /usr/lib/hobbit/client/etc/hobbitclient.cfg
> + BBPROG=temperature.sh
> + export BBPROG
> + TEST=temperature
> + test /usr/lib/hobbit/client = ''
> + '[' x '!=' x -a x '!=' x ']'
> + test '!' /usr/lib/hobbit/client/tmp
> + '[' '' = '' ']'
> + UNAME=uname
> + DATA=
> ++ date
> + DATE='Mon Feb 14 12:06:44 CET 2011'
> + '[' '' = osf ']'
> + '[' '' = omreport -o '' = lm_sensors ']'
> + '[' '' = prtpicl ']'
> + case "$BBOSTYPE" in
> + echo 'Unknown OS linux
> '
> Unknown OS linux
> 
> + exit 1
> 
> 
> 
> b ) omreport command not found
> 
> omreport  is not in your PATH-Enviroment
> 
> ~ # which omreport
> /usr/bin/omreport
> 
> ~ # ll /usr/bin/omreport
> lrwxrwxrwx 1 root root 38 Jul 18  2010 /usr/bin/omreport -> 
> /opt/dell/srvadmin/oma/bin/omreport.sh
> 
> 
> Maybe the link is missing ...
> 
> 
> cheers,
>  	martin
> 
> 
> 
> On Mon, 14 Feb 2011, Josephine Tsikoudaki wrote:
> 
> > Hello all
> > 
> > I've been trying for a while to find a solution in the archives but i wasn't able, so here's the problem:
> > 
> > I have 2 Dell PE 1850 servers running CentOS with hobbit client installed. I want to monitor the clients using
> > omreport sending the results to Hobbit server.
> > I am trying as a start to check the temperature using the temperature.sh script from deadcat. When i try to run it, it
> > returns Unknown OS.
> > Then i tried to run openmanage.sh and it reports omreport command not found. I am using Administrators Version 6.4
> > 
> > Any ideas?
> > 
> > Thanks!
> >
> 
> To unsubscribe from the xymon list, send an e-mail to
> xymon-unsubscribe at xymon.com
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110214/ea6e241b/attachment.html>


More information about the Xymon mailing list