Building our own NRPE client RPM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Building our own NRPE client RPM

Post 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?
bolson

Re: Building our own NRPE client RPM

Post by bolson »

That would be totally up to you.
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Building our own NRPE client RPM

Post 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.
bolson

Re: Building our own NRPE client RPM

Post by bolson »

I've forwarded your post to our development team. Awaiting their response. Thank you!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Building our own NRPE client RPM

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked