Nagios services configuration from Web UI.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

Re: Nagios services configuration from Web UI.

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios services configuration from Web UI.

Post by tmcdonald »

We'll keep this open
Former Nagios employee
martinQL
Posts: 10
Joined: Wed Apr 25, 2018 4:22 am

Re: Nagios services configuration from Web UI.

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios services configuration from Web UI.

Post by tmcdonald »

Thanks for the assist, @martinQL!
Former Nagios employee
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

Re: Nagios services configuration from Web UI.

Post 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
****************************************************
martinQL
Posts: 10
Joined: Wed Apr 25, 2018 4:22 am

Re: Nagios services configuration from Web UI.

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios services configuration from Web UI.

Post by scottwilkerson »

thanks @martinQL
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

Re: Nagios services configuration from Web UI.

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios services configuration from Web UI.

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

Re: Nagios services configuration from Web UI.

Post by Ravikimt »

Still I am facing same issue
Locked