Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   Nagios 3.4.1 on CentOS 5.8 (http://www.linux-archive.org/centos/673895-nagios-3-4-1-centos-5-8-a.html)

Kaushal Shriyan 06-18-2012 02:46 AM

Nagios 3.4.1 on CentOS 5.8
 
Hi

I am trying to build nagios rpm from nagios.spec file on CentOS 5.8. I am
getting into issues.

nagios.spec http://fpaste.org/crOs/

rpmbuild -ba nagios.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.36485
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf nagios-3.4.1
+ /bin/gzip -dc /usr/src/redhat/SOURCES/nagios-3.4.1.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nagios-3.4.1
/var/tmp/rpm-tmp.36485: line 31: cd: nagios-3.4.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.36485 (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.36485 (%prep)

http://fpaste.org/IYHQ/ which mentions about /var/tmp/rpm-tmp.36485

Any clue?

Regards

Kaushal
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

"Joseph L. Casale" 06-18-2012 03:08 AM

Nagios 3.4.1 on CentOS 5.8
 
>+ /bin/gzip -dc /usr/src/redhat/SOURCES/nagios-3.4.1.tar.gz
>+ tar -xf -
>+ STATUS=0

Ok, it unpacked.

>+ '[' 0 -ne 0 ']'
>+ cd nagios-3.4.1
>/var/tmp/rpm-tmp.36485: line 31: cd: nagios-3.4.1: No such file or directory
>error: Bad exit status from /var/tmp/rpm-tmp.36485 (%prep)

But now it cant cd into the *expected* directory.

Either fix the tar file, or amend the spec with the facilities provided that allow
for this very circumstance.

http://fedoraproject.org/wiki/How_to_create_an_RPM_package#.25prep_section:_.25s etup_command
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Kaushal Shriyan 06-18-2012 03:31 AM

Nagios 3.4.1 on CentOS 5.8
 
On Mon, Jun 18, 2012 at 8:38 AM, Joseph L. Casale <jcasale@activenetwerx.com
> wrote:

> >+ /bin/gzip -dc /usr/src/redhat/SOURCES/nagios-3.4.1.tar.gz
> >+ tar -xf -
> >+ STATUS=0
>
> Ok, it unpacked.
>
> >+ '[' 0 -ne 0 ']'
> >+ cd nagios-3.4.1
> >/var/tmp/rpm-tmp.36485: line 31: cd: nagios-3.4.1: No such file or
> directory
> >error: Bad exit status from /var/tmp/rpm-tmp.36485 (%prep)
>
> But now it cant cd into the *expected* directory.
>
> Either fix the tar file, or amend the spec with the facilities provided
> that allow
> for this very circumstance.
>
>
> http://fedoraproject.org/wiki/How_to_create_an_RPM_package#.25prep_section:_.25s etup_command
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Hi Joseph

Any clue about http://fpaste.org/mcED/

Regards

Kaushal
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

"Joseph L. Casale" 06-18-2012 10:11 AM

Nagios 3.4.1 on CentOS 5.8
 
>Hi Joseph
>
>Any clue about http://fpaste.org/mcED/

Probably once I see the spec...

You might see this guy:
http://www.rebee.clara.net/blog/archives/2012/05/entry_198.html

Seems he's done the heavy lifting...
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Kaushal Shriyan 06-18-2012 01:25 PM

Nagios 3.4.1 on CentOS 5.8
 
On Mon, Jun 18, 2012 at 3:41 PM, Joseph L. Casale <jcasale@activenetwerx.com
> wrote:

> >Hi Joseph
> >
> >Any clue about http://fpaste.org/mcED/
>
> Probably once I see the spec...
>
> You might see this guy:
> http://www.rebee.clara.net/blog/archives/2012/05/entry_198.html
>
>
Hi Joseph,

http://fpaste.org/Z3im/ -> nagios.spec

Any Clue?

Regards

Kaushal
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

James Hogarth 06-18-2012 04:38 PM

Nagios 3.4.1 on CentOS 5.8
 
Check out https://wiki.icinga.org/display/howtos/Build+Icinga+RPMs for some
fairly detailed instructions.

Given icinga is a fork of nagios it should mostly apply (I built from their
provided spec and tarball only recently) ... or you might just want to
switch to this from nagios ;-)
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Kaushal Shriyan 06-18-2012 04:58 PM

Nagios 3.4.1 on CentOS 5.8
 
On Mon, Jun 18, 2012 at 10:08 PM, James Hogarth <james.hogarth@gmail.com>wrote:

> Check out https://wiki.icinga.org/display/howtos/Build+Icinga+RPMs for
> some
> fairly detailed instructions.
>
> Given icinga is a fork of nagios it should mostly apply (I built from their
> provided spec and tarball only recently) ... or you might just want to
> switch to this from nagios ;-)
>

Hi James,

Thanks for the instruction page. Let me know how is Icinga advantageous
over Nagios Core specifically pros and cons.

Regards

Kaushal
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 03:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.