linux-nrpe-agent Install - Permission Denied

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
peakyblinder
Posts: 63
Joined: Tue Mar 25, 2014 4:39 am

linux-nrpe-agent Install - Permission Denied

Post by peakyblinder »

Hi All,

First time having to install the nrpe agent on a linux server. I "know enough" to get by but this is confusing me somewhat.

I'm trying to install the linux-nrpe-agent on a RedHat server. Following the document it should just be a case of running the 'fullinstall' using something like 'sudo sh fullinstall'.
It runs but then fails with permission denied on;
$ sudo sh fullinstall
fullinstall: line 4: ./init.sh: Permission denied

When the script calls the next script, it keeps failing with permission denied. Doesnt even spit out an install.log
Even if I switch to root (sudo su), it still doesnt work.

I know this is probably pretty simple for someone... any ideas?

Thanks,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: linux-nrpe-agent Install - Permission Denied

Post by scottwilkerson »

Are you installing from a directory that has noexec set on it? some systems are locked down and do not allow executing from directories under /tmp

In this case you would want to move the install directory somewhere else like your users home directory and install from there.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
peakyblinder
Posts: 63
Joined: Tue Mar 25, 2014 4:39 am

Re: linux-nrpe-agent Install - Permission Denied

Post by peakyblinder »

Awesome!! I learn something everyday!

You're correct, running it from my home directory without problems.

Thank you sir!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: linux-nrpe-agent Install - Permission Denied

Post by scottwilkerson »

peakyblinder wrote:Awesome!! I learn something everyday!

You're correct, running it from my home directory without problems.

Thank you sir!
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked