You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
:
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
The text was updated successfully, but these errors were encountered:
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
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
:
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
The text was updated successfully, but these errors were encountered: