-
Notifications
You must be signed in to change notification settings - Fork 4
Description
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