Nagiosql 321 error please help

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.
Locked
musman
Posts: 6
Joined: Fri Jun 24, 2016 4:53 am

Nagiosql 321 error please help

Post by musman »

NagiosQL Installation: Finishing Setup
Create new NagiosQL database

Connot open/write to config/settings.php
Database server connection (privileged user) passed
Database server version 5.5.47-MariaDB
Database server support supported
Delete existing NagiosQL database done (db_nagiosql_v32)
Creating new database done (db_nagiosql_v32)
Create NagiosQL database user done (Only added rights to existing user: nagiosql_user)
Installing NagiosQL database tables done
Set initial NagiosQL Administrator done
Database server connection (NagiosQL user) passed

Deploy NagiosQL settings
Writing global settings to database done
Writing database configuration to settings.php failed
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagiosql 321 error please help

Post by mcapra »

Are you following a specific guide to install NagiosQL?

Can you share the output of the following command:

Code: Select all

ls -al /<path to nagiosql>/config
On the Core Pro VM, the exact path is /var/www/html/nagiosql/config. This may not be the same path on your machine depending on how you configured NagiosQL.

It is likely that you need to change the permissions of the file mentioned in the error text (nagiosql/config/settings.php) so that your apache user can write to the file.
Former Nagios employee
https://www.mcapra.com/
musman
Posts: 6
Joined: Fri Jun 24, 2016 4:53 am

Re: Nagiosql 321 error please help

Post by musman »

The problem solved but now another problem arised. Whenever i add a host in nagiosql it is not showing in nagios core. Why is that?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagiosql 321 error please help

Post by tmcdonald »

This is something you will need to ask of the NagiosQL developers. It is not our product and we don't provide direct support for it, so it's hard to say what could cause this since we don't use it. We do offer a Core Pro VM that we support, but you would need to use that and run your configs through it for us to support this.
Former Nagios employee
musman
Posts: 6
Joined: Fri Jun 24, 2016 4:53 am

Re: Nagiosql 321 error please help

Post by musman »

How to use it does it involves some cost?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagiosql 321 error please help

Post by tmcdonald »

You can check the pricing here:

https://www.nagios.org/downloads/nagios-core/

Paid support is optional (but included in the Business plan), but even without paid support we can still assist, there is just no guaranteed SLA attached.
Former Nagios employee
Locked