Xymon Mailing List Archive search

Spec file for 4.3.4?

9 messages in this thread

list Daniel McDonald · Mon, 22 Aug 2011 11:51:01 -0500 ·
I tried to build 4.3.4 using the included spec file, and came up with a few
errors:
RPM build errors:
    File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css
    File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak
    File listed twice: /usr/lib/xymon/client/bin/clientupdate
    File listed twice: /usr/lib/xymon/client/bin/logfetch
    File listed twice: /usr/lib/xymon/client/ext


Does anyone have a working specfile?  I¹d like to build this on Mandriva
Enterprise Server 5.2


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281
list Jason Kincl · Mon, 22 Aug 2011 12:13:19 -0500 ·
Daniel,

This issue has been discussed in another thread of the mailing list, see link here: http://lists.xymon.com/archive/2011-April/031407.html

If you follow the thread, I replied with a fix for the xymonmenu.css file not found. As for the critical.cfg.bak file, I have just commented that line out of the spec file with no problems.
quoted from Daniel McDonald

On Aug 22, 2011, at 11:51 AM, Daniel McDonald wrote:
I tried to build 4.3.4 using the included spec file, and came up with a few errors:
RPM build errors:
    File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css
    File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak
    File listed twice: /usr/lib/xymon/client/bin/clientupdate
    File listed twice: /usr/lib/xymon/client/bin/logfetch
    File listed twice: /usr/lib/xymon/client/ext


Does anyone have a working specfile?  I’d like to build this on Mandriva Enterprise Server 5.2


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281
Jason Kincl
list Tom Diehl · Mon, 22 Aug 2011 15:34:34 -0400 (EDT) ·
quoted from Jason Kincl
On Mon, 22 Aug 2011, Jason Kincl wrote:
Daniel,

This issue has been discussed in another thread of the mailing list, see
link here: http://lists.xymon.com/archive/2011-April/031407.html

If you follow the thread, I replied with a fix for the xymonmenu.css file not
found. As for the critical.cfg.bak file, I have just commented that line out
of the spec file with no problems.

On Aug 22, 2011, at 11:51 AM, Daniel McDonald wrote:
I tried to build 4.3.4 using the included spec file, and came up with a few errors:
RPM build errors:
    File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css
    File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak
    File listed twice: /usr/lib/xymon/client/bin/clientupdate
    File listed twice: /usr/lib/xymon/client/bin/logfetch
    File listed twice: /usr/lib/xymon/client/ext


Does anyone have a working specfile?  I’d like to build this on
Mandriva Enterprise Server 5.2
I do not know anything about Mandriva Enterprise Server 5.2 but I have an
srpm at:
http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SRPMS/xymon-4.3.4-1.el6.tnt.2.src.rpm
that I am using for my CentOS 5 and 6 servers.

It is modified from the original spec file included with xymon and includes
some selinux policy files that may or may not be correct. They were generated
by audit2allow after running xymon with selinux in permissive mode.

It is a work in progress and guaranteed to contain as yet unknown bugs. :-) Use
it at your own risk or ignore it. Whatever you prefer.

If someone finds errors/bugs, I would appreciate knowing about them. Especially
if you know how to fix them as they relate to CentOS/RHEL.

Hope this helps.

Regards,

-- 
Tom Diehl       user-6203f2c4f8ec@xymon.invalid      Spamtrap address user-0545b31a2bcf@xymon.invalid
list Daniel McDonald · Mon, 22 Aug 2011 15:30:54 -0500 ·
quoted from Tom Diehl

On 8/22/11 2:34 PM, "Tom Diehl" <user-6203f2c4f8ec@xymon.invalid> wrote:
On Mon, 22 Aug 2011, Jason Kincl wrote:
Daniel,

This issue has been discussed in another thread of the mailing list, see
link here: http://lists.xymon.com/archive/2011-April/031407.html

If you follow the thread, I replied with a fix for the xymonmenu.css file not
found. As for the critical.cfg.bak file, I have just commented that line out
of the spec file with no problems.

On Aug 22, 2011, at 11:51 AM, Daniel McDonald wrote:
I tried to build 4.3.4 using the included spec file, and came up with a few
errors:
RPM build errors:
    File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css
    File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak
    File listed twice: /usr/lib/xymon/client/bin/clientupdate
    File listed twice: /usr/lib/xymon/client/bin/logfetch
    File listed twice: /usr/lib/xymon/client/ext


Does anyone have a working specfile?  I¹d like to build this on
Mandriva Enterprise Server 5.2
I do not know anything about Mandriva Enterprise Server 5.2 but I have an
srpm at:

http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SRPMS
/xymon-4.3.4-1.el6.tnt.2.src.rpm
quoted from Tom Diehl
that I am using for my CentOS 5 and 6 servers.

It is modified from the original spec file included with xymon and includes
some selinux policy files that may or may not be correct. They were generated
by audit2allow after running xymon with selinux in permissive mode.

It is a work in progress and guaranteed to contain as yet unknown bugs. :-)
Use
it at your own risk or ignore it. Whatever you prefer.

If someone finds errors/bugs, I would appreciate knowing about them.
Doesn't build:
$ rpmbuild --rebuild
http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SRP
MS/xymon-4.3.4-1.el6.tnt.2.src.rpm
Installing 
http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SRP
MS/xymon-4.3.4-1.el6.tnt.2.src.rpm
warning: InstallSourcePackage: Header V4 DSA signature: NOKEY, key ID
a39578ef
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
error: unpacking of archive failed on file
/home/mcdonalddj/rpm/SOURCES/xymon-4.3.4-infocolumn-crash.patch;4e52bb45:
cpio: MD5 sum mismatch
error: 
http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SRP
MS/xymon-4.3.4-1.el6.tnt.2.src.rpm cannot be installed
quoted from Tom Diehl
Especially
if you know how to fix them as they relate to CentOS/RHEL.

Hope this helps.

Regards,
list Tom Diehl · Mon, 22 Aug 2011 17:30:42 -0400 (EDT) ·
Hi,
quoted from Daniel McDonald

On Mon, 22 Aug 2011, Daniel McDonald wrote:
On 8/22/11 2:34 PM, "Tom Diehl" <user-6203f2c4f8ec@xymon.invalid> wrote:
On Mon, 22 Aug 2011, Jason Kincl wrote:
Daniel,

This issue has been discussed in another thread of the mailing list, see
link here: http://lists.xymon.com/archive/2011-April/031407.html

If you follow the thread, I replied with a fix for the xymonmenu.css file not
found. As for the critical.cfg.bak file, I have just commented that line out
of the spec file with no problems.

On Aug 22, 2011, at 11:51 AM, Daniel McDonald wrote:
I tried to build 4.3.4 using the included spec file, and came up with a few
errors:
RPM build errors:
    File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css
    File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak
    File listed twice: /usr/lib/xymon/client/bin/clientupdate
    File listed twice: /usr/lib/xymon/client/bin/logfetch
    File listed twice: /usr/lib/xymon/client/ext


Does anyone have a working specfile?  I¹d like to build this on
Mandriva Enterprise Server 5.2
I do not know anything about Mandriva Enterprise Server 5.2 but I have an
srpm at:
http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SRPMS
/xymon-4.3.4-1.el6.tnt.2.src.rpm
that I am using for my CentOS 5 and 6 servers.

It is modified from the original spec file included with xymon and includes
some selinux policy files that may or may not be correct. They were generated
by audit2allow after running xymon with selinux in permissive mode.

It is a work in progress and guaranteed to contain as yet unknown bugs. :-)
Use
it at your own risk or ignore it. Whatever you prefer.

If someone finds errors/bugs, I would appreciate knowing about them.
Doesn't build:
$ rpmbuild --rebuild
http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SRP
MS/xymon-4.3.4-1.el6.tnt.2.src.rpm
Installing
http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SRP
MS/xymon-4.3.4-1.el6.tnt.2.src.rpm
warning: InstallSourcePackage: Header V4 DSA signature: NOKEY, key ID
a39578ef
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
error: unpacking of archive failed on file
/home/mcdonalddj/rpm/SOURCES/xymon-4.3.4-infocolumn-crash.patch;4e52bb45:
cpio: MD5 sum mismatch
The above line is key.

It fails because the rpm was built on a Centos 6 machine that uses the newer
rpm format. You can either extract it by using rpm -Uvh --nomd5 and then 
rpmbuild -bs specfile.spec or go get the Centos 5 src.rpm at 
http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/5/SRPMS/xymon-4.3.4-1.el5.tnt.2.src.rpm

FWIW, I cannot guarantee they will build for you but I can guarantee they built for
me in mock. The only way they will show up on the website is if they build in
mock.

Hope this helps.

Regards,


-- 
Tom Diehl       user-6203f2c4f8ec@xymon.invalid      Spamtrap address user-0545b31a2bcf@xymon.invalid
list Daniel McDonald · Tue, 23 Aug 2011 17:50:32 -0500 ·

On 8/22/11 4:30 PM, "Tom Diehl" <user-6203f2c4f8ec@xymon.invalid> wrote:
Hi,
quoted from Tom Diehl
error: unpacking of archive failed on file
/home/mcdonalddj/rpm/SOURCES/xymon-4.3.4-infocolumn-crash.patch;4e52bb45:
cpio: MD5 sum mismatch
The above line is key.

It fails because the rpm was built on a Centos 6 machine that uses the newer
rpm format. You can either extract it by using rpm -Uvh --nomd5 and then
rpmbuild -bs specfile.spec or go get the Centos 5 src.rpm at

http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/5/SRPMS
/xymon-4.3.4-1.el5.tnt.2.src.rpm
Ok, I'm much further than when I started.  I've got to move a few things
around to match the Mandriva FSH (shouldn't have a tmp directory in /usr, it
should be in /var, etc) and I'll need to tweak the init file, and the httpd
daemon is called apache in the mandriva family, but all-in-all, I'm much
further along than I was a month ago.
list Tom Diehl · Wed, 24 Aug 2011 13:55:11 -0400 (EDT) ·
quoted from Tom Diehl
On Tue, 23 Aug 2011, Buchan Milne wrote:
On Monday, 22 August 2011 21:34:34 Tom Diehl wrote:
On Mon, 22 Aug 2011, Jason Kincl wrote:
Daniel,

This issue has been discussed in another thread of the mailing list, see
link here: http://lists.xymon.com/archive/2011-April/031407.html

If you follow the thread, I replied with a fix for the xymonmenu.css file
not found. As for the critical.cfg.bak file, I have just commented that
line out of the spec file with no problems.

On Aug 22, 2011, at 11:51 AM, Daniel McDonald wrote:
I tried to build 4.3.4 using the included spec file, and came up with a
few errors:

RPM build errors:
    File not found: /tmp/xymon-root/var/lib/xymon/www/menu/xymonmenu.css
    File not found: /tmp/xymon-root/etc/xymon/critical.cfg.bak
    File listed twice: /usr/lib/xymon/client/bin/clientupdate
    File listed twice: /usr/lib/xymon/client/bin/logfetch
    File listed twice: /usr/lib/xymon/client/ext

Does anyone have a working specfile?  I’d like to build this on
Mandriva Enterprise Server 5.2
I do not know anything about Mandriva Enterprise Server 5.2 but I have an
srpm at:

http://yumrepo.tntechs.com/yum-repository/local/centos/tntechs-testing/6/SR
PMS/xymon-4.3.4-1.el6.tnt.2.src.rpm that I am using for my CentOS 5 and 6
quoted from Tom Diehl
servers.

It is modified from the original spec file included with xymon
Which has multiple issues regarding most package quality compliance
guidelines. IMHO, it is a bad place to start ...
Agreed but it was the quickest way for me to get a template to hack on.
I have fixed a lot of the problems rpmlint shows when run against the 
srpm. When rpmlint is run against the rpm there are many errors. Most 
are things like the following:
xymon.i386: W: manpage-not-compressed gz /var/lib/xymon/www/help/manpages/man8/xymonproxy.8.html
xymon.i386: W: name-repeated-in-summary C Xymon
xymon.i386: W: non-standard-uid /var/lib/xymon/www/gifs/blue-ack.gif xymon

xymon.i386: E: non-standard-executable-perm /usr/lib/xymon/server/bin/xymon-mailack 0775L

In the xymon context, I do not think the above warnings are valid.

For the error, I need to understand what it is telling me. The permissions
on the referenced files are 0775 I do not understand what 0775L is and more
importantly how to fix it. The spec file says the permissions are 775.

As I said above this is a work in progress.
quoted from Tom Diehl
and includes
some selinux policy files that may or may not be correct. They were
generated by audit2allow after running xymon with selinux in permissive
mode.
How about submitting a patch so these can be included in the source release?
I am hesitant to do that because I am not sure that they are correct. If someone
who understands selinux could review them then I do not have a problem.
quoted from Tom Diehl
It is a work in progress and guaranteed to contain as yet unknown bugs. :-)
Use it at your own risk or ignore it. Whatever you prefer.

If someone finds errors/bugs, I would appreciate knowing about them.
Especially if you know how to fix them as they relate to CentOS/RHEL.
Well, I have discussed this many times, but there are a number of spec files
floating around, and most of them don't take upgrading (e.g. 4.2.3 to 4.3.x)
into account, and many fix different issues, but almost no-one seems to be
willing to discuss what must be fixed, and contribute to fixing the spec file
in svn.
I would love to discuss what needs to be fixed to get a good set of rpms for
RHEL/centos/fedora. The problem is that many people want rpms for other rpm
based distros that I have no experience with. I have seen many attempts in the
past to maintain distro agnostic rpms with very limited success.

As to the upgrade issue, I have no real way of testing upgrades and there are
a lot of variables that I am sure I would miss. The only thing I did in my
srpm wrt upgrades was check to see if the old hobbit* config files existed
and rename them to the xymon equivalents.
Until such a time, there will continue to be multiple incompatible packages.
Indeed.

Regards,

-- 
Tom Diehl       user-6203f2c4f8ec@xymon.invalid      Spamtrap address user-0545b31a2bcf@xymon.invalid
list Jeremy Laidman · Thu, 25 Aug 2011 14:05:06 +1000 ·
2011/8/25 Tom Diehl <user-6203f2c4f8ec@xymon.invalid>
quoted from Tom Diehl
On Tue, 23 Aug 2011, Buchan Milne wrote:

 Well, I have discussed this many times, but there are a number of spec
files
 floating around, and most of them don't take upgrading (e.g. 4.2.3 to
4.3.x)
into account, and many fix different issues, but almost no-one seems to be
willing to discuss what must be fixed, and contribute to fixing the spec
file
in svn.
I would love to discuss what needs to be fixed to get a good set of rpms
for
RHEL/centos/fedora. The problem is that many people want rpms for other rpm
based distros that I have no experience with. I have seen many attempts in
the
past to maintain distro agnostic rpms with very limited success.
I have a SuSE spec file that is pretty close to what's provided in the
source tarball.  I think I can get it to be backwards-compatible (I'm
guessing the original is for Red Hat distros) with various %if conditionals.
 I'd be happy to work as part of a team of spec maintainers to get "the one
spec to rule them all".  I don't have access to servers with other distros,
so I can only test on SuSE/SLES.

Cheers
Jeremy
list Colin Coe · Thu, 25 Aug 2011 13:27:21 +0800 ·
On Thu, Aug 25, 2011 at 12:05 PM, Jeremy Laidman
quoted from Jeremy Laidman
<user-71895fb2e44c@xymon.invalid> wrote:
2011/8/25 Tom Diehl <user-6203f2c4f8ec@xymon.invalid>
On Tue, 23 Aug 2011, Buchan Milne wrote:
Well, I have discussed this many times, but there are a number of spec
files

floating around, and most of them don't take upgrading (e.g. 4.2.3 to
4.3.x)
into account, and many fix different issues, but almost no-one seems to
be
willing to discuss what must be fixed, and contribute to fixing the spec
file
in svn.
I would love to discuss what needs to be fixed to get a good set of rpms
for
RHEL/centos/fedora. The problem is that many people want rpms for other
rpm
based distros that I have no experience with. I have seen many attempts in
the
past to maintain distro agnostic rpms with very limited success.
I have a SuSE spec file that is pretty close to what's provided in the
source tarball.  I think I can get it to be backwards-compatible (I'm
guessing the original is for Red Hat distros) with various %if conditionals.
 I'd be happy to work as part of a team of spec maintainers to get "the one
spec to rule them all".  I don't have access to servers with other distros,
so I can only test on SuSE/SLES.
Cheers
Jeremy
I'd more than happy to throw my hat in the ring to assist with the
RHEL/Fedora side.

And on a sort-of related note, maybe we can package up popular
'additional' tests such as Oracle and MySQL so that everything is in
one spot

My 2 cents

CC


-- 
RHCE#805007969328369