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

Configuring connector livestatus #80

Closed
sistemmsn opened this issue Sep 1, 2023 · 4 comments
Closed

Configuring connector livestatus #80

sistemmsn opened this issue Sep 1, 2023 · 4 comments

Comments

@sistemmsn
Copy link

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
@chriscareycode
Copy link
Owner

chriscareycode commented Sep 13, 2023

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 =

@sistemmsn
Copy link
Author

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

@NEMSLinux
Copy link

NEMSLinux commented Mar 12, 2024

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

@chriscareycode
Copy link
Owner

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

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

3 participants