<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.3">
</HEAD>
<BODY>
Thanks Martin.<BR>
<BR>
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...<BR>
Can anyone help me debugg this?<BR>
<BR>
thanks in advance<BR>
<BR>
josephine<BR>
<BR>
<BR>
On Mon, 2011-02-14 at 12:19 +0100, Martin Flemming wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi !</FONT>

<FONT COLOR="#000000">I think, that's are two different errors</FONT>


<FONT COLOR="#000000">a) temperature.sh and "Unknown OS"</FONT>

<FONT COLOR="#000000">The BBOSTYPE-Variable is not defined or won't be exported ...</FONT>
<FONT COLOR="#000000">.. don't why/how to fix it  ( i've got also some scripts from deadcat with the same behaviour :-(  )  ...</FONT>

<FONT COLOR="#000000">Maybe someone on the list can give us an hint :-)</FONT>


<FONT COLOR="#000000">/usr/lib/hobbit/client # bin/bbcmd sh -x ext/temperature.sh</FONT>
<FONT COLOR="#000000">2011-02-14 12:06:44 Using default environment file </FONT>
<FONT COLOR="#000000">/usr/lib/hobbit/client/etc/hobbitclient.cfg</FONT>
<FONT COLOR="#000000">+ BBPROG=temperature.sh</FONT>
<FONT COLOR="#000000">+ export BBPROG</FONT>
<FONT COLOR="#000000">+ TEST=temperature</FONT>
<FONT COLOR="#000000">+ test /usr/lib/hobbit/client = ''</FONT>
<FONT COLOR="#000000">+ '[' x '!=' x -a x '!=' x ']'</FONT>
<FONT COLOR="#000000">+ test '!' /usr/lib/hobbit/client/tmp</FONT>
<FONT COLOR="#000000">+ '[' '' = '' ']'</FONT>
<FONT COLOR="#000000">+ UNAME=uname</FONT>
<FONT COLOR="#000000">+ DATA=</FONT>
<FONT COLOR="#000000">++ date</FONT>
<FONT COLOR="#000000">+ DATE='Mon Feb 14 12:06:44 CET 2011'</FONT>
<FONT COLOR="#000000">+ '[' '' = osf ']'</FONT>
<FONT COLOR="#000000">+ '[' '' = omreport -o '' = lm_sensors ']'</FONT>
<FONT COLOR="#000000">+ '[' '' = prtpicl ']'</FONT>
<FONT COLOR="#000000">+ case "$BBOSTYPE" in</FONT>
<FONT COLOR="#000000">+ echo 'Unknown OS linux</FONT>
<FONT COLOR="#000000">'</FONT>
<FONT COLOR="#000000">Unknown OS linux</FONT>

<FONT COLOR="#000000">+ exit 1</FONT>



<FONT COLOR="#000000">b ) omreport command not found</FONT>

<FONT COLOR="#000000">omreport  is not in your PATH-Enviroment</FONT>

<FONT COLOR="#000000">~ # which omreport</FONT>
<FONT COLOR="#000000">/usr/bin/omreport</FONT>

<FONT COLOR="#000000">~ # ll /usr/bin/omreport</FONT>
<FONT COLOR="#000000">lrwxrwxrwx 1 root root 38 Jul 18  2010 /usr/bin/omreport -> </FONT>
<FONT COLOR="#000000">/opt/dell/srvadmin/oma/bin/omreport.sh</FONT>


<FONT COLOR="#000000">Maybe the link is missing ...</FONT>


<FONT COLOR="#000000">cheers,</FONT>
<FONT COLOR="#000000">  martin</FONT>



<FONT COLOR="#000000">On Mon, 14 Feb 2011, Josephine Tsikoudaki wrote:</FONT>

<FONT COLOR="#000000">> Hello all</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> I've been trying for a while to find a solution in the archives but i wasn't able, so here's the problem:</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> I have 2 Dell PE 1850 servers running CentOS with hobbit client installed. I want to monitor the clients using</FONT>
<FONT COLOR="#000000">> omreport sending the results to Hobbit server.</FONT>
<FONT COLOR="#000000">> I am trying as a start to check the temperature using the temperature.sh script from deadcat. When i try to run it, it</FONT>
<FONT COLOR="#000000">> returns Unknown OS.</FONT>
<FONT COLOR="#000000">> Then i tried to run openmanage.sh and it reports omreport command not found. I am using Administrators Version 6.4</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Any ideas?</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Thanks!</FONT>
<FONT COLOR="#000000">></FONT>

<FONT COLOR="#000000">To unsubscribe from the xymon list, send an e-mail to</FONT>
<FONT COLOR="#000000"><A HREF="mailto:xymon-unsubscribe@xymon.com">xymon-unsubscribe@xymon.com</A></FONT>


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>