Menu

nagiosql 3.4.0 installation issues

shai
2018-05-08
2024-05-21
  • shai

    shai - 2018-05-08

    hi martin,

    first of all i would like to thank you for making and maintaining this project.
    i have installed the latest 3.4.0 today , moved from ver 3.3 . after a success installation upgrade process , it gives me HTTP ERROR 500
    instead of give me the login page.

    my enviroment:
    centos 7.4.1708 (Core)
    php version:7.0.29
    mysql: 5.5.56-MariaDB

    nagiosql paths:

    /usr/local/nagiosql
    /var/www/html/nagiosql

    all permissions are correct and i have checked it against the old installation that worked fine.

    please let me know if i should i use the new ticket system instead of posting topics

     
  • Martin

    Martin - 2018-05-08

    Please have a look in your apache logfiles and post any error messages here. HTTP 500 are webserver internal errors, so the logs should say something.

     
  • shai

    shai - 2018-05-08
    [Tue May 08 23:27:00.101336 2018] [:error] [pid 17692] [client 13.0.0.41:57027] PHP Warning:  require_once(PEAR.php): failed to open stream: No such file or directory in /var/www/html/nagiosql/libraries/pear/HTML/Template/IT.php on line 31
    [Tue May 08 23:27:00.101378 2018] [:error] [pid 17692] [client 13.0.0.41:57027] PHP Fatal error:  require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/nagiosql/libraries/pear/HTML/Template/IT.php on line 31
    
     
  • shai

    shai - 2018-05-08

    solved the problem , thanks for advice to search in the apache log file...
    it was missing php-pear module... (:

    but now i have a problem open hosts section

    error log file show:
    [Tue May 08 23:40:11.514507 2018] [:error] [pid 24195] [client 13.0.0.41:57114] PHP Parse error: syntax error, unexpected '$prePageId' (T_VARIABLE) in /var/www/html/nagiosql/admin/hosts.php on line 24, referer: http://10.0.0.10/nagiosql/admin/services.php

     

    Last edit: shai 2018-05-08
  • Martin

    Martin - 2018-05-09

    There was a bug in hosts.php that was fixed on May 7th.
    https://gitlab.com/wizonet/nagiosql/commit/2107512dabb8c49e53bc08137ecafa1cf9b2cd14

    Please download 3.4.0 again from here, the files on sourceforge were updated. There is no need to run the installer again when you just upgraded to 3.4.0. It's a simple replacement of files.

     
    • shai

      shai - 2018-05-09

      yes , now its working (:
      thank you.

       
  • shai

    shai - 2021-02-25

    hi martin,

    i have same issue as before on a new installation of nagiosql-3.4.1
    i get error 500 when i enter /nagiosql web page.
    my enviroment:
    centos 8.3.2011
    php version:8.0.2
    mysql: 10.3.27-MariaDB

    nagiosql paths:

    /usr/local/nagiosql
    /var/www/html/nagiosql

    all permissions are correct and i have checked it against the old installation that worked fine.
    also , no error in apache error_log
    i have checkd php-pear install - maybe i have missed somthing else?

    p.s
    i see this eror in the php-fpm/www-error.log
    PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/html/nagiosql/libraries/pear/HTML/Template/IT.php on line 1077

     

    Last edit: shai 2021-02-25
  • Martin

    Martin - 2021-02-26

    You can change $filename{0} to $filename[0] on line 1077. That's an old third party library with some issues in new php versions. I will update it in my next GIT update.

    HTTP 500 is an internal server error. Centos uses an SELinux extension that sometimes has such side effects. Is there an SELinux logfile, that shows some more information about access errors?

    PHP 8 has not yet been tested with NagiosQL - so I can't guarantee the function for now.

     
  • shai

    shai - 2021-02-28

    tested again on centos 8.3 , this time i stayed in the default php version for centos 8 , which is 7.2
    seems to work ok now.
    thanks again for your help.

     
  • shai

    shai - 2022-07-28

    hi martin .
    is there any plan in the near future for supporting php 8?

     
  • Martin

    Martin - 2023-01-16

    NagiosQL 3.5 is almost finished. Probably we need some beta testers to check the application. It was developped based on PHP8.2 - so we recommend to use at least PHP8.0 but it work with PHP7.2 too.

     
  • Vinicius Sales Leite

    Good morning guys.

    I'm having some problems with NAGIOSQL for monitoring printers and computers.

    I have installed and configured NAGIOS CORE but it is very complicated to manage, especially changing printers that change IP, serial number, etc., so I decided to install NAGIOSQL to help me with this task, after learning a little I managed to get the interface working However, now I'm having some problems that I'll report below:

    When trying to import any configuration from NAGIOS CORE the screen crashes and the file is not imported into NAGIOSQL (PHOTO1)

    In the Administrations --> Support menu, the following errors appear, which I honestly don't know if is "normal" (PHOTO2)

    In the Tools--> Nagios Control menu, the Check configuration files buttons give the following error (PHOTO3)

    on the Restart Nagios button another error (PHOTO4).

    If anyone can help me in these cases I would be immensely grateful.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.