New problem after PHP upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

New problem after PHP upgrade

Post by vAJ »

Guys,

I've found a problem on my instance that I tested the PHP upgrade on.

When trying to access the CCM, I get HTTP 500. Get the same for legacy ccm.

error_log shows:

Code: Select all

[Mon Jul 01 14:44:44 2013] [error] [client 10.20.44.18] PHP Warning:  require_on                    ce(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or                     directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.                    inc.php on line 51, referer: https://vnagios.-------.com/nagiosxi/includes/                    components/ccm/xi-index.php
[Mon Jul 01 14:44:44 2013] [error] [client 10.20.44.18] PHP Fatal error:  requir                    e_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (includ                    e_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/                    components/ccm/includes/session.inc.php on line 51, referer: https://vnagios.--------.com/nagiosxi/includes/components/ccm/xi-index.php
[Mon Jul 01 14:44:48 2013] [error] [client 10.20.44.18] PHP Warning:  require_on                    ce(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or                     directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.                    inc.php on line 51, referer: https://vnagios.--------.com/nagiosxi/includes/                    components/ccm/xi-index.php
[Mon Jul 01 14:44:48 2013] [error] [client 10.20.44.18] PHP Fatal error:  requir                    e_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (includ                    e_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/                    components/ccm/includes/session.inc.php on line 51, referer: https://vnagios.--------.com/nagiosxi/includes/components/ccm/xi-index.php
[Mon Jul 01 14:44:49 2013] [error] [client 10.20.44.18] PHP Warning:  require_on                    ce(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or                     directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.                    inc.php on line 51, referer: https://vnagios.ads.volusion.com/nagiosxi/includes/                    components/ccm/xi-index.php
[Mon Jul 01 14:44:49 2013] [error] [client 10.20.44.18] PHP Fatal error:  requir                    e_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (includ                    e_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/                    components/ccm/includes/session.inc.php on line 51, referer: https://vnagios.-----.com/nagiosxi/includes/components/ccm/xi-index.php
[Mon Jul 01 14:44:52 2013] [error] [client 10.20.44.18] PHP Warning:  require_on                    ce(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or                     directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.                    inc.php on line 51, referer: https://vnagios.---------.com/nagiosxi/includes/                    components/ccm/xi-index.php
[Mon Jul 01 14:44:52 2013] [error] [client 10.20.44.18] PHP Fatal error:  requir                    e_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (includ                    e_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/                    components/ccm/includes/session.inc.php on line 51, referer: https://vnagios.-------.com/nagiosxi/includes/components/ccm/xi-index.php
[Mon Jul 01 14:44:54 2013] [error] [client 10.20.44.18] PHP Warning:  require_on                    ce(/usr/share/pear/HTML/Template/IT.php): failed to open stream: No such file or                     directory in /usr/local/nagiosxi/html/includes/components/ccm/includes/session.                    inc.php on line 51, referer: https://vnagios.--------.com/nagiosxi/includes/                    components/ccm/xi-index.php
[Mon Jul 01 14:44:54 2013] [error] [client 10.20.44.18] PHP Fatal error:  requir                    e_once(): Failed opening required '/usr/share/pear/HTML/Template/IT.php' (includ                    e_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/                    components/ccm/includes/session.inc.php on line 51, referer: https://vnagios.-------.com/nagiosxi/includes/components/ccm/xi-index.php
I've verified that the '/usr/share/pear/HTML/' does not exist. I'm assuming that php-pear didn't get fully built from the repo of 5.4.16 I found?

Any way to correct this?
Andrew J. - Do you even grok?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: New problem after PHP upgrade

Post by sreinhardt »

Specifically I think you need the php-pear-HTML-Template-IT package. Building and installing should resolve any issues.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: New problem after PHP upgrade

Post by vAJ »

ok, that doesn't look tied to the PHP release, so I'm installing from standard repos:

php-pear-HTML-Template-IT.noarch 1.3.0-2.el5
Andrew J. - Do you even grok?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: New problem after PHP upgrade

Post by vAJ »

Actually, it's a pear command that this required:

pear install HTML_Template_IT

This install solved the problem. CCM/lCCM now available.
Andrew J. - Do you even grok?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New problem after PHP upgrade

Post by abrist »

Great, locking thread.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked