Dashlet config file location
Posted: Fri Jun 05, 2020 6:31 am
Hi Folks,
Is there any way to manually edit the url from the command line of an existing dashlet that was created using the "Custom URL Dashlet"?
The context of my question is - we have a Primary and Secondary NagiosXI and we want to keep the hosts and services monitored on the primary the same on the secondary. That way if our Primary breaks down we have the secondary waiting in the Wings to take over.
We have a script that restores the daily backup from the primary to the secondary. Everything works perfectly afterwards except that as the url in the primary in the dashlet looks like this https://Nagiosxi01.serverx.net/nagiosxi/includes/components/nocscreen/noc.php when it gets restored in the secondary we have to manually correct it to https://Nagiosxi02.serverx.net/nagiosxi/includes/components/nocscreen/noc.php.
So if we knew where the text is stored we could try to script changing it or maybe there is an easier way? I tried changing the url in the primary to https://localhost/nagiosxi/includes/components/nocscreen/noc.php localhost but that did not work. Tailing the log files when I create the dashlet does not help me find where it gets created and I do not see it in here /usr/local/nagiosxi/html/dashboards/dashboard.php either
Is there any way to manually edit the url from the command line of an existing dashlet that was created using the "Custom URL Dashlet"?
The context of my question is - we have a Primary and Secondary NagiosXI and we want to keep the hosts and services monitored on the primary the same on the secondary. That way if our Primary breaks down we have the secondary waiting in the Wings to take over.
We have a script that restores the daily backup from the primary to the secondary. Everything works perfectly afterwards except that as the url in the primary in the dashlet looks like this https://Nagiosxi01.serverx.net/nagiosxi/includes/components/nocscreen/noc.php when it gets restored in the secondary we have to manually correct it to https://Nagiosxi02.serverx.net/nagiosxi/includes/components/nocscreen/noc.php.
So if we knew where the text is stored we could try to script changing it or maybe there is an easier way? I tried changing the url in the primary to https://localhost/nagiosxi/includes/components/nocscreen/noc.php localhost but that did not work. Tailing the log files when I create the dashlet does not help me find where it gets created and I do not see it in here /usr/local/nagiosxi/html/dashboards/dashboard.php either