Page 1 of 1

Building our own NRPE client RPM

Posted: Fri Aug 25, 2017 9:00 am
by vmesquita
Hello,

We are building our own Nagios RPM based on the sources pointed by the wizard:

https://assets.nagios.com/downloads/nag ... ent.tar.gz


Inside we found specs to build 2 rpms:
nagios-plugins-2.0.3-1.x86_64.rpm
nrpe-2.15-1.x86_64.rpm

However both were broken and we had to produce a patch to fix it:

Code: Select all

--- nagios-plugins.spec.orig    2017-08-25 09:03:39.007000007 -0300
+++ nagios-plugins.spec 2017-08-25 09:08:37.066000008 -0300
@@ -182,9 +182,8 @@


%files -f %{name}.lang
-%config(missingok,noreplace) %{_sysconfdir}/command.cfg
%doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT THANKS
-%doc ChangeLog command.cfg
+%doc ChangeLog
%if ! %{isaix}
%{_datadir}/locale/de/LC_MESSAGES/nagios-plugins.mo
%{_datadir}/locale/fr/LC_MESSAGES/nagios-plugins.mo
--- nrpe.spec.orig      2013-09-06 12:27:13.000000000 -0300
+++ nrpe.spec   2017-08-25 07:57:24.099000005 -0300
@@ -193,6 +193,7 @@
install -d -m 0755 ${RPM_BUILD_ROOT}%{_init_dir}
%endif
DESTDIR=${RPM_BUILD_ROOT} %{_make} install install-daemon-config
+DESTDIR=${RPM_BUILD_ROOT} %{_make} install-xinetd
#install -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}
#install -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
#install -d -m 0755 ${RPM_BUILD_ROOT}%{_libexecdir}
@@ -200,7 +201,7 @@
# install templated configuration files
#cp sample-config/nrpe.cfg ${RPM_BUILD_ROOT}%{_sysconfdir}/nrpe.cfg
#%if %{isaix}
-#cp init-script ${RPM_BUILD_ROOT}%{_init_dir}/nrpe
+cp init-script ${RPM_BUILD_ROOT}%{_init_dir}/nrpe
#%endif
#cp src/nrpe ${RPM_BUILD_ROOT}%{_bindir}
#cp src/check_nrpe ${RPM_BUILD_ROOT}%{_libexecdir}
Does it make any difference to distribute the package split in two like this? Or would it be better to make just one?

Re: Building our own NRPE client RPM

Posted: Fri Aug 25, 2017 9:25 am
by bolson
That would be totally up to you.

Re: Building our own NRPE client RPM

Posted: Fri Aug 25, 2017 9:34 am
by vmesquita
Great. How could we submit this patch? Maybe other people would like to build their own RPMs and are having difficulties, it could be useful.

Re: Building our own NRPE client RPM

Posted: Fri Aug 25, 2017 9:41 am
by bolson
I've forwarded your post to our development team. Awaiting their response. Thank you!

Re: Building our own NRPE client RPM

Posted: Fri Aug 25, 2017 10:11 am
by scottwilkerson
@vmesquita

If you have a spec file to build this, you can feel free to PM it to one of our technicians or email it to
[email protected]

This would not could as one of your available tickets, as a matter of fact we may give you extra!