PHP Version 7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

PHP Version 7

Post by SteveBeauchemin »

Does Nagios XI work properly on Red Hat 7 upgraded to use PHP 7?

Please advise...

Thanks

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: PHP Version 7

Post by dwhitfield »

No. We are still working on the mysql connection. This has been a hot topic recently. If you are able to get it to work, your steps would be hugely appreciated.

The sourceguardian of things is ready to go for PHP7 in the latest version, so it will just take the right person with the development/admin skills to make it happen. Since Red Hat backports security fixes, it's not a particularly high priority at the moment. If there's a CVE Red Hat is not patching for whatever reason, please let us know and we can prioritize getting XI working with PHP 7.
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: PHP Version 7

Post by SteveBeauchemin »

I converted to php 7 on my home server. Centos 7. And guess what - I found that my web application stopped working properly because of the syntax used to interact with mysql. Once I changed the syntax, the code started working again. So I have lived thru this.

I'll dig that information up when I get home tonight and provide my notes tomorrow.

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: PHP Version 7

Post by dwhitfield »

SteveBeauchemin wrote: I'll dig that information up when I get home tonight and provide my notes tomorrow.
Thanks!
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: PHP Version 7

Post by jomann »

Currently we resolved two problems with PHP 7+ and deprecated functions. Some were removed in 5.4.8 in order to make XI work in general and there were some more removed functions that were used by the CCM that we removed in 5.4.9 (which isn't out yet) but we are in the process of making it work with PHP 7+ although we recommend using the default system's PHP version if possible.

It also looks like the pear module, /usr/share/pear/HTML/Template/IT.php requires an update on line 1091 (you may need to run pear install HTML_Template_IT)

Code: Select all

return preg_replace_callback(
            "#<!-- INCLUDE (.*) -->#im",
            function ($m) { $this->getFile($m[1]); },
            $content
        );
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked