PDA

View Full Version : : bad interpreter: No such file or directory


tlkhorses
01-31-2006, 03:21 AM
I saw this in a search of the forum however it was not in English so couldn't read it.
When running ./install.sh for oreon install I get : bad interpreter: No such file or directory
The install has gone well up to this point. I am using FC3 and the packages that come with up. All packages have been updated.
Any ideas?

tk

templuche
01-31-2006, 09:35 AM
Hello,

try a dos2unix on the file:
dos2unix install.sh

tlkhorses
02-01-2006, 04:45 AM
Thanks, that worked for that thank you very much, but...
after ./install.sh with no errors, I go to the web interface. On the verifying configuration page I get the following:
Writable Oreon Configuration File: not writable
Writable nagios config directory: not writable
writable nagios Plugins Directory: not writeable
writable Directory for creating trafficMap: not writeable.
So to try it out, I chmod -R 777 the /usr/local/nagios/etc/ directory and still get the same warning. ls -l on that shows drwxrwxrwx and looking in that directory the files show -rwxrwxrwx on each of the files.
I cannot locate a oreon.conf.php file.
I dont find a plugins directory for nagios, have to download and install myself? If so, where do they go?
On the trafficMap, I have no clue where that is looking.
Again this is a FC3 install with all updates. I have been following the instructions off of the wiki to do the install. Since those are for debian, I have of course taken that into consideration. Might be nice to have one for FC using yum since I believe most people using FC use yum. Anyway, any help would be appreciated.

tlkhorses
02-03-2006, 03:10 AM
Anyone have clue?

tk

DonKiShoot
02-03-2006, 10:15 AM
/usr/local/oreon i think for chmod :wink:

I dont find a plugins directory for nagios, have to download and install myself? If so, where do they go?
Yes ! /usr/local/nagios/libexec

tlkhorses
02-04-2006, 07:09 AM
ok, did a chmod -R 777 on /usr/local/oreon and on /usr/local/nagios. Still get the not writeable warning on oreon.conf.php, nagios config directory, nagios plugin directory and trafficmap.
DontKiShoot, maybe you could write a step by step tutorial on how you got it to work with FC4, php5?

tk

wistof
02-04-2006, 11:08 AM
try this (be careful, change path and user):

chown -R $WEB_USER:$WEB_USER $INSTALL_DIR_OREON/
chmod -R 775 $INSTALL_DIR_OREON/*
chmod -R 775 $INSTALL_DIR_NAGIOS/


chown -R nagios:nagios $INSTALL_DIR_OREON/rrd
chmod 775 $INSTALL_DIR_OREON/rrd/*

chown -R nagios:nagios $INSTALL_DIR_OREON/include/trafficMap/average
chmod 775 $INSTALL_DIR_OREON/include/trafficMap/average


chown -R $WEB_USER:$WEB_USER $INSTALL_DIR_NAGIOS/etc
chmod 775 $INSTALL_DIR_NAGIOS/etc


chmod 775 $INSTALL_DIR_OREON/nagios_cfg/upload
chown -R $WEB_USER:$WEB_USER $INSTALL_DIR_OREON/nagios_cfg/upload


php5 isn't yet supported...

tlkhorses
02-04-2006, 03:52 PM
Ok, on php5. I am running FC3 with php4. So still make the above changes?

tk

tlkhorses
02-10-2006, 03:41 AM
Ok, I am still stuck at this same not writables. I have re-installed FC3, nagios, and oreon using the latest. In the web setup wizard, I cannot find an oreon.conf.php anywhere. Nagios config and nagios plugins both show drwxrwxr-x apache apache.
Writable directory for traffic map also shows as not writable. Would appreciate help getting this going.

tk

Prometheus
02-10-2006, 01:59 PM
Seems like your oreon directory is not writable for the webserver.
oreon.conf.php not writable means the oreon setup isn't able to create this file.

tlkhorses
02-11-2006, 01:47 AM
Permissions are:
drwxrwxr-x nagios:nagios /usr/local/nagios
drwxr-xr-x apache:apache /usr/local/oreon

tk

wistof
02-11-2006, 08:57 PM
hello

chmod apache:apache /usr/local/oreon
chown 775 /usr/local/oreon
chmod -R apache:nagios /usr/local/nagios
chown 775 /usr/local/nagios

tlkhorses
02-12-2006, 10:39 PM
Ok, did that. Swapped the chmod and chown on each line of the commands.
No change, still get the same not writables.
php version, graphical plugins and php memory limit (after I made the 16M change) all report ok. Others I get the warning.

Here is a copy of /var/log/messages after hitting that oreon setup page:
Feb 12 14:40:50 opti kernel: audit(1139776850.608:50): avc: denied { write } for pid=23354 comm="httpd" name="oreon" dev=dm-0 ino=3115966 scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t tclass=dir
Feb 12 14:40:50 opti kernel: audit(1139776850.609:51): avc: denied { write } for pid=23354 comm="httpd" name="etc" dev=dm-0 ino=3115889 scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t tclass=dir
Feb 12 14:40:50 opti kernel: audit(1139776850.609:52): avc: denied { write } for pid=23354 comm="httpd" name="libexec" dev=dm-0 ino=3115903 scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t tclass=dir
Feb 12 14:40:50 opti kernel: audit(1139776850.609:53): avc: denied { write } for pid=23354 comm="httpd" name="png" dev=dm-0 ino=3116302 scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t tclass=dir

Guess my next question would be if oreon setup.php is looking in the correct place in FC3 for those? I am not a php programmer so don't really know.

tk

tlkhorses
02-14-2006, 08:04 AM
Thanks to a very good friend of mine, seems this was an selinux problem. Changing to disable selinux protection of httpd fixed the not writeable problems.

tk