nagiostv-react icon indicating copy to clipboard operation
nagiostv-react copied to clipboard

Configuring connector livestatus

Open sistemmsn opened this issue 1 year ago • 4 comments

Is there a reason why the nagiostv can't see it using the livestatus

image image

I manually ran the connector and it threw these errors

image

sistemmsn avatar Sep 01 '23 23:09 sistemmsn

Hi @sistemmsn

This php file cannot be run like that on the command line. It must run within the context of a web server like Apache. Executing from a URL being loaded.

I see this is throwing 500 internal server error on your server.

Check your apache error logs for more information. In your php.ini you will need to enable PHP error logging to a file. That PHP log file will point to the exact issue.

On my box the php.ini is here but your location will likely be different (based on version and OS): /etc/php/7.4/apache2/php.ini

The php options are: log_errors = and error_log =

chriscareycode avatar Sep 13 '23 14:09 chriscareycode

error_log

[20-Feb-2024 11:11:22 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:483 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(483): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 483 [20-Feb-2024 11:11:22 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:11:22 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:11:22 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:540 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(540): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 540 [20-Feb-2024 11:11:22 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:594 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(594): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 594 [20-Feb-2024 11:11:22 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:11:26 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:594 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(594): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 594 [20-Feb-2024 11:11:26 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:11:26 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:483 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(483): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 483 [20-Feb-2024 11:11:26 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:11:26 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:540 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(540): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 540 [20-Feb-2024 11:11:26 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:12:00 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:483 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(483): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 483 [20-Feb-2024 11:12:00 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:12:00 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:594 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(594): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 594 [20-Feb-2024 11:12:00 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:12:00 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:540 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(540): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 540 [20-Feb-2024 11:12:00 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:12:25 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:483 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(483): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 483 [20-Feb-2024 11:12:25 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:12:25 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:12:25 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:12:25 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:594 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(594): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 594 [20-Feb-2024 11:12:25 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:540 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(540): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 540 [20-Feb-2024 11:12:54 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:12:54 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:13:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:13:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:13:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:13:54 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:13:54 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:14:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:14:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:483 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(483): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 483 [20-Feb-2024 11:14:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:14:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:15:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:15:50 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:15:50 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:16:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:483 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(483): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 483 [20-Feb-2024 11:16:24 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:16:50 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:16:50 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:16:56 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:16:56 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:17:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:540 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(540): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 540 [20-Feb-2024 11:17:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:483 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(483): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 483 [20-Feb-2024 11:17:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:17:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401 [20-Feb-2024 11:17:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:17:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:594 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(594): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 594 [20-Feb-2024 11:17:32 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:17:32 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:18:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:649 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(649): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 649 [20-Feb-2024 11:18:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:690 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(690): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 690 [20-Feb-2024 11:18:03 America/Mexico_City] PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /opt/nagios/share/nagiostv/connectors/livestatus.php:401 Stack trace: #0 /opt/nagios/share/nagiostv/connectors/livestatus.php(401): join() #1 {main} thrown in /opt/nagios/share/nagiostv/connectors/livestatus.php on line 401

sistemmsn avatar Feb 20 '24 17:02 sistemmsn

Hi @chriscareycode - and @sistemmsn

Chris - I encountered this with development for NEMS Linux 1.7, where PHP has been upgraded to 8.2. It's due to join() function deprecation.

Luckily, it's a very easy fix.

Please find all lines within ./connectors/livestatus.php containing $query = join($query_arr, "\n");

and replace with:

$query = implode("\n", $query_arr);

I'd do a PR but my repo deviates too far from yours, so hopefully the comment helps :)

Here is my fix on NEMS: https://github.com/NEMSLinux/nems-admin/blob/master/build/146-nagiostv#L48-L49

NEMSLinux avatar Mar 12 '24 18:03 NEMSLinux

Thanks @NEMSLinux ! super helpful ! This will go out on the next release

chriscareycode avatar Mar 16 '24 19:03 chriscareycode