NagVis cannot modify object on map (after upgrade)
-
trenz.sands.cz
- Posts: 9
- Joined: Sun Dec 20, 2020 1:39 pm
NagVis cannot modify object on map (after upgrade)
OS:
Nagios XI 5.8.5
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1160.31.1.el7.x86_64
Architecture: x86-64
Background:
There was migration from very old nagios from year 2014 and 32bit CentOS to this latest.
Map was migrated, but cannot modify.
[22/Oct/2021:10:08:06 +0200] 192.168.110.198 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagvis/server/core/ajax_handler.php?mod=Map&act=addModify&show=Mapa&object_id=u17628&_ajaxid=1634890086 HTTP/1.1" 71
{
"message": "The object does not exist.",
"title": "ERROR",
"type": "error"
}
Nagios XI 5.8.5
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1160.31.1.el7.x86_64
Architecture: x86-64
Background:
There was migration from very old nagios from year 2014 and 32bit CentOS to this latest.
Map was migrated, but cannot modify.
[22/Oct/2021:10:08:06 +0200] 192.168.110.198 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagvis/server/core/ajax_handler.php?mod=Map&act=addModify&show=Mapa&object_id=u17628&_ajaxid=1634890086 HTTP/1.1" 71
{
"message": "The object does not exist.",
"title": "ERROR",
"type": "error"
}
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagVis cannot modify object on map (after upgrade)
Hi,
Is this happening for a single host or service object or is this happening for everything? Please re-produce the error in the user interface, and then immediately download a system profile and send it over in a PM. This will capture any errors in the Apache logs.
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Additionally, are you seeing any errors on the front end? Open the developer tools in the browsers, and then re-load the page and let me know if you are getting any HTTP error codes. Thanks, Ben
Is this happening for a single host or service object or is this happening for everything? Please re-produce the error in the user interface, and then immediately download a system profile and send it over in a PM. This will capture any errors in the Apache logs.
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Additionally, are you seeing any errors on the front end? Open the developer tools in the browsers, and then re-load the page and let me know if you are getting any HTTP error codes. Thanks, Ben
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
trenz.sands.cz
- Posts: 9
- Joined: Sun Dec 20, 2020 1:39 pm
Re: NagVis cannot modify object on map (after upgrade)
I have sent you the information, please take a look and reply.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagVis cannot modify object on map (after upgrade)
Hi,
Thank you for the system profile. Is this happening for a single host or service object or is this happening for everything?
Please check the settings and make sure the default backend is set to nagiosxi. Based on the log messages, it's not able to set up a backend connection.
Also, if that's not the issue, please share the following files.
And the output to the following command. Thanks, Benajmin
Thank you for the system profile. Is this happening for a single host or service object or is this happening for everything?
Please check the settings and make sure the default backend is set to nagiosxi. Based on the log messages, it's not able to set up a backend connection.
Also, if that's not the issue, please share the following files.
Code: Select all
/usr/local/nagvis/etc/nagvis.ini.php
/etc/httpd/conf.d/nagvis.conf
Code: Select all
ls -l /usr/local/nagvis/share/server/core/classes/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
trenz.sands.cz
- Posts: 9
- Joined: Sun Dec 20, 2020 1:39 pm
Re: NagVis cannot modify object on map (after upgrade)
it is happening for all objects, needed files included in PM.
-
trenz.sands.cz
- Posts: 9
- Joined: Sun Dec 20, 2020 1:39 pm
Re: NagVis cannot modify object on map (after upgrade)
[root@nagios-sas ~]# ls -la /usr/local/nagvis/share/server/core/classes/
total 968
drwxr-xr-x 3 apache apache 4096 Jun 8 2018 .
drwxr-xr-x 9 apache apache 132 Oct 22 10:22 ..
-rw-r--r-- 1 apache apache 8023 Jun 8 2018 CoreAuthHandler.php
-rw-r--r-- 1 apache apache 1454 Jun 8 2018 CoreAuthModMySQL.php
-rw-r--r-- 1 apache apache 7133 Jun 8 2018 CoreAuthModPDO.php
-rw-r--r-- 1 apache apache 1302 Jun 8 2018 CoreAuthModSQLite.php
-rw-r--r-- 1 apache apache 1796 Jun 8 2018 CoreAuthModule.php
-rw-r--r-- 1 apache apache 9400 Jun 8 2018 CoreAuthorisationHandler.php
-rw-r--r-- 1 apache apache 7663 Jun 8 2018 CoreAuthorisationModGroups.php
-rw-r--r-- 1 apache apache 6198 Jun 8 2018 CoreAuthorisationModMultisite.php
-rw-r--r-- 1 apache apache 1472 Jun 8 2018 CoreAuthorisationModMySQL.php
-rw-r--r-- 1 apache apache 7872 Aug 12 2020 CoreAuthorisationModPDO.php
-rw-r--r-- 1 apache apache 1320 Jun 8 2018 CoreAuthorisationModSQLite.php
-rw-r--r-- 1 apache apache 1238 Jun 8 2018 CoreAuthorisationModule.php
-rw-r--r-- 1 apache apache 30641 Jun 8 2018 CoreBackendMgmt.php
-rw-r--r-- 1 apache apache 3618 Jun 8 2018 CoreExceptions.php
-rw-r--r-- 1 apache apache 4248 Jun 8 2018 CoreLogonDialogHandler.php
-rw-r--r-- 1 apache apache 2207 Jun 8 2018 CoreLogonEnv.php
-rw-r--r-- 1 apache apache 1406 Jun 8 2018 CoreLogonMixed.php
-rw-r--r-- 1 apache apache 2190 Jun 8 2018 CoreLogonModule.php
-rw-r--r-- 1 apache apache 5555 Jun 8 2018 CoreLogonMultisite.php
-rw-r--r-- 1 apache apache 1957 Jun 8 2018 CoreLogonSession.php
-rw-r--r-- 1 apache apache 836 Jun 8 2018 CoreLog.php
-rw-r--r-- 1 apache apache 3446 Jun 8 2018 CoreModAction.php
-rw-r--r-- 1 apache apache 3336 Jun 8 2018 CoreModAuth.php
-rw-r--r-- 1 apache apache 2061 Jun 8 2018 CoreModChangePassword.php
-rw-r--r-- 1 apache apache 3374 Jun 8 2018 CoreModGeneral.php
-rw-r--r-- 1 apache apache 1959 Jun 8 2018 CoreModMainCfg.php
-rw-r--r-- 1 apache apache 1744 Jun 8 2018 CoreModManageBackgrounds.php
-rw-r--r-- 1 apache apache 1730 Jun 8 2018 CoreModManageShapes.php
-rw-r--r-- 1 apache apache 13215 Jun 8 2018 CoreModMap.php
-rw-r--r-- 1 apache apache 9765 Jun 8 2018 CoreModMultisite.php
-rw-r--r-- 1 apache apache 14335 Jun 8 2018 CoreModOverview.php
-rw-r--r-- 1 apache apache 1614 Jun 8 2018 CoreModRoleMgmt.php
-rw-r--r-- 1 apache apache 1887 Jun 8 2018 CoreModSearch.php
-rw-r--r-- 1 apache apache 2743 Jun 8 2018 CoreModuleHandler.php
-rw-r--r-- 1 apache apache 10220 Jun 8 2018 CoreModule.php
-rw-r--r-- 1 apache apache 3964 Jun 8 2018 CoreModUrl.php
-rw-r--r-- 1 apache apache 1537 Jun 8 2018 CoreModUserMgmt.php
-rw-r--r-- 1 apache apache 2361 Jun 8 2018 CoreModUser.php
-rw-r--r-- 1 apache apache 37270 Oct 15 10:17 CorePDOHandler.php
-rw-r--r-- 1 apache apache 2620 Jun 8 2018 CoreRequestHandler.php
-rw-r--r-- 1 apache apache 9751 Jun 8 2018 CoreRotation.php
-rw-r--r-- 1 apache apache 4748 Jun 8 2018 CoreSessionHandler.php
-rw-r--r-- 1 apache apache 1314 Jun 8 2018 CoreTemplateSystem.php
-rw-r--r-- 1 apache apache 4943 Jun 8 2018 CoreUriHandler.php
-rw-r--r-- 1 apache apache 3580 Jun 8 2018 CoreUserCfg.php
-rw-r--r-- 1 apache apache 3392 Jun 8 2018 GlobalBackendInterface.php
-rw-r--r-- 1 apache apache 16849 Jun 8 2018 GlobalBackendmkbi.php
-rw-r--r-- 1 apache apache 60856 Jun 8 2018 GlobalBackendmklivestatus.php
-rw-r--r-- 1 apache apache 15192 Jun 8 2018 GlobalBackendnagiosbp.php
-rw-r--r-- 1 apache apache 2409 Oct 15 10:17 GlobalBackendndomy.php
-rw-r--r-- 1 apache apache 60375 Oct 15 10:17 GlobalBackendPDO.php
-rw-r--r-- 1 apache apache 1164 Jun 8 2018 GlobalBackendpgsql.php
-rw-r--r-- 1 apache apache 35014 Jun 8 2018 GlobalBackendTest.php
-rw-r--r-- 1 apache apache 5044 Oct 15 10:17 GlobalBackground.php
-rw-r--r-- 1 apache apache 24018 Jun 8 2018 GlobalCore.php
-rw-r--r-- 1 apache apache 6322 Jun 8 2018 GlobalFileCache.php
-rw-r--r-- 1 apache apache 11330 Jun 8 2018 GlobalLanguage.php
-rw-r--r-- 1 apache apache 107828 Jun 8 2018 GlobalMainCfg.php
-rw-r--r-- 1 apache apache 69746 Aug 12 2020 GlobalMapCfg.php
-rw-r--r-- 1 apache apache 8579 Jun 8 2018 NagVisContextMenu.php
-rw-r--r-- 1 apache apache 8358 Jun 8 2018 NagVisHoverMenu.php
-rw-r--r-- 1 apache apache 3843 Jun 8 2018 NagVisHoverUrl.php
-rw-r--r-- 1 apache apache 4435 Jun 8 2018 NagVisMap.php
drwxr-xr-x 2 apache apache 4096 Jun 8 2018 objects
-rw-r--r-- 1 apache apache 4471 Jun 8 2018 ViewAck.php
-rw-r--r-- 1 apache apache 3995 Jun 8 2018 ViewChangePassword.php
-rw-r--r-- 1 apache apache 10504 Jun 8 2018 ViewEditMainCfg.php
-rw-r--r-- 1 apache apache 10836 Jun 8 2018 ViewManageBackends.php
-rw-r--r-- 1 apache apache 6045 Jun 8 2018 ViewManageBackgrounds.php
-rw-r--r-- 1 apache apache 14238 Jun 8 2018 ViewManageMaps.php
-rw-r--r-- 1 apache apache 11366 Jun 8 2018 ViewManageRoles.php
-rw-r--r-- 1 apache apache 6012 Jun 8 2018 ViewManageShapes.php
-rw-r--r-- 1 apache apache 12166 Jun 8 2018 ViewManageUsers.php
-rw-r--r-- 1 apache apache 27075 Jun 8 2018 ViewMapAddModify.php
-rw-r--r-- 1 apache apache 10183 Jun 8 2018 ViewMapManageTmpl.php
-rw-r--r-- 1 apache apache 1562 Jun 8 2018 ViewSearch.php
-rw-r--r-- 1 apache apache 4381 Jun 8 2018 ViewToNewMap.php
-rw-r--r-- 1 apache apache 3546 Jun 8 2018 ViewToStaticMap.php
total 968
drwxr-xr-x 3 apache apache 4096 Jun 8 2018 .
drwxr-xr-x 9 apache apache 132 Oct 22 10:22 ..
-rw-r--r-- 1 apache apache 8023 Jun 8 2018 CoreAuthHandler.php
-rw-r--r-- 1 apache apache 1454 Jun 8 2018 CoreAuthModMySQL.php
-rw-r--r-- 1 apache apache 7133 Jun 8 2018 CoreAuthModPDO.php
-rw-r--r-- 1 apache apache 1302 Jun 8 2018 CoreAuthModSQLite.php
-rw-r--r-- 1 apache apache 1796 Jun 8 2018 CoreAuthModule.php
-rw-r--r-- 1 apache apache 9400 Jun 8 2018 CoreAuthorisationHandler.php
-rw-r--r-- 1 apache apache 7663 Jun 8 2018 CoreAuthorisationModGroups.php
-rw-r--r-- 1 apache apache 6198 Jun 8 2018 CoreAuthorisationModMultisite.php
-rw-r--r-- 1 apache apache 1472 Jun 8 2018 CoreAuthorisationModMySQL.php
-rw-r--r-- 1 apache apache 7872 Aug 12 2020 CoreAuthorisationModPDO.php
-rw-r--r-- 1 apache apache 1320 Jun 8 2018 CoreAuthorisationModSQLite.php
-rw-r--r-- 1 apache apache 1238 Jun 8 2018 CoreAuthorisationModule.php
-rw-r--r-- 1 apache apache 30641 Jun 8 2018 CoreBackendMgmt.php
-rw-r--r-- 1 apache apache 3618 Jun 8 2018 CoreExceptions.php
-rw-r--r-- 1 apache apache 4248 Jun 8 2018 CoreLogonDialogHandler.php
-rw-r--r-- 1 apache apache 2207 Jun 8 2018 CoreLogonEnv.php
-rw-r--r-- 1 apache apache 1406 Jun 8 2018 CoreLogonMixed.php
-rw-r--r-- 1 apache apache 2190 Jun 8 2018 CoreLogonModule.php
-rw-r--r-- 1 apache apache 5555 Jun 8 2018 CoreLogonMultisite.php
-rw-r--r-- 1 apache apache 1957 Jun 8 2018 CoreLogonSession.php
-rw-r--r-- 1 apache apache 836 Jun 8 2018 CoreLog.php
-rw-r--r-- 1 apache apache 3446 Jun 8 2018 CoreModAction.php
-rw-r--r-- 1 apache apache 3336 Jun 8 2018 CoreModAuth.php
-rw-r--r-- 1 apache apache 2061 Jun 8 2018 CoreModChangePassword.php
-rw-r--r-- 1 apache apache 3374 Jun 8 2018 CoreModGeneral.php
-rw-r--r-- 1 apache apache 1959 Jun 8 2018 CoreModMainCfg.php
-rw-r--r-- 1 apache apache 1744 Jun 8 2018 CoreModManageBackgrounds.php
-rw-r--r-- 1 apache apache 1730 Jun 8 2018 CoreModManageShapes.php
-rw-r--r-- 1 apache apache 13215 Jun 8 2018 CoreModMap.php
-rw-r--r-- 1 apache apache 9765 Jun 8 2018 CoreModMultisite.php
-rw-r--r-- 1 apache apache 14335 Jun 8 2018 CoreModOverview.php
-rw-r--r-- 1 apache apache 1614 Jun 8 2018 CoreModRoleMgmt.php
-rw-r--r-- 1 apache apache 1887 Jun 8 2018 CoreModSearch.php
-rw-r--r-- 1 apache apache 2743 Jun 8 2018 CoreModuleHandler.php
-rw-r--r-- 1 apache apache 10220 Jun 8 2018 CoreModule.php
-rw-r--r-- 1 apache apache 3964 Jun 8 2018 CoreModUrl.php
-rw-r--r-- 1 apache apache 1537 Jun 8 2018 CoreModUserMgmt.php
-rw-r--r-- 1 apache apache 2361 Jun 8 2018 CoreModUser.php
-rw-r--r-- 1 apache apache 37270 Oct 15 10:17 CorePDOHandler.php
-rw-r--r-- 1 apache apache 2620 Jun 8 2018 CoreRequestHandler.php
-rw-r--r-- 1 apache apache 9751 Jun 8 2018 CoreRotation.php
-rw-r--r-- 1 apache apache 4748 Jun 8 2018 CoreSessionHandler.php
-rw-r--r-- 1 apache apache 1314 Jun 8 2018 CoreTemplateSystem.php
-rw-r--r-- 1 apache apache 4943 Jun 8 2018 CoreUriHandler.php
-rw-r--r-- 1 apache apache 3580 Jun 8 2018 CoreUserCfg.php
-rw-r--r-- 1 apache apache 3392 Jun 8 2018 GlobalBackendInterface.php
-rw-r--r-- 1 apache apache 16849 Jun 8 2018 GlobalBackendmkbi.php
-rw-r--r-- 1 apache apache 60856 Jun 8 2018 GlobalBackendmklivestatus.php
-rw-r--r-- 1 apache apache 15192 Jun 8 2018 GlobalBackendnagiosbp.php
-rw-r--r-- 1 apache apache 2409 Oct 15 10:17 GlobalBackendndomy.php
-rw-r--r-- 1 apache apache 60375 Oct 15 10:17 GlobalBackendPDO.php
-rw-r--r-- 1 apache apache 1164 Jun 8 2018 GlobalBackendpgsql.php
-rw-r--r-- 1 apache apache 35014 Jun 8 2018 GlobalBackendTest.php
-rw-r--r-- 1 apache apache 5044 Oct 15 10:17 GlobalBackground.php
-rw-r--r-- 1 apache apache 24018 Jun 8 2018 GlobalCore.php
-rw-r--r-- 1 apache apache 6322 Jun 8 2018 GlobalFileCache.php
-rw-r--r-- 1 apache apache 11330 Jun 8 2018 GlobalLanguage.php
-rw-r--r-- 1 apache apache 107828 Jun 8 2018 GlobalMainCfg.php
-rw-r--r-- 1 apache apache 69746 Aug 12 2020 GlobalMapCfg.php
-rw-r--r-- 1 apache apache 8579 Jun 8 2018 NagVisContextMenu.php
-rw-r--r-- 1 apache apache 8358 Jun 8 2018 NagVisHoverMenu.php
-rw-r--r-- 1 apache apache 3843 Jun 8 2018 NagVisHoverUrl.php
-rw-r--r-- 1 apache apache 4435 Jun 8 2018 NagVisMap.php
drwxr-xr-x 2 apache apache 4096 Jun 8 2018 objects
-rw-r--r-- 1 apache apache 4471 Jun 8 2018 ViewAck.php
-rw-r--r-- 1 apache apache 3995 Jun 8 2018 ViewChangePassword.php
-rw-r--r-- 1 apache apache 10504 Jun 8 2018 ViewEditMainCfg.php
-rw-r--r-- 1 apache apache 10836 Jun 8 2018 ViewManageBackends.php
-rw-r--r-- 1 apache apache 6045 Jun 8 2018 ViewManageBackgrounds.php
-rw-r--r-- 1 apache apache 14238 Jun 8 2018 ViewManageMaps.php
-rw-r--r-- 1 apache apache 11366 Jun 8 2018 ViewManageRoles.php
-rw-r--r-- 1 apache apache 6012 Jun 8 2018 ViewManageShapes.php
-rw-r--r-- 1 apache apache 12166 Jun 8 2018 ViewManageUsers.php
-rw-r--r-- 1 apache apache 27075 Jun 8 2018 ViewMapAddModify.php
-rw-r--r-- 1 apache apache 10183 Jun 8 2018 ViewMapManageTmpl.php
-rw-r--r-- 1 apache apache 1562 Jun 8 2018 ViewSearch.php
-rw-r--r-- 1 apache apache 4381 Jun 8 2018 ViewToNewMap.php
-rw-r--r-- 1 apache apache 3546 Jun 8 2018 ViewToStaticMap.php
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagVis cannot modify object on map (after upgrade)
Hi,
Thank you for those files. We noticed a number of differences between the stock nagvis.ini.php, and the current file.
And seeing these connection errors in the Apache logs.
If that fails, please make a backup of that file and restore the default. Thanks, Benjamin
Thank you for those files. We noticed a number of differences between the stock nagvis.ini.php, and the current file.
And seeing these connection errors in the Apache logs.
Please make sure the backend settings are set for nagisoxi. You may have to create this if it's not there. If that doesn't not work, please try removing the following entry from /usr/local/nagvis/etc/nagvis.ini.php.PHP Fatal error: Declaration of GlobalBackendmerlinmy::__construct() must be compatible with GlobalBackendInterface::__construct($backendId) in /usr/local/nagvis/share/server/core/classes/GlobalBackendmerlinmy.php on line 3
Code: Select all
backend_merlinmy_1
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
trenz.sands.cz
- Posts: 9
- Joined: Sun Dec 20, 2020 1:39 pm
Re: NagVis cannot modify object on map (after upgrade)
I have tried backend nagiosxi - there was missing dbhost
I have defined all backend variables from old nagiosxi - same issue
I have created ndomy backend from old nagiosxi - same issue
I have tried defaut file you have posted - it didnt worked
I have defined all backend variables from old nagiosxi - same issue
I have created ndomy backend from old nagiosxi - same issue
I have tried defaut file you have posted - it didnt worked
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagVis cannot modify object on map (after upgrade)
Hi,
Alright thanks for trying that out, it looks like the issue goes a little deeper than the backend connection.
Let's get an archive of the NagVis install, please send in the /tmp/nagvis.tgz file.
We suspect there is probably is a mismatch between the Object ID's or the names.
Benjamin
Alright thanks for trying that out, it looks like the issue goes a little deeper than the backend connection.
Let's get an archive of the NagVis install, please send in the /tmp/nagvis.tgz file.
Code: Select all
tar cvfz /tmp/nagvis.tgz /usr/local/nagvis/*Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
trenz.sands.cz
- Posts: 9
- Joined: Sun Dec 20, 2020 1:39 pm
Re: NagVis cannot modify object on map (after upgrade)
I have attached the file in PM - 7.1 MiB