-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
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): The php options are: log_errors = and 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 |
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 and replace with:
I'd do a PR but my repo deviates too far from yours, so hopefully the comment helps :) Here is my fix on NEMS: |
Thanks @NEMSLinux ! super helpful ! |
Is there a reason why the nagiostv can't see it using the livestatus
I manually ran the connector and it threw these errors
The text was updated successfully, but these errors were encountered: