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
Dashlet config file location
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Dashlet config file location
They are put in the nagiosxi database for each user, but here's a different approach
In the URL field, just enter
Then it will be relative to whatever server you are looking at
In the URL field, just enter
Code: Select all
/nagiosxi/includes/components/nocscreen/noc.php
Re: Dashlet config file location
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!
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Dashlet config file location
Thanks! Glad to hear this workstechgeek wrote: 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!
Locking thread