Re: [Nagios-users] rpmbuild nagios-3.5.0

2013-07-25 Thread Randal, Phil
Talking of DAG's RPMs, if you'd been using Nagios 3.2.3 from rpmforge, I've 
written a blog post on how to build Nagios 3.4.1 / 3.5.0 as a replacement, 
using same file locations.  The last postscript in the blog is the relevant 
stuff for 3.5.0.

http://www.rebee.clara.net/blog/archives/2012/05/entry_198.html

Cheers,

Phil


-Original Message-
From: Daniel Wittenberg [mailto:dwittenberg2...@gmail.com]
Sent: 24 July 2013 23:27
To: Nagios Users List
Subject: Re: [Nagios-users] rpmbuild nagios-3.5.0

FWIW - the spec file in 4.0 has been completely rewritten and should work a lot 
better, based on Dag's RPM's and merged my changes in and what I've been using 
for almost a year now.

Dan

On Jul 24, 2013, at 11:55 AM, frank  wrote:

> Just speaking for myself here, in my experience distro-level packaging
> usually isn't part of a project's goals and can be an extreme
> distraction considering the vast number of distros out there, all with
> their own little quirks. Spec files and other contrib items work their
> way into source trees and are useful until the 3rd party API changes
> and the original maintainers lose interest. I'd look into the checkin
> history of the spec file to see if anyone has been making regular
> updates. Or even easier, go get the SRPM from EPEL, which is known to
> work, and alter it as you see fit for your purposes.
>
> -f
>
> On Wed, 24 Jul 2013, alexus wrote:
>
>> thank you for your recommendation) although I'd really like to know
>> why it was ok on 3.2.3 and not ok going forward (seems like a bug to me that 
>> needed to be reported back to nagios folks).
>>
>>
>> On Wed, Jul 24, 2013 at 10:42 AM, Trond Hasle Amundsen 
>>  wrote:
>>  alexus  writes:
>>
>>> I'm unable to build RPM w/ nagios 3.5.0, last one that worked for me was 
>>> 3.2.3.
>>> any ideas/suggestions?
>>
>> I'd recommend using the already prebuilt package for rhel6 which is
>> available from EPEL[1]. Add the EPEL repo and you can simply do "yum
>> install nagios" and be done :)
>>
>> [1] http://fedoraproject.org/wiki/EPEL
>>
>> Cheers,
>> --
>> Trond H. Amundsen  Center for Information
>> Technology Services, University of Oslo
>>
>> -
>> - See everything from the browser to the database with
>> AppDynamics Get end-to-end visibility with application monitoring
>> from AppDynamics Isolate bottlenecks and diagnose root cause in
>> seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.
>> clktrk ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue.
>> ::: Messages without supporting info will risk being sent to
>> /dev/null
>>
>>
>>
>>
>> --
>> http://alexus.org/
>>
>>
>
> --
>  See everything from the browser to the database with
> AppDynamics Get end-to-end visibility with application monitoring from
> AppDynamics Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.c
> lktrk ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null


--
See everything from the browser to the database with AppDynamics Get end-to-end 
visibility with application monitoring from AppDynamics Isolate bottlenecks and 
diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null
Hoople Ltd, Registered in England and Wales No. 7556595
Registered office: P

Re: [Nagios-users] rpmbuild nagios-3.5.0

2013-07-24 Thread Daniel Wittenberg
FWIW - the spec file in 4.0 has been completely rewritten and should work a lot 
better, based on Dag's RPM's and merged my changes in and what I've been using 
for almost a year now.

Dan

On Jul 24, 2013, at 11:55 AM, frank  wrote:

> Just speaking for myself here, in my experience distro-level packaging 
> usually isn't part of a project's goals and can be an extreme distraction 
> considering the vast number of distros out there, all with their own 
> little quirks. Spec files and other contrib items work their way into 
> source trees and are useful until the 3rd party API changes and the 
> original maintainers lose interest. I'd look into the checkin history of 
> the spec file to see if anyone has been making regular updates. Or even 
> easier, go get the SRPM from EPEL, which is known to work, and alter it as 
> you see fit for your purposes.
> 
> -f
> 
> On Wed, 24 Jul 2013, alexus wrote:
> 
>> thank you for your recommendation) although I'd really like to know why it 
>> was ok on 3.2.3 and
>> not ok going forward (seems like a bug to me that needed to be reported back 
>> to nagios folks).
>> 
>> 
>> On Wed, Jul 24, 2013 at 10:42 AM, Trond Hasle Amundsen 
>>  wrote:
>>  alexus  writes:
>> 
>>> I'm unable to build RPM w/ nagios 3.5.0, last one that worked for me was 
>>> 3.2.3.
>>> any ideas/suggestions?
>> 
>> I'd recommend using the already prebuilt package for rhel6 which is
>> available from EPEL[1]. Add the EPEL repo and you can simply do "yum
>> install nagios" and be done :)
>> 
>> [1] http://fedoraproject.org/wiki/EPEL
>> 
>> Cheers,
>> --
>> Trond H. Amundsen 
>> Center for Information Technology Services, University of Oslo
>> 
>> --
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>> 
>> 
>> 
>> 
>> --
>> http://alexus.org/
>> 
>> 
> 
> --
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] rpmbuild nagios-3.5.0

2013-07-24 Thread frank
Just speaking for myself here, in my experience distro-level packaging 
usually isn't part of a project's goals and can be an extreme distraction 
considering the vast number of distros out there, all with their own 
little quirks. Spec files and other contrib items work their way into 
source trees and are useful until the 3rd party API changes and the 
original maintainers lose interest. I'd look into the checkin history of 
the spec file to see if anyone has been making regular updates. Or even 
easier, go get the SRPM from EPEL, which is known to work, and alter it as 
you see fit for your purposes.

-f

On Wed, 24 Jul 2013, alexus wrote:

> thank you for your recommendation) although I'd really like to know why it 
> was ok on 3.2.3 and
> not ok going forward (seems like a bug to me that needed to be reported back 
> to nagios folks).
> 
> 
> On Wed, Jul 24, 2013 at 10:42 AM, Trond Hasle Amundsen 
>  wrote:
>   alexus  writes:
>
>   > I'm unable to build RPM w/ nagios 3.5.0, last one that worked for me 
> was 3.2.3.
>   > any ideas/suggestions?
> 
> I'd recommend using the already prebuilt package for rhel6 which is
> available from EPEL[1]. Add the EPEL repo and you can simply do "yum
> install nagios" and be done :)
> 
> [1] http://fedoraproject.org/wiki/EPEL
> 
> Cheers,
> --
> Trond H. Amundsen 
> Center for Information Technology Services, University of Oslo
> 
> --
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
> 
> 
> 
> 
> --
> http://alexus.org/
> 
>

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] rpmbuild nagios-3.5.0

2013-07-24 Thread alexus
thank you for your recommendation) although I'd really like to know why it
was ok on 3.2.3 and not ok going forward (seems like a bug to me that
needed to be reported back to nagios folks).


On Wed, Jul 24, 2013 at 10:42 AM, Trond Hasle Amundsen <
t.h.amund...@usit.uio.no> wrote:

> alexus  writes:
>
> > I'm unable to build RPM w/ nagios 3.5.0, last one that worked for me was
> 3.2.3.
> > any ideas/suggestions?
>
> I'd recommend using the already prebuilt package for rhel6 which is
> available from EPEL[1]. Add the EPEL repo and you can simply do "yum
> install nagios" and be done :)
>
> [1] http://fedoraproject.org/wiki/EPEL
>
> Cheers,
> --
> Trond H. Amundsen 
> Center for Information Technology Services, University of Oslo
>
>
> --
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
http://alexus.org/
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] rpmbuild nagios-3.5.0

2013-07-24 Thread Trond Hasle Amundsen
alexus  writes:

> I'm unable to build RPM w/ nagios 3.5.0, last one that worked for me was 
> 3.2.3.
> any ideas/suggestions?

I'd recommend using the already prebuilt package for rhel6 which is
available from EPEL[1]. Add the EPEL repo and you can simply do "yum
install nagios" and be done :)

[1] http://fedoraproject.org/wiki/EPEL

Cheers,
-- 
Trond H. Amundsen 
Center for Information Technology Services, University of Oslo

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] rpmbuild nagios-3.5.0

2013-07-24 Thread alexus
[root@uftwfnagios ~]# tar -ztvf nagios-3.5.0.tar.gz | head -1
drwxrwxr-x nagios/nagios 0 2013-03-15 07:18 nagios/
[root@uftwfnagios ~]#

I see nagios inside of nagios-3.5.0.tar.gz not nagios-3.5.0.

[root@uftwfnagios nagios]# grep BuildRoot nagios.spec
BuildRoot: %{_tmppath}/%{name}-buildroot
[root@uftwfnagios nagios]#

as I mention earlier I was able to build w/out any issue 3.2.3
I'm thinking I should probably submit this as bug to nagios?



On Wed, Jul 24, 2013 at 10:19 AM, Werner Flamme wrote:

> alexus [24.07.2013 15:56]:
> > # md5sum nagios-3.5.0.tar.gz
> > aeef195d2033cc362bf6cb972bcc8f07  nagios-3.5.0.tar.gz
> > # rpmbuild -tb nagios-3.5.0.tar.gz
> > warning: line 40: prereq is deprecated: PreReq: /usr/bin/logger,
> chkconfig,
> > sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp
> > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.VOVWNc
> > + umask 022
> > + cd /root/rpmbuild/BUILD
> > + LANG=C
> > + export LANG
> > + unset DISPLAY
> > + cd /root/rpmbuild/BUILD
> > + rm -rf nagios-3.5.0
> > + /usr/bin/gzip -dc /root/nagios-3.5.0.tar.gz
> > + /bin/tar -xf -
> > + STATUS=0
> > + '[' 0 -ne 0 ']'
> > + cd nagios-3.5.0
> > /var/tmp/rpm-tmp.VOVWNc: line 38: cd: nagios-3.5.0: No such file or
> > directory
> > error: Bad exit status from /var/tmp/rpm-tmp.VOVWNc (%prep)
> >
> >
> > RPM build errors:
> > line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig,
> > sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp
> > Bad exit status from /var/tmp/rpm-tmp.VOVWNc (%prep)
> > # cat /etc/redhat-release
> > Red Hat Enterprise Linux Server release 6.4 (Santiago)
> > # uname -a
> > Linux XXX.XXX.XXX 2.6.32-358.6.2.el6.x86_64 #1 SMP Tue May 14 15:48:21
> EDT
> > 2013 x86_64 x86_64 x86_64 GNU/Linux
> > #
> >
> > I'm unable to build RPM w/ nagios 3.5.0, last one that worked for me was
> > 3.2.3.
> > any ideas/suggestions?
>
> The first error I see is "cd: nagios-3.5.0: No such file or directory"
>
> Is  there a directory named "nagios-3.5.0" in the tar ball or is it
> named only "nagios"?
>
> What does you spec file say? Maybe you have to adapt the BuildRoot?
> Like, from "%{_tmppath}/%{name}-%{version}" to "%{_tmppath}/%{name}"?
>
> Just a guess,
> Werner
>
> --
>
>
> --
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
http://alexus.org/
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] rpmbuild nagios-3.5.0

2013-07-24 Thread Werner Flamme
alexus [24.07.2013 15:56]:
> # md5sum nagios-3.5.0.tar.gz
> aeef195d2033cc362bf6cb972bcc8f07  nagios-3.5.0.tar.gz
> # rpmbuild -tb nagios-3.5.0.tar.gz
> warning: line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig,
> sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.VOVWNc
> + umask 022
> + cd /root/rpmbuild/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /root/rpmbuild/BUILD
> + rm -rf nagios-3.5.0
> + /usr/bin/gzip -dc /root/nagios-3.5.0.tar.gz
> + /bin/tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd nagios-3.5.0
> /var/tmp/rpm-tmp.VOVWNc: line 38: cd: nagios-3.5.0: No such file or
> directory
> error: Bad exit status from /var/tmp/rpm-tmp.VOVWNc (%prep)
> 
> 
> RPM build errors:
> line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig,
> sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp
> Bad exit status from /var/tmp/rpm-tmp.VOVWNc (%prep)
> # cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 6.4 (Santiago)
> # uname -a
> Linux XXX.XXX.XXX 2.6.32-358.6.2.el6.x86_64 #1 SMP Tue May 14 15:48:21 EDT
> 2013 x86_64 x86_64 x86_64 GNU/Linux
> #
> 
> I'm unable to build RPM w/ nagios 3.5.0, last one that worked for me was
> 3.2.3.
> any ideas/suggestions?

The first error I see is "cd: nagios-3.5.0: No such file or directory"

Is  there a directory named "nagios-3.5.0" in the tar ball or is it
named only "nagios"?

What does you spec file say? Maybe you have to adapt the BuildRoot?
Like, from "%{_tmppath}/%{name}-%{version}" to "%{_tmppath}/%{name}"?

Just a guess,
Werner

-- 

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null