PDA

View Full Version : problem with zabbix on SuSE 10.0


krusty
22-10-2005, 21:02
hi, i have installed zabbix (the latest version) on my suse 10.0 server. the installation was really easy and everything works fine. with the last step, to configure the webserver i got a lot of problems. see what the browser give to me.

Warning: main(include/defines.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 32
Warning: main(): Failed opening 'include/defines.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 32
Warning: main(include/db.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 33
Warning: main(): Failed opening 'include/db.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 33
Warning: main(include/html.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 34
Warning: main(): Failed opening 'include/html.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 34
Warning: main(include/locales.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 35
Warning: main(): Failed opening 'include/locales.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 35
Warning: main(include/audit.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 37
Warning: main(): Failed opening 'include/audit.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 37
Warning: main(include/autoregistration.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 38
Warning: main(): Failed opening 'include/autoregistration.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 38
Warning: main(include/escalations.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 39
Warning: main(): Failed opening 'include/escalations.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 39
Warning: main(include/hosts.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 40
Warning: main(): Failed opening 'include/hosts.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 40
Warning: main(include/users.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 41
Warning: main(): Failed opening 'include/users.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 41
Warning: main(include/graphs.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 42
Warning: main(): Failed opening 'include/graphs.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 42
Warning: main(include/items.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 43
Warning: main(): Failed opening 'include/items.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 43
Warning: main(include/screens.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 44
Warning: main(): Failed opening 'include/screens.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 44
Warning: main(include/triggers.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 45
Warning: main(): Failed opening 'include/triggers.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 45
Warning: main(include/actions.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 46
Warning: main(): Failed opening 'include/actions.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 46
Warning: main(include/profiles.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 47
Warning: main(): Failed opening 'include/profiles.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 47
Warning: main(include/services.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 48
Warning: main(): Failed opening 'include/services.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 48
Warning: main(include/maps.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 49
Warning: main(): Failed opening 'include/maps.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 49
Warning: main(include/defines.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/forms.inc.php on line 22
Warning: main(): Failed opening 'include/defines.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/forms.inc.php on line 22
Warning: main(include/db.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/forms.inc.php on line 23
Warning: main(): Failed opening 'include/db.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/forms.inc.php on line 23
Warning: show_special_header(include/locales/en_gb.inc.php): failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 1026
Warning: show_special_header(): Failed opening 'include/locales/en_gb.inc.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 1026
Fatal error: Call to undefined function: dbselect() in /srv/www/htdocs/zabbix/html/include/config.inc.php on line 991

I dont really know whats wrong with my configuration. Everything is the same on this server as on my other SuSE 9.3 Server. :eek:

Does anybody know what i have to do? :confused:

Thanks.

PS: Sorry, but my english isnt really good. :(

elkor
23-10-2005, 04:31
it looks like there is some kind of strict setting for your include path in php.

While I never have run into this personally I suppose it makes sense for some builds, are you running in safe mode perhaps? the first place I would start looking is php's configure file.

krusty
23-10-2005, 17:08
I have checked the config files and i cant locate any mistake. :(

elkor
23-10-2005, 17:36
well, provided that the zabbix_document_root/include/* files exist.. it *has* to be either some setting that is stopping php from loading include files from arbitrary paths or a permissions problem. Normally I'd do some searches and try and find the exact answer for you but it's Sunday, and the wife is giving me the evil eye. ;)

James Wells
23-10-2005, 17:41
Greetings,

Right off the bat, I would look at the 'include_path' configuration in your php.ini file for your apache site. It looks as if your include_patch is set to include_path = "/usr/share/php" Which tells PHP that your included files have to be in /usr/share/php. On most systems, this entry would be listed as something like include_path = ".:/usr/share/php" which says to look in the local directory first, then if it doesn't find the needed include file to look in /usr/share/php for the file.

krusty
25-10-2005, 12:01
@James,

thanks a lot. After I checked and modified the php.ini file, the server get the right path. Know everything is working fine.

Very goog work. :D