Here was my fix:
The easy part: ServerName - Use full FQDN in the Specific URL
For example: https://librenms.cooldomain.com/
Left hostname alone
nor for the hard part…
I had to create 2 shell scripts
First one named it: librenmsdockercron.sh
Contents:
15 0 * * * cd /opt/librenms/ && bash daily.sh
*/5 * * * * php -f /opt/librenms/html/plugins/Weathermap/map-poller.php
33 */6 * * * librenms /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
* * * * * librenms /opt/librenms/alerts.php >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/poll-billing.php >> /dev/null 2>&1
01 * * * * librenms /opt/librenms/billing-calculate.php >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/check-services.php >> /dev/null 2>&1
* * * * * php /opt/librenms/artisan schedule:run
Next shell script named: import-cron.sh
Contents:
#!/bin/sh
# Import cronjob
crontab -u librenms /opt/librenms/cronscript.sh
Next, I edited the docker compose file.
under the librenms section > volumes.
I have this
volumes:
- "./librenms:/data"
- "./librenmsdockercron.sh:/opt/librenms/cronscript.sh"
- "./import-cron.sh:/etc/cont-init.d/09-import-cron.sh"
This imports both files, and the 2nd file is auto run container is booted.