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

CMDPHP PHP ERROR NOTICE Backtrace & ERROR PHP NOTICE in Plugin 'npc' #15

Open
sunman2 opened this issue May 30, 2024 · 4 comments
Open

Comments

@sunman2
Copy link

sunman2 commented May 30, 2024

This issue has been asked before, but how it was resolved has not been explained.

Version Info:
Linux: Ubuntu 20.04.5 LTS
Apache 2.4.41
MySQL 8.0.36-0ubuntu0.20.04.1
PHP 7.4.3-4ubuntu2.19 (cli)
cacti-1.2.19.
ndoutils 2.1.3
Nagios4.4.5
After clicking NPC tab working ok but showing following errors in logs
error
:

2024-05-30 22:53:27 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/npc/npc.php[83]:NpcNagiosController->getProgramStatus(), /plugins/npc/controllers/nagios.php[42]:NpcNagiosController->processInfo(), /plugins/npc/controllers/nagios.php[109]:CactiErrorHandler())

2024-05-30 22:53:27 - ERROR PHP NOTICE in Plugin 'npc': Trying to access array offset on value of type null in file: /var/www/html/cacti/plugins/npc/controllers/nagios.php on line: 109
2024-05-30 22:53:27 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/npc/npc.php[83]:NpcNagiosController->getProgramStatus(), /plugins/npc/controllers/nagios.php[42]:NpcNagiosController->processInfo(), /plugins/npc/controllers/nagios.php[109]:CactiErrorHandler())
2024-05-30 22:53:27 - ERROR PHP NOTICE in Plugin 'npc': Undefined offset: 0 in file: /var/www/html/cacti/plugins/npc/controllers/nagios.php on line: 109

@TheWitness
Copy link
Member

I have not forgotten this. It's a simple test. Might be able to get to it tomorrow.

@sunman2
Copy link
Author

sunman2 commented Jun 6, 2024

Thank you so much for your reply. I built another instance and installed PHP 7.4 and MySQL 5.7, and it worked perfectly. But with MySQL 8.0.36-0ubuntu0.20.04.1 giving me the same error

@TheWitness
Copy link
Member

Should be fixed now.

@TheWitness
Copy link
Member

Please report back. I'm going to spend some time on this, though the framework is using Doctrine and getting pretty old now.

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