Xymon Mailing List Archive search

HOBBIT 4.0.3 ignoring bb-dftab

17 messages in this thread

list Winn Beutler · Wed, 18 May 2005 15:05:54 -0600 ·
I upgraded from BB to HOBBIT 4.0.3rc2 and notice that HOBBIT seems to be ignoring the entries in bb-dftab.  How do I troubleshoot the problem?
Thanks for the help
Winn Beutler

SPECIAL NOTICE

All information transmitted hereby is intended only for the use of the
addressee(s) named above and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution
of confidential and privileged information is prohibited. If the reader
of this message is not the intended recipient(s) or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that you must not read this transmission and that disclosure,
copying, printing, distribution or use of any of the information contained
in or attached to this transmission is STRICTLY PROHIBITED.

Anyone who receives confidential and privileged information in error should
notify us immediately by telephone and mail the original message to us at
the above address and destroy all copies.  To the extent any portion of this
communication contains public information, no such restrictions apply to that
information. (gate01)
list Henrik Størner · Thu, 19 May 2005 07:35:49 +0200 ·
quoted from Winn Beutler
On Wed, May 18, 2005 at 03:05:54PM -0600, Winn Beutler wrote:
I upgraded from BB to HOBBIT 4.0.3rc2 and notice that HOBBIT 
seems to be ignoring the entries in bb-dftab.  How do I 
troubleshoot the problem?
bb-dftab is used by the BB client. Hobbit only implements the
server-side of your monitoring.

Check the configuration of your client. bb-dftab needs to be
installed on the clients, not the server.


Henrik
list Winn Beutler · Thu, 19 May 2005 07:42:52 -0600 ·
Sorry, my mistake.  But why is it listed in the hobbitserver.cfg?
I assume bb-cputab file along with bb-msgstab and the others are the same way, even though they are also listed in the file?
Thanks for the help and the great product!
Winn
quoted from Winn Beutler

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Wednesday, May 18, 2005 11:36 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] HOBBIT 4.0.3 ignoring bb-dftab


On Wed, May 18, 2005 at 03:05:54PM -0600, Winn Beutler wrote:
I upgraded from BB to HOBBIT 4.0.3rc2 and notice that HOBBIT
seems to be ignoring the entries in bb-dftab.  How do I
troubleshoot the problem?
bb-dftab is used by the BB client. Hobbit only implements the
server-side of your monitoring.

Check the configuration of your client. bb-dftab needs to be
installed on the clients, not the server.


Henrik


SPECIAL NOTICE

All information transmitted hereby is intended only for the use of the
addressee(s) named above and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution
of confidential and privileged information is prohibited. If the reader
of this message is not the intended recipient(s) or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that you must not read this transmission and that disclosure,
copying, printing, distribution or use of any of the information contained
in or attached to this transmission is STRICTLY PROHIBITED.

Anyone who receives confidential and privileged information in error should
notify us immediately by telephone and mail the original message to us at
the above address and destroy all copies.  To the extent any portion of this
communication contains public information, no such restrictions apply to that
information. (gate01)
list Henrik Størner · Thu, 19 May 2005 20:12:59 +0200 ·
quoted from Winn Beutler
On Thu, May 19, 2005 at 07:42:52AM -0600, Winn Beutler wrote:
bb-dftab is used by the BB client. Hobbit only implements the
server-side of your monitoring.
Sorry, my mistake.  But why is it listed in the hobbitserver.cfg?
Hobbit sets up all of the environment variables that Big Brother used
to setup, to facilitate the use of BB extensions with Hobbit. bb-dftab
just happens to be among those.
quoted from Winn Beutler
I assume bb-cputab file along with bb-msgstab and the others are the 
same way, even though they are also listed in the file?
Correct.


Henrik
list Michael Nemeth · Mon, 23 May 2005 07:10:49 -0400 ·
I hacked my Makes for .1 and .2  and got them to work   but  this  time  I cann't get it!

HP-UX  B.11.00
ERRORS:

ranlib libbbgen.a || echo ""
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/home/nemethm/hobbit-4.0.3/include -I. -I../include  -DSTANDALONE -o loadhosts loadhosts.c ./libbbgen.a
/usr/ccs/bin/ld: Unsatisfied symbols:
   expand_env (first referenced in ./libbbgen.a(misc.o)) (code)
   xgetenv (first referenced in ./libbbgen.a(misc.o)) (code)
   getenv_default (first referenced in ./libbbgen.a(misc.o)) (code)
gmake[1]: *** [loadhosts] Error 1

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          |><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ |               Work Page:http://ortsweb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Henrik Størner · Mon, 23 May 2005 13:29:02 +0200 ·
quoted from Michael Nemeth
On Mon, May 23, 2005 at 07:10:49AM -0400, Michael Nemeth wrote:
I hacked my Makes for .1 and .2  and got them to work   but  this  time  I cann't get it!

HP-UX  B.11.00
ERRORS:

ranlib libbbgen.a || echo ""
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/home/nemethm/hobbit-4.0.3/include -I. -I../include  -DSTANDALONE -o loadhosts loadhosts.c ./libbbgen.a
/usr/ccs/bin/ld: Unsatisfied symbols:
  expand_env (first referenced in ./libbbgen.a(misc.o)) (code)
  xgetenv (first referenced in ./libbbgen.a(misc.o)) (code)
  getenv_default (first referenced in ./libbbgen.a(misc.o)) (code)
Weird, but hey - it's HP-UX :-)

What happens if you change lib/Makefile, so instead of

   all: libbbgen.a loadhosts

it's just

   all: libbbgen.a

(because the "loadhosts" tool is just a debugging tool, really).

If it doesn't help, could you see if the file "lib/environ.o"
exists after running make ? And send me the output from "nm lib/libbbgen.a".


Henrik
list Kevin Pye · Mon, 23 May 2005 21:33:17 +1000 ·
quoted from Michael Nemeth
On 23/05/05, Michael Nemeth <user-609d3fab5b2d@xymon.invalid> wrote:
I hacked my Makes for .1 and .2  and got them to work   but  this  time
I cann't get it!

HP-UX  B.11.00
ERRORS:

ranlib libbbgen.a || echo ""
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I.
-I/home/nemethm/hobbit-4.0.3/include -I. -I../include  -DSTANDALONE -o
loadhosts loadhosts.c ./libbbgen.a
/usr/ccs/bin/ld: Unsatisfied symbols:
   expand_env (first referenced in ./libbbgen.a(misc.o)) (code)
   xgetenv (first referenced in ./libbbgen.a(misc.o)) (code)
   getenv_default (first referenced in ./libbbgen.a(misc.o)) (code)
gmake[1]: *** [loadhosts] Error 1
Check out lib/environ.o. You'll probably find it is zero bytes in
size. You probably missed an error in a previous make run (try make
clean and then running make again). There is a bug in the HP-UX C
compiler which causes it to crash leaving a zero file and the bug is
triggered on environ.c. Running make again doesn't try to recompile
environ.c because of the empty environ.o file.

There is a patch for the compiler, but I don't know the patch number off-hand.

Kevin.
list Lars Ebeling · Mon, 23 May 2005 13:41:22 +0200 ·
I'm running gcc on HP-UX 11.11 without any problems
Regards
Lars
Hobbithobbyist

Http://leopg9.no-ip.org
quoted from Kevin Pye
----- Original Message ----- 
From: "Kevin Pye" <user-37321aa1b0fd@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Monday, May 23, 2005 1:33 PM
Subject: Re: [hobbit] HOBBIT 4.0.3 build issue on hp 11.0


On 23/05/05, Michael Nemeth <user-609d3fab5b2d@xymon.invalid> wrote:
I hacked my Makes for .1 and .2  and got them to work   but  this  time
I cann't get it!

HP-UX  B.11.00
ERRORS:

ranlib libbbgen.a || echo ""
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I.
-I/home/nemethm/hobbit-4.0.3/include -I. -I../include  -DSTANDALONE -o
loadhosts loadhosts.c ./libbbgen.a
/usr/ccs/bin/ld: Unsatisfied symbols:
   expand_env (first referenced in ./libbbgen.a(misc.o)) (code)
   xgetenv (first referenced in ./libbbgen.a(misc.o)) (code)
   getenv_default (first referenced in ./libbbgen.a(misc.o)) (code)
gmake[1]: *** [loadhosts] Error 1
Check out lib/environ.o. You'll probably find it is zero bytes in
size. You probably missed an error in a previous make run (try make
clean and then running make again). There is a bug in the HP-UX C
compiler which causes it to crash leaving a zero file and the bug is
triggered on environ.c. Running make again doesn't try to recompile
environ.c because of the empty environ.o file.

There is a patch for the compiler, but I don't know the patch number 
off-hand.

Kevin.
list Michael Nemeth · Mon, 23 May 2005 07:46:01 -0400 ·
Well  Im trying  that now, but I see another problem :
gmake clean  not working at the top level.  I didn't  notice that before.
quoted from Henrik Størner


Henrik Stoerner wrote:
On Mon, May 23, 2005 at 07:10:49AM -0400, Michael Nemeth wrote:
 
I hacked my Makes for .1 and .2  and got them to work   but  this  time  I cann't get it!

HP-UX  B.11.00
ERRORS:

ranlib libbbgen.a || echo ""
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/home/nemethm/hobbit-4.0.3/include -I. -I../include  -DSTANDALONE -o loadhosts loadhosts.c ./libbbgen.a
/usr/ccs/bin/ld: Unsatisfied symbols:
 expand_env (first referenced in ./libbbgen.a(misc.o)) (code)
 xgetenv (first referenced in ./libbbgen.a(misc.o)) (code)
 getenv_default (first referenced in ./libbbgen.a(misc.o)) (code)
   
Weird, but hey - it's HP-UX :-)

What happens if you change lib/Makefile, so instead of

  all: libbbgen.a loadhosts

it's just

  all: libbbgen.a

(because the "loadhosts" tool is just a debugging tool, really).

If it doesn't help, could you see if the file "lib/environ.o"
exists after running make ? And send me the output from "nm lib/libbbgen.a".


Henrik

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          |><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ |               Work Page:http://ortsweb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Kevin Pye · Mon, 23 May 2005 21:48:15 +1000 ·
The problem is on various versions of HP's compilers running on at
least HP-UX 11.00 and 11.11.

Be careful downloading the patch because there are different patches
depending on the exact version of the compiler, even if running on the
same OS version.

Kevin.
list Lars Ebeling · Mon, 23 May 2005 13:54:07 +0200 ·
It is said that the C-compiler delivered with HP-UX isn't good for anything 
alse but rebuilding the kernel.

I am using the GNU c-compiler gcc
quoted from Kevin Pye

Regards
Lars
Hobbithobbyist

Http://leopg9.no-ip.org
----- Original Message ----- 
From: "Kevin Pye" <user-37321aa1b0fd@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Monday, May 23, 2005 1:48 PM
Subject: Re: [hobbit] HOBBIT 4.0.3 build issue on hp 11.0


The problem is on various versions of HP's compilers running on at
least HP-UX 11.00 and 11.11.

Be careful downloading the patch because there are different patches
depending on the exact version of the compiler, even if running on the
same OS version.

Kevin.
list Henrik Størner · Mon, 23 May 2005 13:54:22 +0200 ·
quoted from Kevin Pye
On Mon, May 23, 2005 at 09:48:15PM +1000, Kevin Pye wrote:
The problem is on various versions of HP's compilers running on at
least HP-UX 11.00 and 11.11.

Be careful downloading the patch because there are different patches
depending on the exact version of the compiler, even if running on the
same OS version.
Is there some HP webpage that has this information ? I'd like to 
point people towards it should it happen to someone else.


Regards,
Henrik
list Michael Nemeth · Mon, 23 May 2005 08:03:37 -0400 ·
Yes this was true! 0!
quoted from Kevin Pye

Kevin Pye wrote:
On 23/05/05, Michael Nemeth <user-609d3fab5b2d@xymon.invalid> wrote:
 
I hacked my Makes for .1 and .2  and got them to work   but  this  time
I cann't get it!

HP-UX  B.11.00
ERRORS:

ranlib libbbgen.a || echo ""
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I.
-I/home/nemethm/hobbit-4.0.3/include -I. -I../include  -DSTANDALONE -o
loadhosts loadhosts.c ./libbbgen.a
/usr/ccs/bin/ld: Unsatisfied symbols:
  expand_env (first referenced in ./libbbgen.a(misc.o)) (code)
  xgetenv (first referenced in ./libbbgen.a(misc.o)) (code)
  getenv_default (first referenced in ./libbbgen.a(misc.o)) (code)
gmake[1]: *** [loadhosts] Error 1
   
Check out lib/environ.o. You'll probably find it is zero bytes in
size. You probably missed an error in a previous make run (try make
clean and then running make again). There is a bug in the HP-UX C
compiler which causes it to crash leaving a zero file and the bug is
triggered on environ.c. Running make again doesn't try to recompile
environ.c because of the empty environ.o file.

There is a patch for the compiler, but I don't know the patch number off-hand.

Kevin.

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          
|><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ 
|               Work Page:http://ortsweb/~mnemeth/ 
|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Kevin Pye · Mon, 23 May 2005 22:05:26 +1000 ·
quoted from Lars Ebeling
It is said that the C-compiler delivered with HP-UX isn't good for anything
alse but rebuilding the kernel.
The compiler with the problems is the ANSI-C compiler which is a
separate product (or at least in my case it is). I wouldn't
necessarily disagree with your comment about it, but it usually works
reasonably well.

Henrik, I found the patch from a search on the HP ITRC web site. I'll
try repeating it tomorrow at work and let you know how I get on.

Kevin.
list Michael Nemeth · Mon, 23 May 2005 08:18:32 -0400 ·
As Lars point out the "free" C compile will not work.
I DO have the commercial version.

Bye Makeing the change and removing loadhosts
AND starting out using gcc and then switching back to cc (it fails on 
rpc stuff with gcc) and switch back again
when it fails  ob larrd .  That what I had do last time!

Testing now!

I think  I broke a makefile file hacking ,  hence the clean issue; ok now!
quoted from Henrik Størner

Henrik Stoerner wrote:
On Mon, May 23, 2005 at 09:48:15PM +1000, Kevin Pye wrote:
 
The problem is on various versions of HP's compilers running on at
least HP-UX 11.00 and 11.11.

Be careful downloading the patch because there are different patches
depending on the exact version of the compiler, even if running on the
same OS version.
   
Is there some HP webpage that has this information ? I'd like to 
point people towards it should it happen to someone else.


Regards,
Henrik

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          
|><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ 
|               Work Page:http://ortsweb/~mnemeth/ 
|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Michael Nemeth · Mon, 23 May 2005 10:44:39 -0400 ·
 I tried on my other hp system results from there:
Must use gcc !  This now  works for  all I don't have to switch back and forth! But then IT IS a newer  gcc!
But I did have to do:
quoted from Michael Nemeth
What happens if you change lib/Makefile, so instead of

  all: libbbgen.a loadhosts

it's just

 all: libbbgen.a
Thanks all
quoted from Michael Nemeth

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          |><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ |               Work Page:http://ortsweb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Kevin Pye · Wed, 8 Jun 2005 16:31:05 +1000 ·
Okay, things have been a tad busy for the last few weeks, but I
finally managed to find time to investigate this a little more.

Compiler version B.11.11.04, fully patched, fails.
Compiler version B.11.11.12, fully patched with patch PHSS_32509, ...
still fails/

If you really want to compile this with the HP compiler, try this
horrible sequence...

1. Attempt to compile normally. The compiler will fail on lib/environ.o
2. Delete lib/environ.o
3. Edit build/Makefile.HP-UX and delete the "-O" from the CFLAGS line.
4. Run make again. You may abort this run as soon as environ.c has compiled.
5. Make a secure copy of lib/environ.o
6. Run "make clean"
7. Put the copy of lib/environ.o back
8. Edit build/Makefile.HP-UX and add the "-O" back into the CFLAGS line
9. Run make.

Alternatively you could compile everything without optimisation.

Whether the resultant binaries will run I haven't had time to check.

Kevin.