Announcement

Collapse
No announcement yet.

: bad interpreter: No such file or directory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • : bad interpreter: No such file or directory

    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

  • #2
    Hello,

    try a dos2unix on the file:
    Code:
    dos2unix install.sh

    Comment


    • #3
      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.

      Comment


      • #4
        Anyone have clue?

        tk

        Comment


        • #5
          /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
          Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
          Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
          Fedora Core 5 - 2.6.20-1.2320

          Comment


          • #6
            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

            Comment


            • #7
              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...
              StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
              Dons Paypal

              Comment


              • #8
                Ok, on php5. I am running FC3 with php4. So still make the above changes?

                tk

                Comment


                • #9
                  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

                  Comment


                  • #10
                    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.

                    Comment


                    • #11
                      Permissions are:
                      drwxrwxr-x nagios:nagios /usr/local/nagios
                      drwxr-xr-x apache:apache /usr/local/oreon

                      tk

                      Comment


                      • #12
                        hello

                        chmod apache:apache /usr/local/oreon
                        chown 775 /usr/local/oreon
                        chmod -R apache:nagios /usr/local/nagios
                        chown 775 /usr/local/nagios
                        StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
                        Dons Paypal

                        Comment


                        • #13
                          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=rootystem_r:httpd_t tcontext=rootbject_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=rootystem_r:httpd_t tcontext=rootbject_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=rootystem_r:httpd_t tcontext=rootbject_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=rootystem_r:httpd_t tcontext=rootbject_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

                          Comment


                          • #14
                            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

                            Comment

                            Working...
                            X