Page 2 of 2

Re: Upgrade NagiosXI from 5.4.6 to 5.4.7 Failed

Posted: Tue Aug 01, 2017 5:48 am
by duhd
tgriep wrote:Lets but back the php.conf file back to it's default settings and see if that fixes the issue.
Edit this file
/etc/httpd/conf.d/php.conf

And put back the contents back to the following.
I was put back the contents that, but not work.

Re: Upgrade NagiosXI from 5.4.6 to 5.4.7 Failed

Posted: Tue Aug 01, 2017 9:30 am
by tgriep
Lets try this, edit the /etc/php.ini file and change this line from

Code: Select all

upload_max_filesize = 2M
to

Code: Select all

upload_max_filesize = 10M
Save the file and restart Apache by running
service httpd restart

Then try the manual upgrade procedure and it is fails, post the error message as well as the upgrade.log file.
And, post the output of this command as well.

Code: Select all

ls -l /tmp/nagiosxi/nagiosxi/basedir/html/includes/

Re: Upgrade NagiosXI from 5.4.6 to 5.4.7 Failed

Posted: Wed Aug 02, 2017 12:24 am
by duhd
upload_max_filesize = 10M
Manual upgrade procedure and it was fails

the upgrade.log file:

Code: Select all

Archive:  sourceguardian/ixed4.lin.x86-64.zip
  inflating: /usr/lib64/php/modules/ixed.5.6.lin  
Sourceguardian extension found for PHP version 5.6
Sourceguardian extension already in php.ini
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
error message:

Code: Select all

PHP Fatal error:  Allowed memory size of 4294967296 bytes exhausted (tried to allocate 4294902125 bytes) in /tmp/nagiosxi/nagiosxi/basedir/html/includes/dbl.inc.php on line 2
ls -l /tmp/nagiosxi/nagiosxi/basedir/html/includes/

Code: Select all

[root@nagios nagiosxi]# ls -l /tmp/nagiosxi/nagiosxi/basedir/html/includes/
total 3636
-rwxr-xr-x  1 root root   5980 Jul 10 22:54 auth.inc.php
-rwxr-xr-x  1 root root    807 Jul 10 22:54 common.inc.php
drwxr-xr-x 59 root root   4096 Jul 10 22:54 components
-rwxr-xr-x  1 root root   1060 Jul 10 22:54 components.inc.php
drwxr-xr-x 62 root root   4096 Jul 10 22:54 configwizards
-rwxr-xr-x  1 root root    619 Jul 10 22:54 configwizards.inc.php
-rwxr-xr-x  1 root root  21991 Jul 10 22:54 constants.inc.php
-rwxr-xr-x  1 root root  24962 Jul 10 22:54 constants-nagioscore.inc.php
drwxr-xr-x  3 root root   4096 Jul 10 22:54 css
drwxr-xr-x 10 root root   4096 Jul 10 22:54 dashlets
-rwxr-xr-x  1 root root    680 Jul 10 22:54 dashlets.inc.php
-rwxr-xr-x  1 root root 315257 Jul 10 22:54 dbauth.inc.php
-rwxr-xr-x  1 root root  16234 Jul 10 22:54 db.inc.php
-rwxr-xr-x  1 root root 133733 Jul 10 22:54 dbl.inc.php
-rwxr-xr-x  1 root root    763 Jul 10 22:54 errors.inc.php
drwxr-xr-x  2 root root   4096 Jul 10 22:54 fonts
-rwxr-xr-x  1 root root     56 Jul 10 22:54 footer-child.inc.php
-rwxr-xr-x  1 root root   7409 Jul 10 22:54 footer.inc.php
drwxr-xr-x  5 root root   4096 Jul 10 22:54 fpdf
-rwxr-xr-x  1 root root    564 Jul 10 22:54 header-child.inc.php
-rwxr-xr-x  1 root root  20209 Jul 10 22:54 header.inc.php
drwxr-xr-x  6 root root   4096 Jul 10 22:54 js
drwxr-xr-x  3 root root   4096 Jul 10 22:54 lang
-rwxr-xr-x  1 root root    163 Jul 10 22:54 notificationmethods.inc.php
-rw-r--r--  1 root root  17905 Jul 10 22:54 page-default-splash.php
-rwxr-xr-x  1 root root   2428 Jul 10 22:54 page-home-main.php
-rwxr-xr-x  1 root root    824 Jul 10 22:54 page-home.php
-rwxr-xr-x  1 root root    835 Jul 10 22:54 page-missing.php
-rwxr-xr-x  1 root root  31246 Jul 10 22:54 pageparts.inc.php
drwxr-xr-x  2 root root   4096 Jul 10 22:54 phpmailer
-rwxr-xr-x  1 root root   3495 Jul 10 22:54 utils-auditlog.inc.php
-rwxr-xr-x  1 root root  80645 Jul 10 22:54 utils-backend.inc.php
-rwxr-xr-x  1 root root  13373 Jul 10 22:54 utils-ccm.inc.php
-rwxr-xr-x  1 root root  40313 Jul 10 22:54 utils-commands.inc.php
-rwxr-xr-x  1 root root   3797 Jul 10 22:54 utils-components.inc.php
-rwxr-xr-x  1 root root  12064 Jul 10 22:54 utils-configwizards.inc.php
-rwxr-xr-x  1 root root 177657 Jul 10 22:54 utils-dashboards.inc.php
-rwxr-xr-x  1 root root 143621 Jul 10 22:54 utils-dashlets.inc.php
-rwxr-xr-x  1 root root   6408 Jul 10 22:54 utils-email.inc.php
-rwxr-xr-x  1 root root  27577 Jul 10 22:54 utils-events.inc.php
-rwxr-xr-x  1 root root   2036 Jul 10 22:54 utils-graphtemplates.inc.php
-rwxr-xr-x  1 root root  38115 Jul 10 22:54 utils.inc.php
-rw-r--r--  1 root root 253049 Jul 10 22:54 utilsl-data.inc.php
-rw-r--r--  1 root root 215909 Jul 10 22:54 utilsl-helpers.inc.php
-rwxr-xr-x  1 root root 751601 Jul 10 22:54 utilsl.inc.php
-rwxr-xr-x  1 root root   9328 Jul 10 22:54 utils-links.inc.php
-rw-r--r--  1 root root 109189 Jul 10 22:54 utils-macros.inc.php
-rwxr-xr-x  1 root root  75864 Jul 10 22:54 utils-menu.inc.php
-rwxr-xr-x  1 root root  27445 Jul 10 22:54 utils-metrics.inc.php
-rwxr-xr-x  1 root root   1998 Jul 10 22:54 utils-mibs.inc.php
-rwxr-xr-x  1 root root 321457 Jul 10 22:54 utils-nagioscore.inc.php
-rwxr-xr-x  1 root root   2080 Jul 10 22:54 utils-notificationmethods.inc.php
-rwxr-xr-x  1 root root 148921 Jul 10 22:54 utils-notifications.inc.php
-rwxr-xr-x  1 root root  38661 Jul 10 22:54 utils-objects.inc.php
-rwxr-xr-x  1 root root   2442 Jul 10 22:54 utils-perms.inc.php
-rwxr-xr-x  1 root root   4333 Jul 10 22:54 utils-reports-export.inc.php
-rwxr-xr-x  1 root root  45445 Jul 10 22:54 utils-reports.inc.php
-rw-r--r--  1 root root   6099 Jul 10 22:54 utils-rrdexport.inc.php
-rw-r--r--  1 root root   1392 Jul 10 22:54 utils-rss.inc.php
-rwxr-xr-x  1 root root   5473 Jul 10 22:54 utils-status.inc.php
-rwxr-xr-x  1 root root   2379 Jul 10 22:54 utils-systat.inc.php
-rwxr-xr-x  1 root root  14349 Jul 10 22:54 utils-tables.inc.php
-rwxr-xr-x  1 root root    726 Jul 10 22:54 utils-themes.inc.php
-rw-r--r--  1 root root   9954 Jul 10 22:54 utils-time.inc.php
-rwxr-xr-x  1 root root   4340 Jul 10 22:54 utils-tools.inc.php
-rwxr-xr-x  1 root root  45017 Jul 10 22:54 utils-updatecheck.inc.php
-rwxr-xr-x  1 root root  31613 Jul 10 22:54 utils-users.inc.php
-rwxr-xr-x  1 root root  48121 Jul 10 22:54 utils-views.inc.php
-rwxr-xr-x  1 root root   6705 Jul 10 22:54 utils-wizards.inc.php
-rwxr-xr-x  1 root root  17899 Jul 10 22:54 utilsx.inc.php
-rwxr-xr-x  1 root root  34326 Jul 10 22:54 utilsx-json.php
-rwxr-xr-x  1 root root   4364 Jul 10 22:54 utils-xmlauditlog.inc.php
-rwxr-xr-x  1 root root  37057 Jul 10 22:54 utils-xmlobjects.inc.php
-rwxr-xr-x  1 root root  33960 Jul 10 22:54 utils-xmlreports.inc.php
-rwxr-xr-x  1 root root  62752 Jul 10 22:54 utils-xmlstatus.inc.php
-rwxr-xr-x  1 root root   7753 Jul 10 22:54 utils-xmlsysstat.inc.php
-rwxr-xr-x  1 root root   1947 Jul 10 22:54 utils-xmlusers.inc.php

Re: Upgrade NagiosXI from 5.4.6 to 5.4.7 Failed

Posted: Wed Aug 02, 2017 12:20 pm
by tgriep
I am thinking that the issue withthe version of PHP that is installed on the server.
It looks fairly new.
Can you run the following and post the output so I can see where that version came from?

Code: Select all

yum list installed |grep php

Re: Upgrade NagiosXI from 5.4.6 to 5.4.7 Failed

Posted: Thu Aug 03, 2017 10:01 pm
by duhd
tgriep wrote:I am thinking that the issue withthe version of PHP that is installed on the server.
It looks fairly new.
Can you run the following and post the output so I can see where that version came from?

Code: Select all

yum list installed |grep php
It here:

Code: Select all

[root@nagios ~]# yum list installed |grep php
graphviz-lang-php.x86_64              2.40.20161221.0239-1.el6  @graphviz-stable
php.x86_64                            5.6.31-1.el6.remi         @remi-php56     
php-cli.x86_64                        5.6.31-1.el6.remi         @remi-php56     
php-common.x86_64                     5.6.31-1.el6.remi         @remi-php56     
php-gd.x86_64                         5.6.31-1.el6.remi         @remi-php56     
php-ldap.x86_64                       5.6.31-1.el6.remi         @remi-php56     
php-mbstring.x86_64                   5.6.31-1.el6.remi         @remi-php56     
php-mcrypt.x86_64                     5.6.31-1.el6.remi         @remi-php56     
php-mssql.x86_64                      5.6.31-1.el6.remi         @remi-php56     
php-mysqlnd.x86_64                    5.6.31-1.el6.remi         @remi-php56     
php-pdo.x86_64                        5.6.31-1.el6.remi         @remi-php56     
php-pear.noarch                       1:1.10.5-2.el6.remi       @remi           
php-pear-HTML-Template-IT.noarch      1.3.0-8.el6.remi          @remi           
php-pecl-jsonc.x86_64                 1.3.10-2.el6.remi.5.6     @remi-php56     
php-pecl-ssh2.x86_64                  0.13-3.el6.remi.5.6       @remi-php56     
php-pecl-zip.x86_64                   1.14.0-1.el6.remi.5.6     @remi-php56     
php-pgsql.x86_64                      5.6.31-1.el6.remi         @remi-php56     
php-process.x86_64                    5.6.31-1.el6.remi         @remi-php56     
php-snmp.x86_64                       5.6.31-1.el6.remi         @remi-php56     
php-soap.x86_64                       5.6.31-1.el6.remi         @remi-php56     
php-xml.x86_64                        5.6.31-1.el6.remi         @remi-php56 

Re: Upgrade NagiosXI from 5.4.6 to 5.4.7 Failed

Posted: Fri Aug 04, 2017 11:42 am
by tgriep
Thanks for the data.
The remi-php56 repository we have found is not compatible with Nagios XI so you will have to remove it, disable that repo and go back to the Base install of PHP to upgrade the system.

Re: Upgrade NagiosXI from 5.4.6 to 5.4.7 Failed

Posted: Thu Aug 10, 2017 2:42 am
by duhd
tgriep wrote:Thanks for the data.
The remi-php56 repository we have found is not compatible with Nagios XI so you will have to remove it, disable that repo and go back to the Base install of PHP to upgrade the system.
So, I update to remi-php71, do have compatibale with Nagios XI?

Re: Upgrade NagiosXI from 5.4.6 to 5.4.7 Failed

Posted: Thu Aug 10, 2017 11:08 am
by scottwilkerson
duhd wrote:
tgriep wrote:Thanks for the data.
The remi-php56 repository we have found is not compatible with Nagios XI so you will have to remove it, disable that repo and go back to the Base install of PHP to upgrade the system.
So, I update to remi-php71, do have compatibale with Nagios XI?
As of present we can only confirm compatibility with 5.6.x