Page 1 of 1

Dashlet config file location

Posted: Fri Jun 05, 2020 6:31 am
by techgeek
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

Re: Dashlet config file location

Posted: Fri Jun 05, 2020 7:08 am
by scottwilkerson
They are put in the nagiosxi database for each user, but here's a different approach

In the URL field, just enter

Code: Select all

/nagiosxi/includes/components/nocscreen/noc.php
Then it will be relative to whatever server you are looking at

Re: Dashlet config file location

Posted: Fri Jun 05, 2020 7:39 am
by techgeek
:D :D Brilliant it works! I can't believe I didn't think of that so simple. Thanks Scott appreciate the quick response - I wish every other Vendor we deal with had such excellent suppport!

Re: Dashlet config file location

Posted: Fri Jun 05, 2020 7:57 am
by scottwilkerson
techgeek wrote::D :D Brilliant it works! I can't believe I didn't think of that so simple. Thanks Scott appreciate the quick response - I wish every other Vendor we deal with had such excellent suppport!
Thanks! Glad to hear this works

Locking thread