Results 1 to 4 of 4

Thread: Nor nagios nor cacti working with leap 15 and apache2. index.php is not read

  1. #1
    Join Date
    Sep 2008
    Location
    Argentina
    Posts
    145

    Default Nor nagios nor cacti working with leap 15 and apache2. index.php is not read

    Anyone using nagios or cacti on leap 15?
    I installed leap 15 version nagios-4.3.4 and cacti-1.1.38 with apache2-2.4.33 and apache2-mod_php7-7.2.5 modules.
    I cannot access nor nagios nor cacti over web interface.
    Both give the same error:
    Code:
    Access forbidden!
    
                You don't have permission to access the requested directory.     There is either no index document or the directory is read-protected.      
      If you think this is a server error, please contact the webmaster.  
      Error 403
    
        localhost
      Apache
    If I put an index.html file in the corresponding directory it is found and displayed.
    So it seems that index.php file is not read which is used in nagios and cacti?
    Have is missed to configure so additional stuff?

    I'm using original apache config files for both applications in /etc/apache2/conf.d

    I've read about the directive
    DirectoryIndex index.html index.php
    but this is only defined in nagios if KOHANA2 is defined...
    In cacti apache config file nothing...

    Any hints?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,382
    Blog Entries
    1

    Default Re: Nor nagios nor cacti working with leap 15 and apache2. index.php is not read

    Is PHP installed on your host?
    openSUSE Leap 15.0; KDE Plasma 5

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,382
    Blog Entries
    1

    Default Re: Nor nagios nor cacti working with leap 15 and apache2. index.php is not read

    In case this is relevant to you...
    Create nagiosadmin User Account

    You'll need to create an Apache user account to be able to log into Nagios.
    The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
    sudo htpasswd2 -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
    Test Nagios

    Nagios is now running, to confirm this you need to log into the Nagios Web Interface.
    Point your web browser to the ip address or FQDN of your Nagios Core server, for example:
    http://10.25.5.143/nagios
    http://core-013.domain.local/nagios
    You will be prompted for a username and password. The username is nagiosadmin (you created it in a previous step) and the password is what you provided earlier.
    Once you have logged in you are presented with the Nagios interface. Congratulations you have installed Nagios Core.
    https://support.nagios.com/kb/article.php?id=96#SUSE
    Last edited by deano_ferrari; 01-Jul-2018 at 20:15.
    openSUSE Leap 15.0; KDE Plasma 5

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,289
    Blog Entries
    2

    Default Re: Nor nagios nor cacti working with leap 15 and apache2. index.php is not read

    Sounds like you didn't install nagios from the OSS.
    Any reason why you didn't install from the OSS?

    I just did a brief install, and aside from not creating a nagiosadmin account, it looks like everything should work (When you connect to the nagios website, you're challenged for a username/password).

    Note that nagios config file locations may be different than your documentation.

    BTW - Any reason why you are choosing to run nagios, and not one of the many other apps that try to improve on nagios itself?

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •