After updating our Checkmk servers (distributed monitoring with one master and several slaves) from version 2.0.0p25 (CME) to 2.0.0p29 (CME), we are not able to see our NagVis maps in the GUI. We only get this error: “Failed to update NagVis maps: 500”.
The /omd/sites/SITE/var/log/apache/error_log shows the following entry:
[…]
PHP Fatal error: Arrays are not allowed as constants in /opt/omd/versions/2.0.0p29.cme/share/nagvis/htdocs/server/core/sources/geomap.php on line 9
[…]
The following PHP version is installed on our Checkmk server:
I was able to solve this issue.
Arrays can be declared as constant since PHP 5.6. That means, after I updated PHP to that version, the NagVis maps are displayed again properly. Even an upgrade to PHP 7.4 helps.
I know that this post is already resolved but maybe helpful to others which cannot install PHP 5.6.
As far as I found out this issue is only related to one line of code in the file geomap.php.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.