Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on map load #346

Open
guillaumechardin opened this issue Jul 5, 2023 · 5 comments
Open

Error on map load #346

guillaumechardin opened this issue Jul 5, 2023 · 5 comments

Comments

@guillaumechardin
Copy link

Hello i am facing an issue with one of my server.
When selecting a submap, it crashed with this error :

Error: (0) Undefined array key "ack"
URL: /nagvis/server/core/ajax_handler.php?mod=Map&act=getMapObjects&show=Baie_A&header_menu=1&hover_menu=1&context_menu=1&zoom=100&_ajaxid=1688561307
File: /usr/share/nagvis/share/server/core/classes/objects/NagVisObject.php
Line: 515
#0 /usr/share/nagvis/share/server/core/classes/objects/NagVisObject.php(515): nagvisExceptionErrorHandler()
#1 /usr/share/nagvis/share/server/core/classes/objects/NagVisObject.php(498): NagVisObject::sortStatesByStateValues()
#2 [internal function]: NagVisObject::sortObjectsByState()
#3 /usr/share/nagvis/share/server/core/classes/objects/NagVisObject.php(328): usort()
#4 /usr/share/nagvis/share/server/core/classes/objects/NagVisObject.php(299): NagVisObject->getSortedObjectMembers()
#5 /usr/share/nagvis/share/server/core/classes/objects/NagVisObject.php(386): NagVisObject->getObjectInformation()
#6 /usr/share/nagvis/share/server/core/classes/objects/NagVisStatefulObject.php(434): NagVisObject->parseJson()
#7 /usr/share/nagvis/share/server/core/classes/NagVisMap.php(106): NagVisStatefulObject->parseJson()
#8 /usr/share/nagvis/share/server/core/classes/CoreModMap.php(325): NagVisMap->parseObjectsJson()
#9 /usr/share/nagvis/share/server/core/classes/CoreModMap.php(105): CoreModMap->getMapObjects()
#10 /usr/share/nagvis/share/server/core/functions/index.php(120): CoreModMap->handleAction()
#11 /usr/share/nagvis/share/server/core/ajax_handler.php(59): require('...')
#12 {main}

I found out that removing the "define map { .... } directive in map config file solve this issue. So this is the culprit.

I cas using nagvis 1.9.31 and upgraded to last 1.9.35 to check if it solve this issue : it do not solve.
This system is interfacing nagvis with centreon.

Does anyone know how to solve this bug ?

thanks for your help.

@guillaumechardin
Copy link
Author

guillaumechardin commented Jul 5, 2023

PHP version is 8.0.12.

@guillaumechardin
Copy link
Author

I use the 1.9.35 package downloaded from nagvis website : http://nagvis.org/share/nagvis-1.9.35.tar.gz

@lendropaulo
Copy link

Guillaumechardin, Please could you tell me how you installed this version?

Could you explain to me how to remove the version that comes by default with chckmk?

@guillaumechardin
Copy link
Author

guillaumechardin commented Oct 3, 2023

Guillaumechardin, Please could you tell me how you installed this version?

I followed the available doc on nagvis website : http://docs.nagvis.org/1.9/en_US/index.html
Installation/Upgrade >> manual upgrade

Could you explain to me how to remove the version that comes by default with chckmk?

I don't know, i do not use chckmk

@lendropaulo
Copy link

Thank you very much for your feedback. I will try to follow the tutorial to fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants