Monitoring Plugins RPM build help

Andrew Tomchuk njlytoh at gmail.com
Wed Feb 10 10:41:25 CET 2016


Try changing owner and group from naemon to pg in spec file.
Best regards.

On Tue, Feb 9, 2016 at 7:44 PM, Geldart, Paul <paul.geldart at platts.com>
wrote:

> Hi
>
>
>
> I am trying to build the monitoring plugins rpm at version 2.0 using the
> supplied SPEC file, which works ok as root, but comes up with the below
> error when I try to run the rpmbuild not as root (gets quite far before
> failure as you can see).
>
>
>
> libtool: install: /usr/bin/install -c -o naemon -g naemon check_apt
> /home/pg/monplugins/rpmbuild/BUILDROOT/platts-monitoring-plugins-2.0-PG1.el6.x86_64/local/apps/monitoring-plugins-2.0/libexec/check_apt
>
> /usr/bin/install: cannot change ownership of
> `/home/pg/monplugins/rpmbuild/BUILDROOT/platts-monitoring-plugins-2.0-PG1.el6.x86_64/local/apps/monitoring-plugins-2.0/libexec/check_apt':
> Operation not permitted
>
> make[2]: *** [install-libexecPROGRAMS] Error 1
>
> make[2]: Leaving directory
> `/home/pg/monplugins/rpmbuild/BUILD/monitoring-plugins-2.0/plugins'
>
> make[1]: *** [install-am] Error 2
>
> make[1]: Leaving directory
> `/home/pg/monplugins/rpmbuild/BUILD/monitoring-plugins-2.0/plugins'
>
> make: *** [install-recursive] Error 1
>
> error: Bad exit status from /var/tmp/rpm-tmp.refu88 (%install)
>
>
>
> Looking at the readme thought this was because of the two suid plugins
> dhcp & icmp which I thought about possible removing as do not believe we
> use those anyway but not so sure now having had a look around so need to
> fix that error first.
>
>
>
> I also noticed that later version of the monitoring plugins do not come
> with a spec file so probably good to understand whats going on here anyway
> to help when I get to that point.
>
>
>
> Basically I want to build the rpm as non root but am not an expert with
> rpmbuild so just need a steer on how to tackle it and get rid of the above
> errors and get the bundle compiling and building with rpm when run as any
> user.
>
>
>
> Any help would be much appreciated.
>
>
>
> Kind Regards
>
>
>
> Paul
>
>
> ------------------------------
> The information contained in this message is intended only for the
> recipient, and may be a confidential attorney-client communication or may
> otherwise be privileged and confidential and protected from disclosure. If
> the reader of this message is not the intended recipient, or an employee or
> agent responsible for delivering this message to the intended recipient,
> please be aware that any dissemination or copying of this communication is
> strictly prohibited. If you have received this communication in error,
> please immediately notify us by replying to the message and deleting it
> from your computer. McGraw Hill Financial reserves the right, subject to
> applicable local law, to monitor, review and process the content of any
> electronic message or information sent to or from McGraw Hill Financial
> e-mail addresses without informing the sender or recipient of the message.
> By sending electronic message or information to McGraw Hill Financial
> e-mail addresses you, as the sender, are consenting to McGraw Hill
> Financial processing any of your personal data therein.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20160210/9acd5f7a/attachment.html>


More information about the Help mailing list