Dashlet config file location

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
techgeek
Posts: 18
Joined: Mon Mar 25, 2019 5:50 am

Dashlet config file location

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Dashlet config file location

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
techgeek
Posts: 18
Joined: Mon Mar 25, 2019 5:50 am

Re: Dashlet config file location

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Dashlet config file location

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked