[op5-users] Ninja problem
Per Åsberg
perasb at op5.com
Thu Sep 24 08:47:08 CEST 2009
Pierguido Lambri wrote:
> Hi.
> Today i decided to update my ninja and merlin installation.
> Merlin went fine, but ninja got some problems.
> When i try to update the users in the database i get this errors:
>
> [root at nagios3 install_scripts]# ./ninja_db_init.sh /etc/nagios/addons/ninja
> Installing database tables for Ninja GUI
> Importing users from cgi.cfg
> grep: /opt/monitor/op5/merlin/import.php: No such file or directory
> grep: /opt/monitor/op5/merlin/import.php: No such file or directory
> grep: /opt/monitor/op5/merlin/import.php: No such file or directory
> grep: /opt/monitor/op5/merlin/import.php: No such file or directory
> grep: /opt/monitor/op5/merlin/import.php: No such file or directory
> ERROR: Unable to connect to database - some information is missing
>
> I gave a look around in the code but i don't find anything helpful.
> Thanks you
Actually, you shouldn't have to use that script since the nagios user
information should be synced to Ninja each time a successful logon is made.
If you would like to run this script anyway, have a look at $merlin_path and
$nagios_cfg_path in ninja/install_scripts/auth_import_mysql.php at line 29 and 30.
Modify these paths according to your installation.
This script needs to know where merlin is installed and where the nagios cfg
files are located.
We will modify the script in the future to make it work on a default nagios
installation. Today these paths are hard-coded to make it work in our
environment during installation.
Thank you again for reporting this.
Regards,
/Per
---------------
Per Asberg
Senior Developer
www.op5.com
More information about the op5-users
mailing list