[op5-users] How to Geomap ?

Roman Kyrylych rkyrylych at n-ix.com.ua
Thu Nov 26 11:56:56 CET 2009


Jean-Marc LE FEVRE wrote:
> Hello,
> 
> 
> I've correct php file, make a little patch to force a ending / on path  
> in getValue function.
> Now I've corrected this I've got a new error !
> 
> 
> Call to undefined method GlobalCore::getMainCfg() in /usr/share/nagios/ 
> addons/nagvis/netmap/SettingsService.php on line 49
> 
> The GlobalCore object seems ok to me (I've dump its content into a  
> file) and I checked that getMainCfg() function exists using grep.
> 
> On the browser I get Error : Error as the amf-server.php is returning  
> an internal server error.
> 
> Any idea on this error ?

Check if the following lines in amf-server.php produce correct paths:
define('NAGVIS_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . 
'/../..') . '/');
define('INCLUDE_PATH', NAGVIS_PATH . 'share/nagvis/includes/');
define('CONFIG_PATH', NAGVIS_PATH . 'etc/geomap/');

I suspect that NAGVIS_PATH is not detected correctly.

-- 
Roman Kyrylych
Software engineer
N-iX LLC
Solutions for Your success
http://www.n-ix.com


More information about the op5-users mailing list