Failed to update NagVis maps: 500 in sidebar

CMK version: 2.4.0p32
OS version: RHEL 9.7

Error message: Failed to update NagVis maps: 500

Hi,

yesterday we updated from version 2.4.0p26 to 2.4.0p32

since then we get the Failed to update NagVis maps: 500 in the NagVis sidebar element

image

I found this KB article:

Our PHP version is 8.0.30 on RHEL 9.7

Is this PHP Version to old? the KB article does not mention what version to use, just “latest available”. 8.0.30 is the latest version our server guys provide us.

Additional info in case it is not the used PHP version causing the problem:

in the var/log/apache/error_log on our central side we have a lot of errors like this:

[Thu Jul 02 13:41:49.046975 2026] [fcgid:warn] [pid 3845400:tid 3845400] [client 127.0.0.1:38554] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /opt/omd/versions/2.4.0p32.cee/share/nagvis/htdocs/server/core/classes/GlobalBackendmklivestatus.php on line 457, referer: https://checkmk.now-it.drv/wato/check_mk/index.py?start_url=%2Fwato%2Fnagvis%2Ffrontend%2Fnagvis-js%2Findex.php


[Thu Jul 02 13:41:55.716568 2026] [fcgid:warn] [pid 3846714:tid 3846714] [client 127.0.0.1:34530] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 17311907 bytes) in /opt/omd/versions/2.4.0p32.cee/share/nagvis/htdocs/server/core/functions/oldPhpVersionFixes.php on line 67, referer: https://checkmk.now-it.drv/wato/check_mk/index.py?start_url=%2Fwato%2Fcheck_mk%2Fdashboard.py%3Fdisplay_options%3Dfcodezixbt%26name%3Dtest_dashboard

line 457 in the mentioned file /opt/omd/versions/2.4.0p32.cee/share/nagvis/htdocs/server/core/classes/GlobalBackendmklivestatus.php is:

$obj = json_decode(iso8859_1_to_utf8($read));

and line 67 in the file /opt/omd/versions/2.4.0p32.cee/share/nagvis/htdocs/server/core/functions/oldPhpVersionFixes.php is:

return mb_convert_encoding($s, ‘UTF-8’, ‘ISO-8859-1’);

seems to be some problem with encoding/decoding between UTF-8 and ISO-8859-1 but I have no idea what to do with that info.

btw. we already tried to raise the memory limit in the /opt/omd/versions/2.4.0p32.cee/share/nagvis/htdocs/server/core/classes/GlobalBackendmklivestatus.php file with

ini_set(‘memory_limit’,‘512M’);

the problem stayed the same, only that in the logs we got

Allowed memory size of 536870912 bytes exhausted

when we did set it to 1024MB for testing it led to other problems, so we did set it to default (which is 134217728 bytes) again

Thanks and BR
Andre

ein Update von PHP auf Version 8.3 behebt das Problem leider nicht. das ist die neuste Version die uns unter RHEL 9.7 zur Verfügung steht.

ich habe inzwischen auch einen Supportfall aufgemacht. Ich melde mich hier, wenn es Erkenntnisse gibt.

Zum Troubleshooting würde ich hier wie folgt vorgehen.

  • alle Maps aus ~/etc/nagvis/maps/ verschieben in ein temporäres Verzeichnis
  • danach muss ein leeres NagVis aufrufbar sein
  • wenn nicht ist irgendwas an dem System ganz kaputt
  • ich gehe mal nun von einem leeren NagVis aus und nun schiebt man einzeln die Maps wieder in das Maps Verzeichnis bis das ganze wieder bricht - nun hat man den einen Map gefunden welcher sehr wahrscheinlich kaputt ist - diesen kann man dann nur manuell versuchen zu reparieren

Das Problem ist mit dem Update auf 2.4.0p35 (beinhaltet das Update auf NagVis 1.10.6) behoben.

The problem is resolved with the update to 2.4.0p35 (it includes the update to NagVis 1.10.6).