net-mgmt/nagvis: Uncaught Error: (0) require(CoreAuthModIcingaweb2.php): failed ...

O. Hartmann ohartmann at walstatt.org
Mon Jan 23 11:44:47 UTC 2017


First of all: please CC me, I'm not a subscriber to this specific list. Thank
you.

I have a problem with net-mgmt/nagvis and it seems to be a problem with some
php issues.

I'm running 12-CURRENT (most recent) with a ports collection also up to date, I
have a jail running net-mgmt/icingaweb2 (icingaweb2-2.4.1) in addition to the
module which can be found here:
https://github.com/Icinga/icingaweb2-module-nagvis
as well as ist requisite net-mgmt/nagvis.

With the basic config of nagvis and icingaweb2-nagvis, there is a "Maps" tag
lefthand on the icingaweb2 dashboard, but by clicking it, the error below pops
up. This is without any further patching.

[...]
Warning: Uncaught Error: (0) require(CoreAuthModIcingaweb2.php): failed to open
stream: No such file or directory
(/usr/local/www/nagvis/share/server/core/functions/autoload.php:40)

#0 /usr/local/www/nagvis/share/server/core/functions/autoload.php(40):
nagvisExceptionErrorHandler(2, 'require(CoreAut...', '/usr/local/www/...', 40,
Array) #1 /usr/local/www/nagvis/share/server/core/functions/autoload.php(40):
NagVisAutoload() #2 [internal function]: NagVisAutoload('CoreAuthModIcin...')
#3 /usr/local/www/nagvis/share/server/core/classes/CoreAuthHandler.php(47):
spl_autoload_call('CoreAuthModIcin...')
#4 /usr/local/www/nagvis/share/server/core/functions/index.php(44):
CoreAuthHandler->__construct()
#5 /usr/local/www/nagvis/share/frontend/nagvis-js/index.php(53):
require('/usr/local/www/...') #6 {main} thrown
in /usr/local/www/nagvis/share/server/core/functions/autoload.php on line 40

Fatal error: NagVisAutoload(): Failed opening required
'CoreAuthModIcingaweb2.php' (include_path='.:/usr/local/share/pear:../../server/core/classes:../../server/core/classes/objects:../../server/core/ext/php-gettext-1.0.9:../../frontend/nagvis-js/classes/')
in /usr/local/www/nagvis/share/server/core/functions/autoload.php on line 40
[...]


With the instructions taken from
https://github.com/Icinga/icingaweb2-module-nagvis, especially the very last
part which injects some PHP code at
<nagvisdir>/share/server/core/functions/index.php,

one receive this error:

[...]
Warning: Uncaught Error: (0) require_once(Icinga/Application/EmbeddedWeb.php):
failed to open stream: No such file or directory
(/usr/local/www/nagvis/share/server/core/functions/index.php:33)

#0 /usr/local/www/nagvis/share/server/core/functions/index.php(33):
nagvisExceptionErrorHandler(2, 'require_once(Ic...', '/usr/local/www/...', 33,
Array)
#1 /usr/local/www/nagvis/share/server/core/functions/index.php(33):
require_once()
#2 /usr/local/www/nagvis/share/frontend/nagvis-js/index.php(53):
require('/usr/local/www/...')
#3 {main} thrown in /usr/local/www/nagvis/share/server/core/functions/index.php
on line 33

Fatal error: main(): Failed opening required
'Icinga/Application/EmbeddedWeb.php' (include_path='.:/usr/local/share/pear:../../server/core/classes:../../server/core/classes/objects:../../server/core/ext/php-gettext-1.0.9:../../frontend/nagvis-js/classes/')
in /usr/local/www/nagvis/share/server/core/functions/index.php on line 33
[...]


The latter one indicates to me that PHP does not know the path, which is
supposed to start with

[/usr/local/www/icingaweb2/library]/Icinga/Application/EmbeddedWeb.php

Well, I'm lost here :-(

Thanks for your patience,

Regards

Oliver


More information about the freebsd-ports mailing list