-
-
Notifications
You must be signed in to change notification settings - Fork 438
Description
Describe the bug
/pollers.php:test_database_connection()
/lib/poller.php:poller_connect_to_remote()
/cactid.php:db_check_reconnect()
All do not have the correct parameter list when they call /lib/database.php:db_connect_real()
The change where SSL parameters were added to the function signature was not properly reflected in these call sites. This causes issues configuring remote pollers that use SSL for their database connections.
Call sites are here:
https://github.com/Cacti/cacti/blob/1.2.x/pollers.php#L766
https://github.com/Cacti/cacti/blob/1.2.x/lib/poller.php#L1132
https://github.com/Cacti/cacti/blob/1.2.x/cactid.php#L263
The first 2 call sites simply need the retries parameter slotted in, but the final one seems to predate the addition of the extra SSL parameters and that might be harder to fix.