[op5-users] How to Geomap ?

Jean-Marc LE FEVRE eos at etatcritik.dyndns.org
Wed Nov 25 17:54:08 CET 2009


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 ?



Le 25 nov. 09 à 15:45, Jean-Marc LE FEVRE a écrit :

> OK, thanks I don't know where the function comes from but I can see
> the error clearly in apache log :
>
> PHP Notice:  The parent folder for the cache file "/usr/share/
> nagios/addons/nagvis/netmapvar/nagvis.ini.php-git-
> f65e5f9126c8f54d29bd09416c6c4ec387b05097-cache" is not writeable.
> The cache file can not be created. Please fix the permissions on the
> filesystem. in /usr/share/nagios/addons/nagvis/nagvis/includes/ 
> classes/
> frontend/GlobalFrontendMessageBox.php on line 91, referer: http://84.246.229.120/nagvis/netmap/shell.swf
>
> I guess there is a / missing somewhere and maybe some file permission
> problem ....
>
>
> I check for it and report as soon as it work (or as soon as I get
> another bug :( )
>
>
>
> Le 25 nov. 09 à 15:28, Roman Kyrylych a écrit :
>
>> Jean-Marc LE FEVRE wrote:
>>>>> PHP Notice:  Use of undefined constant CONST_AJAX - assumed
>>>>> 'CONST_AJAX'
>>>>> in
>>>>> /usr/share/nagios/addons/nagvis/nagvis/includes/classes/frontend/
>>>>> GlobalFrontendMessageBox.php
>>>>> on line 111, referer: http://84.246.229.120/nagvis/netmap/ 
>>>>> shell.swf
>>>>>
>>>>> Any idea ?
>>>> Hm. That file shouldn't be included at all. NagVis code is a mess.
>>>> You can add define('CONST_AJAX', FALSE); at the top of that file.
>>>>
>>>
>>>
>>> I did add this in top of the file since last mail, but with no
>>> surprise it didn't solve the channel disconnected problem
>>
>> I think the fact of that error happening means that there was
>> probably an error in NagVis backend (and it tried to report it).
>> I think amf-server is working correctly now.
>> The problem is that NagVis prohibits raw PHP error messages
>> from getting into the log.
>>
>> You can try adding trigger_error($message) at the beginning of
>> __construct() in GlobalFrontendMessageBox.php to actually see the
>> error
>> that NagVis was trying to report.
>>
>> -- 
>> Roman Kyrylych
>> Software engineer
>> N-iX LLC
>> Solutions for Your success
>> http://www.n-ix.com
>> _______________________________________________
>> op5-users mailing list
>> op5-users at lists.op5.com
>> http://lists.op5.com/mailman/listinfo/op5-users
>
> _______________________________________________
> op5-users mailing list
> op5-users at lists.op5.com
> http://lists.op5.com/mailman/listinfo/op5-users



More information about the op5-users mailing list