Page 1 of 1
PHP Error on Manage Plugins link
Posted: Tue Apr 13, 2010 4:02 pm
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
Re: PHP Error on Manage Plugins link
Posted: Tue Apr 13, 2010 4:10 pm
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.
Re: PHP Error on Manage Plugins link
Posted: Wed Apr 14, 2010 8:39 am
by kquinby
We are running 1.1H.
Re: PHP Error on Manage Plugins link
Posted: Wed Apr 14, 2010 11:35 am
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.
Re: PHP Error on Manage Plugins link
Posted: Wed Apr 14, 2010 11:55 am
by kquinby
No, i have not rebuilt it.
Re: PHP Error on Manage Plugins link
Posted: Wed Apr 14, 2010 3:35 pm
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.
Re: PHP Error on Manage Plugins link
Posted: Wed Apr 14, 2010 5:30 pm
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.

Re: PHP Error on Manage Plugins link
Posted: Thu Apr 15, 2010 12:23 pm
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.
Re: PHP Error on Manage Plugins link
Posted: Thu Apr 15, 2010 2:50 pm
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
and that should solve your issue. Let me know if that takes care of things for you.