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

Pnp4Nagios doe not work with PHP 8 #77

Closed
fabriceverkor opened this issue Apr 27, 2024 · 3 comments
Closed

Pnp4Nagios doe not work with PHP 8 #77

fabriceverkor opened this issue Apr 27, 2024 · 3 comments

Comments

@fabriceverkor
Copy link

fabriceverkor commented Apr 27, 2024

We just migrated to Debian Bookworm which comes with PHP 8
Unfortunately, Pnp4Nagios stopped to work, and Grafana could not fetch data anymore from it.

If I understand well, The Kohana Framework used by PNp4Nagios is not supported in PHP 8.
Do I understand well ?
Is there something to do on your Grafana plugin side ?

We use a CheckMK RAW version on which we haved maintained Pnp4Nagios WEB interface (with difficulties as they decided to delete the WEB part from OMD) sot that Grafana plugin still works.
The CheckMK plugin for Grafana does not work with host variables (Checkmk/grafana-checkmk-datasource#247),
So for the moment, we are stucked.

@sni
Copy link
Owner

sni commented Apr 27, 2024

There is nothing this datasource can do about it. It requires a working pnp backend.
However, there are pnp forks working with php 8, ex.: we maintain a fork of pnp here https://github.com/ConSol-Monitoring/pnp which is used for the omd-labs package at
https://github.com/ConSol-Monitoring/omd/tree/labs/packages/pnp4nagios
But no idea if you can get this into checkmk somehow.

@fabriceverkor
Copy link
Author

Good news.
I had some headache to implement old Pnp4Nagios in recent CheckMK version.
I'll give a try to this fork and let you know.
Thx

@fabriceverkor
Copy link
Author

Hello, I confirm hat your Pnp fork is working fine.
Of course, to work it in CheckMk, it needs a /omd//etc/apache/conf.d/pnp4nagios.conf
On my side, I had to disable authentication in omd/sites//etc/pnp4nagios/config.php

$conf['auth_enabled'] = FALSE; // CHANGED BY ANSIBLE

$conf['auth_multisite_enabled'] = FALSE; // CHANGED BY ANSIBLE

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