PHP Error on Manage Plugins link

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kquinby
Posts: 5
Joined: Mon Apr 12, 2010 3:25 pm

PHP Error on Manage Plugins link

Post by kquinby »

Just did a manual installation of NAGIOS Xi on Fedora 11. Everything appears to be working as expected, with the exception of the 'Manage Plugins' link. I get a 500 error when I try to access it.

When I look in the /var/log/httpd/error.log, I see the following line:

[Tue Apr 13 16:48:37 2010] [error] [client 10.154.10.128] PHP Fatal error: Call to undefined function posix_getpwuid() in /usr/local/nagiosxi/html/includes/utils-nagioscore.inc.php on line 724, referer: http://10.154.106.74/nagiosxi/admin/?xi ... lugins.php


Assistance would be appreciated.
xi.jpg
You do not have the required permissions to view the files attached to this post.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: PHP Error on Manage Plugins link

Post by tonyyarusso »

Could you please confirm which version of XI you installed? There were some PHP include errors in earlier versions, so you'll want to make sure you're running 1.1H.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
kquinby
Posts: 5
Joined: Mon Apr 12, 2010 3:25 pm

Re: PHP Error on Manage Plugins link

Post by kquinby »

We are running 1.1H.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: PHP Error on Manage Plugins link

Post by tonyyarusso »

Have you by any chance tried this on other OSs to see if it exists there? I'll be firing up a Fedora 11 instance here to see if I can reproduce it, but it'd be nice to know if you already have some data on the subject.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
kquinby
Posts: 5
Joined: Mon Apr 12, 2010 3:25 pm

Re: PHP Error on Manage Plugins link

Post by kquinby »

No, i have not rebuilt it.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: PHP Error on Manage Plugins link

Post by tonyyarusso »

Wow, there are piles of errors during installation on F11, dealing with missing dependencies from yum. My guess is that's probably the cause here - will keep poking.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: PHP Error on Manage Plugins link

Post by tonyyarusso »

The working theory is that you might not need nor want the dag repo on Fedora, so you can try re-installing without that step if you'd like. I'm trying to test it, but re-initializing the environment is taking forever. Proper VM snapshot next time. :)
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: PHP Error on Manage Plugins link

Post by tonyyarusso »

Scratch that. The dependencies stuff all appears to be related to Perl, and your error is PHP. We clearly have an issue to address there, but I don't know that it's the one causing your problem.

The posix_getpwuid() function is defined in the file /usr/lib/httpd/modules/libphp5.so on CentOS, but apparently not included on F11. If we can find some other place to find that function definition that should take care of your issue.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: PHP Error on Manage Plugins link

Post by tonyyarusso »

Okay, we found the issue. That function was moved between PHP 5.1 (which CentOS has) and PHP 5.2 (which Fedora 11 has). You can install the new package containing it with

Code: Select all

yum install php-process
and that should solve your issue. Let me know if that takes care of things for you.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked