Xymon Mailing List Archive search

hobbit 4.1.1 - client ownership question

3 messages in this thread

list Peter Welter · Tue, 16 Aug 2005 21:41:35 +0200 ·
Hello all,

I just installed on a Linux (sles9) testbox using the 'rpm
-rebuild'-option on Hobbit 4.1.1 from a src-distro. I don't know if I
should perform this option as root or as user hobbit?  I tried both
and finally decided to only use the root-made-version. Is there a
better way using the already available config-file in the src-distro
where you can change the ownership of the apache run-user from apache
to wwwrun (sles9)?

Anyway, the ownership of the client-directory tmp (~hobbit/client/tmp)
is default root:root which makes it impossible for the client to write
the needed data. Changing to hobbit:hobbit makes the client run
smoothly.

But what is the way to install the client on several hosts?

Or am I asking the already answered question? If so, sorry,

Peter
list Henrik Størner · Tue, 16 Aug 2005 22:45:06 +0200 ·
Hi Peter,
quoted from Peter Welter

On Tue, Aug 16, 2005 at 09:41:35PM +0200, Peter Welter wrote:
I just installed on a Linux (sles9) testbox using the 'rpm
-rebuild'-option on Hobbit 4.1.1 from a src-distro. I don't know if I
should perform this option as root or as user hobbit?  I tried both
and finally decided to only use the root-made-version. 
It shouldn't matter what userid builds the rpm-package. I cannot
recall if the 4.1.1 source-rpm did some stuff during the build that
requires root-privs.

The general recommendation for building rpm-packages is to do the
build as a normal userid.
quoted from Peter Welter
Is there a better way using the already available config-file in the 
src-distro where you can change the ownership of the apache run-user 
from apache to wwwrun (sles9)?
Yes. Install the source rpm with "rpm -i hobbit*.src.rpm", then edit
the file /usr/src/redhat/SPECS/hobbit.spec. In that file there is a
"%setup" section which does the Hobbit build configuration - you can
change the HTTPDGID setting from "apache" to "wwwrun", or whatever
other group-id is being used.

Then to build the package, run "rpmbuild -ba
/usr/src/redhat/SPECS/hobbit.spec".
quoted from Peter Welter
Anyway, the ownership of the client-directory tmp (~hobbit/client/tmp)
is default root:root which makes it impossible for the client to write
the needed data. Changing to hobbit:hobbit makes the client run
smoothly.
The .rpm (and .deb) package build has been overhauled these past few
days, so it should hopefully be a lot better now.
But what is the way to install the client on several hosts?
A separate client-package without all of the server stuff will
be available from the next version. For now, you can just copy the 
full /usr/lib/hobbit/client/ directory over to the other hosts.


Regards,
Henrik
list Peter Welter · Wed, 17 Aug 2005 04:43:23 +0200 ·
Great Henrik!

Thank you very much! For both a GREAT product Hobbit _and_ one of the
fastest and to the point support I've ever seen!

Thanks,

Peter

2005/8/16, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid>:
quoted from Henrik Størner
Hi Peter,

On Tue, Aug 16, 2005 at 09:41:35PM +0200, Peter Welter wrote:
I just installed on a Linux (sles9) testbox using the 'rpm
-rebuild'-option on Hobbit 4.1.1 from a src-distro. I don't know if I
should perform this option as root or as user hobbit?  I tried both
and finally decided to only use the root-made-version.
It shouldn't matter what userid builds the rpm-package. I cannot
recall if the 4.1.1 source-rpm did some stuff during the build that
requires root-privs.

The general recommendation for building rpm-packages is to do the
build as a normal userid.
Is there a better way using the already available config-file in the
src-distro where you can change the ownership of the apache run-user
from apache to wwwrun (sles9)?
Yes. Install the source rpm with "rpm -i hobbit*.src.rpm", then edit
the file /usr/src/redhat/SPECS/hobbit.spec. In that file there is a
"%setup" section which does the Hobbit build configuration - you can
change the HTTPDGID setting from "apache" to "wwwrun", or whatever
other group-id is being used.

Then to build the package, run "rpmbuild -ba
/usr/src/redhat/SPECS/hobbit.spec".
Anyway, the ownership of the client-directory tmp (~hobbit/client/tmp)
is default root:root which makes it impossible for the client to write
the needed data. Changing to hobbit:hobbit makes the client run
smoothly.
The .rpm (and .deb) package build has been overhauled these past few
days, so it should hopefully be a lot better now.
But what is the way to install the client on several hosts?
A separate client-package without all of the server stuff will
be available from the next version. For now, you can just copy the
full /usr/lib/hobbit/client/ directory over to the other hosts.


Regards,
Henrik