Menu

#6 NaWui Configuration settings Does Not Create config.inc

0.1.5-devel
open
5
2003-11-24
2003-10-31
No

I have nagios 1.1 installed, configured, and running.
The directory tree is a follows:

/opt/hpws/nagios
bin <---- nagios executable.
libexec <---- nagios plugins.
share <---- nagios home.
var <---- nagios var.
etc <---- nagios *.cfg files.
sbin <---- nagios *.cgi files.

Nagios is configured for user and group as follows:
User Name: nagios
Group Name: nagios

Apache is configured for user and groups as follows:
User Name: www
Group Name: other nagios

Nawui installed and running in the following location:
/opt/hpws/nawui

I am able to connect to the nawui website using
http://myservername/nawui . This brings up the
setup.php script (i.e. NaWui Configuration settings)
however, when populated with my configuration
information. The NaWui Configuration settings are not
stored in the /opt/hpws/nawui/includes directory and
the screen returns back to the original (default) settings.
I have checked Apache's error_log and access_log for
any errors and there are none.

How do I setup nawui in order to administer nagios?

Discussion

  • Hugo Monteiro

    Hugo Monteiro - 2003-11-24

    Logged In: YES
    user_id=12156

    Try to create that file first, with write permissions to the
    webserver where nawui is runing.

    I will start to fix bug issues very soon.

    Thanks for your post.

     
  • Hugo Monteiro

    Hugo Monteiro - 2003-11-24
    • milestone: --> 0.1.5-devel
    • assigned_to: nobody --> hvm_pt
     
  • Rivanor Soares

    Rivanor Soares - 2003-12-09

    Logged In: YES
    user_id=812688

    I did what you (hvm_pt) suggested. But it doesn't work anyway.

    First I created a file in '/var/www/html/nawui/includes',
    called 'config.inc' with the right permissions set to the
    webserver. And the error page told me:

    Please edit 'nagios_etc' in includes/config.inc to point to
    your Nagios configuration directory.
    Please edit 'nagios_etc' in includes/config.inc to point to
    your Nagios configuration directory.

    (in 2 frames)

    What can it be?

     
  • Rivanor Soares

    Rivanor Soares - 2003-12-09

    Logged In: YES
    user_id=812688

    I did what you (hvm_pt) suggested. But it doesn't work anyway.

    First I created a file in '/var/www/html/nawui/includes',
    called 'config.inc' with the right permissions set to the
    webserver. And the error page told me:

    Please edit 'nagios_etc' in includes/config.inc to point to
    your Nagios configuration directory.
    Please edit 'nagios_etc' in includes/config.inc to point to
    your Nagios configuration directory.

    (in 2 frames)

    What can it be?

     
  • Matthew Wilson

    Matthew Wilson - 2004-01-25

    Logged In: YES
    user_id=959906

    I had the same problem. It appears that setup.php doesn't
    even try to write the file, as no error is produced.
    However nawuicfg.php works fine. I generated my own
    config.inc which solved the problem

     
  • Harald Holzer

    Harald Holzer - 2004-04-14

    Logged In: YES
    user_id=19727

    Set register_globals = On in /etc/php.ini.

     
  • Werner Flamme

    Werner Flamme - 2005-01-25

    Logged In: YES
    user_id=1037018

    I looked at the 2nd function in includes/functions.inc.php
    and found all the entries nawui seems to expect. I copied
    them to a temp file and removed all the php coding, the rest
    ;-) was moved to config.inc.

    Well, so I entered "http://localhost/nawui" and I am not
    longer greeted with the setup screen but with the contents
    of config.inc.

    This is surely not what I expected 8-( Does one really have
    to recode the whole project before it starts working?

     
  • Jason

    Jason - 2005-03-17

    Logged In: YES
    user_id=704863

    Set register_globals = On in /etc/php.ini

    That worked, or at least moved on to the next problem!

    Thanks ***

     

Log in to post a comment.