Page 2 of 3

Re: Nagios services configuration from Web UI.

Posted: Thu May 10, 2018 8:53 am
by Ravikimt
I resloved the apache issue and i will try to install the nagiosQL again.
Let's see if what happens.! Please don't close this thread I will check and update you if it works fine.

Re: Nagios services configuration from Web UI.

Posted: Thu May 10, 2018 9:31 am
by tmcdonald
We'll keep this open

Re: Nagios services configuration from Web UI.

Posted: Thu May 10, 2018 11:01 am
by martinQL
Ravikimt wrote:I resloved the apache issue and i will try to install the nagiosQL again.
Let's see if what happens.! Please don't close this thread I will check and update you if it works fine.
Please download version 3.4.0 from here:
https://sourceforge.net/projects/nagiosql/

A documentation can be found here:
https://sourceforge.net/projects/nagios ... mentation/
This has not changed for version 3.4.0.

NagiosQL 3.2.0 is no longer supported.

Re: Nagios services configuration from Web UI.

Posted: Thu May 10, 2018 4:08 pm
by tmcdonald
Thanks for the assist, @martinQL!

Re: Nagios services configuration from Web UI.

Posted: Fri May 11, 2018 5:44 am
by Ravikimt
I have install NagiosQL 3.4.0 with PHP7.0 but I am not able to login via username and password. I don't know which username and password I have to use for login.

I have enabled this configuration on apache2 config file.
************************
Order deny,allow
Deny from all
Allow from 127.0.0.1
AuthName "NagiosQL Access"
AuthType Basic
AuthUserFile /etc/nagiosql/auth/nagiosql.users
Require valid-use
********************
I checked apache error log also it says that.

*******************************************************
[Fri May 11 15:55:46.192744 2018] [auth_basic:error] [pid 25457] [client ::1:58692] AH01618: user nagiosadmin not found: /nagiosql/install/index.php
[Fri May 11 16:01:21.798854 2018] [auth_basic:error] [pid 25458] [client ::1:59284] AH01618: user nagiosadmin not found: /nagiosql/install/index.php
[Fri May 11 16:01:23.595036 2018] [auth_basic:error] [pid 25458] [client ::1:59284] AH01618: user not found: /nagiosql/install/index.php
[Fri May 11 16:01:25.231593 2018] [auth_basic:error] [pid 25458] [client ::1:59284] AH01618: user not found: /nagiosql/install/index.php
[Fri May 11 16:01:26.767988 2018] [auth_basic:error] [pid 25458] [client ::1:59284] AH01618: user not found: /nagiosql/install/index.php
****************************************************

Re: Nagios services configuration from Web UI.

Posted: Fri May 11, 2018 7:07 am
by martinQL
Remove this AuthBasic stuff in your Apache configuration:

AuthName "NagiosQL Access"
AuthType Basic
AuthUserFile /etc/nagiosql/auth/nagiosql.users
Require valid-use


NagiosQL has an internal authentification system and does not need this Apache based variant.

If you still want to use it, you must first create a user with:
htpasswd2 -c /etc/nagiosql/auth/nagiosql.users admin

So you can create an user "admin" with a password given after the command. But there are no advantages in doing so.

Re: Nagios services configuration from Web UI.

Posted: Fri May 11, 2018 2:06 pm
by scottwilkerson
thanks @martinQL

Re: Nagios services configuration from Web UI.

Posted: Mon May 14, 2018 6:40 am
by Ravikimt
I commented these lines from Apache configuration:

AuthName "NagiosQL Access"
AuthType Basic
AuthUserFile /etc/nagiosql/auth/nagiosql.users
Require valid-use


But Now I am getting this error. I want to get rid of this problem please help me.

Forbidden
You don't have permission to access /nagiosql/install/index.php on this server.
Apache/2.4.18 (Ubuntu) Server at localhost Port 80

Re: Nagios services configuration from Web UI.

Posted: Mon May 14, 2018 12:35 pm
by scottwilkerson
Can you share your full httpd conf file for nagiosql because before you also had this in there that would block access

Code: Select all

Order deny,allow
Deny from all
Allow from 127.0.0.1

Re: Nagios services configuration from Web UI.

Posted: Tue May 15, 2018 2:58 am
by Ravikimt
Still I am facing same issue