Xymon Mailing List Archive search

allinone and other patch on Debian?

7 messages in this thread

list Mike Calvey · Fri, 18 Jan 2008 16:31:07 -0000 ·
I want to install the hobbit_perl_client.patch and have to install the
allinone patch first.

 
The instructions for the allinone patch require the Hobbit 4.2.0 source.
I have downloaded and tested the patch installs on the source but my
Hobbit Server is a Debian distro and hobbit is installed using dpkg (and
no source directory starting hobbit-4.2.0).

 
How do I apply the allinone patch (and hence the
hobbit_perl_client.patch) to a Hobbit 4.2.0 Server installed with dpkg?

 
Mike.

 
Please refer to www.anite.com for individual Anite company details. The contents of this e-mail and any attachments are for the intended recipient only. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege. Contracts cannot be concluded with us nor legal service effected by email.  

Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187

Scanned for viruses by BlackSpider MailControl.
list Christoph Berg · Sat, 19 Jan 2008 02:27:32 +0100 ·
Re: Calvey, Mike 2008-01-18 <user-cab578d92354@xymon.invalid>
quoted from Mike Calvey
The instructions for the allinone patch require the Hobbit 4.2.0 source.
I have downloaded and tested the patch installs on the source but my
Hobbit Server is a Debian distro and hobbit is installed using dpkg (and
no source directory starting hobbit-4.2.0).
I'm not really sure I get your question, chances are you are looking
for "apt-get source hobbit".

FYI, there is a package in Debian/experimental using the 4.3 tree
(though somewhat outdated). I don't recommend using it in production,
but it might be worth a look.

http://packages.debian.org/etch-backports/hobbit-client
http://packages.debian.org/experimental/hobbit-client

Christoph
-- 
user-92157dbc91bf@xymon.invalid | http://www.df7cb.de/
list Mike Calvey · Mon, 21 Jan 2008 10:05:53 -0000 ·
This may clarify:

From Sourceforge you can download the platform independent version of
Hobbit (hobbit-4.2.0.tar.gz) or a platform specific version
(Debian31-hobbit_4.2.0-1_i386.deb).

If you use the hobbit-4.2.0.tar.gz --> unzip it and untar it you get all
the files under the hobbit-4.2.0 directory.

Having a look at the first few lines of the "allinone.patch" using an
editor (see below) you will note the reference to the hobbit-4.2.0
directory: 

	diff -urN
/home/henrik/hobbit/release/hobbit-4.2.0/bbdisplay/bbgen.h
./bbdisplay/bbgen.h
	--- /home/henrik/hobbit/release/hobbit-4.2.0/bbdisplay/bbgen.h
2006-	08-09 22:09:54.000000000 +0200
	+++ ./bbdisplay/bbgen.h 2006-10-03 13:52:28.000000000 +0200

So when you run `patch -p0 <allinone.patch` it applies the patch to
files below the hobbit-4.2.0 directory.

Now... the platform specific version Debian31-hobbit_4.2.0-1_i386.deb is
installed by dpkg does not have this hobbit-4.2.0 directory. This can be
seen by "dpkg -L Debian31-hobbit_4.2.0-1_i386.deb" to list the contents
of the package.

Also dpkg keeps the status of the install, the file list etc. Installing
the patch via the source code with the usual configure, make etc will
not update the dpkg data.

So the problem is how does one apply the "allinone.patch" to a Hobbit
installation, installed with dpkg and Debian31-hobbit_4.2.0-1_i386.deb??

Hope this makes the problem clearer...

?
Mike.
quoted from Christoph Berg


-----Original Message-----
From: Christoph Berg [mailto:user-92157dbc91bf@xymon.invalid] 
Sent: 19 January 2008 01:28
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] allinone and other patch on Debian?

Re: Calvey, Mike 2008-01-18
<user-cab578d92354@xymon.invalid>
The instructions for the allinone patch require the Hobbit 4.2.0
source.
I have downloaded and tested the patch installs on the source but my
Hobbit Server is a Debian distro and hobbit is installed using dpkg
(and
no source directory starting hobbit-4.2.0).
I'm not really sure I get your question, chances are you are looking
for "apt-get source hobbit".

FYI, there is a package in Debian/experimental using the 4.3 tree
(though somewhat outdated). I don't recommend using it in production,
but it might be worth a look.

http://packages.debian.org/etch-backports/hobbit-client
http://packages.debian.org/experimental/hobbit-client

Christoph
-- 
user-92157dbc91bf@xymon.invalid | http://www.df7cb.de/


Please refer to www.anite.com for individual Anite company details. The contents of this e-mail and any attachments are for the intended recipient only. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege. Contracts cannot be concluded with us nor legal service effected by email.  

Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187

Scanned for viruses by BlackSpider MailControl.
list Christoph Berg · Mon, 21 Jan 2008 22:09:26 +0100 ·
Re: Calvey, Mike 2008-01-21 <user-d0178b30eb11@xymon.invalid>
quoted from Mike Calvey
So the problem is how does one apply the "allinone.patch" to a Hobbit
installation, installed with dpkg and Debian31-hobbit_4.2.0-1_i386.deb??
Download the *source* package (.dsc), not the binary package (.deb).
quoted from Mike Calvey
I'm not really sure I get your question, chances are you are looking
for "apt-get source hobbit".

http://packages.debian.org/etch-backports/hobbit-client
http://packages.debian.org/experimental/hobbit-client
Christoph
list Mike Calvey · Wed, 23 Jan 2008 11:25:46 -0000 ·
I have searched and searched and cannot find the Debian Hobbit .dsc
source package on Sourceforge
(http://sourceforge.net/project/showfiles.php?group_id=128058) or any
other site. 

Looking at the http://packages.debian.org/etch-backports/hobbit page
there are the following source files

    * [hobbit_4.2.0.dfsg-7~bpo40+1.dsc]
    * [hobbit_4.2.0.dfsg.orig.tar.gz]
    * [hobbit_4.2.0.dfsg-7~bpo40+1.diff.gz]

The [hobbit_4.2.0.dfsg-7~bpo40+1.dsc] file on this page looks like a
dpkg control file but it is not the same as the control file in the
Debian31-hobbit_4.2.0-1_i386.deb package I have if I do a ar -x
Debian31-hobbit_4.2.0-1_i386.deb.

What is the [hobbit_4.2.0.dfsg-7~bpo40+1.diff.gz] file for?

If I download the [hobbit_4.2.0.dfsg.orig.tar.gz] file, unpack and
untar, I can patch it with the allinone.patch and also apply the
hobbit-perl-client.patch (for Oracle monitoring - which is what I am
trying to do) but cannot build the package with dpkg -b hobbit-4.2.0 as
it does not have the dpkg control files etc.

Anyone know where I get a source I can patch without having to rebuild
all the control files etc?
quoted from Christoph Berg


-----Original Message-----
From: Christoph Berg [mailto:user-92157dbc91bf@xymon.invalid] 
Sent: 21 January 2008 21:09
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] allinone and other patch on Debian?

Re: Calvey, Mike 2008-01-21
<user-d0178b30eb11@xymon.invalid>
So the problem is how does one apply the "allinone.patch" to a Hobbit
installation, installed with dpkg and
Debian31-hobbit_4.2.0-1_i386.deb??

Download the *source* package (.dsc), not the binary package (.deb).
I'm not really sure I get your question, chances are you are looking
for "apt-get source hobbit".

http://packages.debian.org/etch-backports/hobbit-client
http://packages.debian.org/experimental/hobbit-client
Christoph


Please refer to www.anite.com for individual Anite company details. The contents of this e-mail and any attachments are for the intended recipient only. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege. Contracts cannot be concluded with us nor legal service effected by email.  

Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187

Scanned for viruses by BlackSpider MailControl.
list Buchan Milne · Wed, 23 Jan 2008 17:46:42 +0200 ·
quoted from Mike Calvey
On Wednesday 23 January 2008 13:25:46 Calvey, Mike wrote:
If I download the [hobbit_4.2.0.dfsg.orig.tar.gz] file, unpack and
untar, I can patch it with the allinone.patch and also apply the
hobbit-perl-client.patch (for Oracle monitoring - which is what I am
trying to do) but cannot build the package with dpkg -b hobbit-4.2.0 as
it does not have the dpkg control files etc.
The only reason for this patch is to enable the graphs of the table space. Since I didn't feel like deploying this patch on my production Hobbit servers at the time ... I modified dbcheck.pl to print the tablespace in the same format as the Hobbit disk check ... which allows us to have the tablespace graphs (on the trends page only, not on the tablespace check unfortunately).

There is more benefit to running dbcheck without the Hobbit patch than patching Hobbit ... so I would only waste time on this once you are actually monitoring your Oracle servers with dbcheck.

However ... this does lead to some questions about patches to Hobbit. There is the hobbit-perl-client patch, the BBWin patch, and shortly one for Devmon. Hopefully this isn't going to result in the Qmail situation (where Qmail administrators spend more time massaging the patches they want than anything else ...). Can we expect integration any of these patches upstream (say, in a Hobbit 4.2.1 release)?

Regards,
Buchan
list Mike Calvey · Wed, 23 Jan 2008 16:18:17 -0000 ·
I am running dbcheck and have limited graphs. I wanted to apply this
patch to increase the graphing. Looking into the
hobbit-perl-client.patch I see a few more headings (see selected
extracts below) and assume these will do more than tablespace?


+[HitCache]
+[TblSpace]
+[TblSpace1]
+[RollBack]
+[InvObj]

+int do_dbcheck_memreq_rrd(char *hostname, char *testname, char *msg,
time_t tstamp)
+int do_dbcheck_hitcache_rrd(char *hostname, char *testname, char *msg,
time_t tstamp)
+int do_dbcheck_session_rrd(char *hostname, char *testname, char *msg,
time_t tstamp)
+int do_dbcheck_rb_rrd(char *hostname, char *testname, char *msg, time_t
tstamp)
+int do_dbcheck_invobj_rrd(char *hostname, char *testname, char *msg,
time_t tstamp)
quoted from Buchan Milne


-----Original Message-----
From: Buchan Milne [mailto:user-9b139aff4dec@xymon.invalid] 
Sent: 23 January 2008 15:47
To: user-ae9b8668bcde@xymon.invalid
Cc: Calvey, Mike
Subject: Re: [hobbit] allinone and other patch on Debian?

On Wednesday 23 January 2008 13:25:46 Calvey, Mike wrote:
If I download the [hobbit_4.2.0.dfsg.orig.tar.gz] file, unpack and
untar, I can patch it with the allinone.patch and also apply the
hobbit-perl-client.patch (for Oracle monitoring - which is what I am
trying to do) but cannot build the package with dpkg -b hobbit-4.2.0
as
it does not have the dpkg control files etc.
The only reason for this patch is to enable the graphs of the table
space. 
Since I didn't feel like deploying this patch on my production Hobbit
servers 
at the time ... I modified dbcheck.pl to print the tablespace in the
same 
format as the Hobbit disk check ... which allows us to have the
tablespace 
graphs (on the trends page only, not on the tablespace check
unfortunately).

There is more benefit to running dbcheck without the Hobbit patch than 
patching Hobbit ... so I would only waste time on this once you are
actually 
monitoring your Oracle servers with dbcheck.

However ... this does lead to some questions about patches to Hobbit.
There is 
the hobbit-perl-client patch, the BBWin patch, and shortly one for
Devmon. 
Hopefully this isn't going to result in the Qmail situation (where Qmail

administrators spend more time massaging the patches they want than
anything 
else ...). Can we expect integration any of these patches upstream (say,
in a 
Hobbit 4.2.1 release)?

Regards,
Buchan


 Scanned for viruses by BlackSpider MailControl


Please refer to www.anite.com for individual Anite company details. The contents of this e-mail and any attachments are for the intended recipient only. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege. Contracts cannot be concluded with us nor legal service effected by email.  

Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187

Scanned for viruses by BlackSpider MailControl.