Menu

NagiosQL 3.4.0 in development

Martin
2018-04-06
2018-05-03
  • Martin

    Martin - 2018-04-06

    Currently I am working on the development of NagiosQL 3.4.0. It will be a complete reworking of version 3.3.0.

    The new version follows the PSR1/PSR2 standards and will also fully support PHP 7.2

    Additionally a complete support of Nagios 4.x is planned - whether directly with 3.4.0 or a following minor version is not yet defined.

     
  • Petr M.

    Petr M. - 2018-05-02

    Hello,
    today I tried to upgrade my current environment which running on 3.3.0 to 3.4.0 but the new version does not work for me. web page install/install.php ends with http error 500 without any other info.
    I´am running on latest stable Debian with PHP Version 7.0.27-0+deb9u1 and DB 10.1.26-MariaDB-0+deb9u1.

    Could you please help me?
    Thanks, regards,
    Petr

     
  • Martin

    Martin - 2018-05-02

    HTTP 500 errors are webserver internal errors. It is impossible to find out the reason without more information.

    Can you check if there are some incorrect permission on any NagiosQL files inside the whole directory? Files that are not accessible by the webserver?

    Have you extract the new version into a blank directory and then copy the settings.php from your old NagiosQL directory to the new one?

    Are there some more informations inside the webserver logs (general error log - vhost error log)?

     
  • Petr M.

    Petr M. - 2018-05-02

    Hello Martin,
    I deleted all files from old folder /usr/local/nagiosql/, then I copied new 3.4.0 files and then I copied the settings.php from 3.3.0.

    There are these errors in apache log:

    [Wed May 02 13:56:23.904059 2018] [:error] [pid 29398] [client 172.30.1.3:54482] PHP Warning: require(/usr/local/nagios/share/nagiosql/install/functions/prepend_install.php): failed to open stream: No such file or directory in /usr/local/nagiosql/install/index.php on line 36
    [Wed May 02 13:56:23.904147 2018] [:error] [pid 29398] [client 172.30.1.3:54482] PHP Fatal error: require(): Failed opening required '/usr/local/nagios/share/nagiosql/install/functions/prepend_install.php' (include_path='.:/usr/share/php') in /usr/local/nagiosql/install/index.php on line 36

    It seems that prepend_install.php is requested from /usr/local/nagios/share/nagiosql/install/functions/ but I have installed NagiosQL in /usr/local/nagiosql/ instead of /usr/local/nagios/share/nagiosql/

    Petr

     
  • Martin

    Martin - 2018-05-02

    Can you post your Apache configuration? Do you have some Alias or other rewriting rules in it?

    Normally NagiosQL reads the servers DOCUMENT_ROOT variable to find out its install path. It looks like your DOCUMENT_ROOT variable contains /usr/local/nagios/share/nagiosql/ instead of /usr/local/nagiosql/ and I do not see the reason now.

     
  • Martin

    Martin - 2018-05-02

    I have now uploaded a hotfixed version that should also work with alias installations. Please check again.

     
  • Petr M.

    Petr M. - 2018-05-03

    Hello Martin,
    the updated installation pack works fine. Now I´am on 3.4.0 without any issues.

    Thanks for your quick support. Have a nice day.
    Regards,
    Petr

     

Log in to post a comment.