Hi All,
I need help to solve this issue.
My pdf graphs are not working and i am getting the below error:
PNP4Nagios Version 0.6.26
Please check the documentation for information about the following error.
Function get_magic_quotes_runtime() is deprecated
file [line]:
application/vendor/fpdf/fpdf.php [1043]:
[back]
Could you please help me to solve it? I cannot get the pdf graphs.
If you meant that this is not working in CMK 2 then yes as there is no PNP4Nagios anymore.
If this is a problem in version 1.6 then you have a problem with your PHP version what looks like a actual one.
Here is a quickfix for the 1.6
The bug lies inside the Kohana framework and the used fpdf lib. Quick solution.
Edit the file
/omd/versions/1.6.0p12.cre/lib/kohana/system/libraries/Input.php
Starting at line 56 remove he two blocks
// magic_quotes_runtime is enabled
// magic_quotes_gpc is enabled
the second file is
/omd/versions/1.6.0p12.cre/share/pnp4nagios/htdocs/application/vendor/fpdf/fpdf.php
starting from line 1042 remove the next two lines.
Graphs should work but PDF export from PNP4Nagios is broken because ther…
Hi i have trey whit this with no help
What exactly do you mean?
i have the same error return
can u help me ?
i have change the php version from 7.4 to 7.0 but also with no luck, now i have other return error
You see in the error message the “php_gd” is missing.
I would not recommend to manually change the installed PHP version.
Your installed CMK package depends on the version delivered with your OS.
Here is one other post from the forum regarding the fpdf problem.
Hallo Freunde von CheckMK,
ich habe mich den PNP4NAGIOS Problemen angenommen und die gesammelten Patch und Hilfestellungen gesammelt und hier nun bereitgestellt. Die Quellen musste ich leider fĂĽr den ersten Post entfernen (nur 2 erlaubt).
Mit den gesammelten Werke sind die gröbsten Fehler beseitigt und pnp4nagios inklusive der PDF Reports voll funktionsfähig.
Der beschrieben Fehler: [Check_mk (english)] Upgrade to 1.6.0b3 broke pnp4nagios ist damit nicht behoben!
Vielleicht werden die hier g…
but mine version of the fpdf is the same FPDF 1.8.1 and FPDI 1.6.1
what u think need to to next?
Inside the linked post they say you need FPDF 1.8.2 minimum. If i look at the source of 1.8.2 then there is no magic_quote check anymore.
Hi
I download from official site the all directory did i need only to remove the original and to paste the new downloadet ?
The new files must be at the same location as the old ones.
As i don’t use PNP4Nagios anymore i cannot test it.
1 Like
boogeyman
(Mario)
February 3, 2022, 10:33am
12
can u tell me what u use for report like nagios open sorce?
system
(system)
Closed
February 3, 2023, 10:34am
13
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.