Xymon Mailing List Archive search

temperature.sh reports Unknown OS

4 messages in this thread

list Josephine Tsikoudaki · Mon, 14 Feb 2011 11:43:03 +0200 ·
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!
list Martin Flemming · Mon, 14 Feb 2011 12:19:16 +0100 (CET) ·
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
quoted from Josephine Tsikoudaki


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!
list Josephine Tsikoudaki · Mon, 14 Feb 2011 14:22:51 +0200 ·
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
quoted from Martin Flemming


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!
list Josephine Tsikoudaki · Mon, 14 Feb 2011 15:43:17 +0200 ·
It's ok. Seems i changed the $BB while debugging and forgot to change it
back :(
Sorry for the trouble...

josephine
quoted from Josephine Tsikoudaki

On Mon, 2011-02-14 at 14:22 +0200, Josephine Tsikoudaki wrote:
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!