I'm trying to get Nagios agent installed on RHEL 5.5 following the instructions here http://assets.nagios.com/downloads/nagi ... _Agent.pdf. I get as far as "./fullinstall" when I get this error:
I'm su'd in as root, so it can't be a permissions thing. "sh" exists in /bin/sh... I can "sh" and change shells. If I try to run the script as such, I get more errors:[root@server linux-nrpe-agent]# ./fullinstall
bash: ./fullinstall: /bin/sh: bad interpreter: Permission denied
To be fair, this is a server spun up on an external host that we're taking over monitoring for, so I'm not 100% sure its history, and I'm more familiar with Ubuntu than RHEL. What can I check to get this going?[root@server linux-nrpe-agent]# sh fullinstall
fullinstall: ./init.sh: /bin/sh: bad interpreter: Permission denied
Your system $PATH does not include /sbin and /usr/sbin. This is usually the result of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
=================================================
Nagios Linux Agent Installer for Red Hat & CentOS
=================================================
This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.
IMPORTANT: This script should only be used on a Red Hat or CentOS
system. Do NOT use this on a system running any other
distro or that does not allow additional package installation.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Running './0-yum'...
fullinstall: ./0-yum: /bin/sh: bad interpreter: Permission denied
RESULT=126
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './0-yum'
Thanks!