Page 1 of 1

Help with Nagios Graph Explorer fix after upgrade to 2.8c

Posted: Fri May 09, 2014 12:06 pm
by ecarrasq
System Info

Linux Distribution and version?

*Linux fwapp003.wvus.org 2.6.18-371.4.1.el5PAE #1 SMP Thu Jan 30 06:51:58 EST 2014 i686 i686 i386 GNU/Linux
CentOS release 5.10 (Final)


32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

Forced SSL on NagiosXi login web screen

Nagios Xi version: Nagios XI 2012R2.8

Issue:


I'm trying to fix the issue with Nagios Graph Explorer not working after the upgrade to 2.8c.

Per lmiltchev on another post, he recommended the following fix:
I was able to recreate the issue on one of my test boxes. It is a bug, which should be fixed in the next release. Meanwhile, you can try the following patch (workaround). Make a backup of your "dashlet.inc.php" file:


cd /usr/local/nagiosxi/html/includes/components/graphexplorer
cp -p dashlet.inc.php dashlet.inc.php.backup


Open the "dashlet.inc.php" in a text editor, and file the following line (around line 20):


$url = get_base_url().$url;


Change it, so it is going to look like this:


if (strpos($url,"://") ===false){
$url = get_base_url().$url;
}


Save and exit. Let me know if this brings your old dashlets to life.


However, my line 20 does not look like the one suggested:
graph explorer.jpg
Please help.

Thank you,
Eddie

Re: Help with Nagios Graph Explorer fix after upgrade to 2.8

Posted: Fri May 09, 2014 1:17 pm
by tmcdonald
You might be able to just add in these lines:

Code: Select all

  // Check to make sure it's not using static hardcoded IPs
  if (strpos($url, "://") === FALSE) {
    $url = get_base_url().$url;
  }
just above the "switch($mode) {" and just below the "$hc_url = get_base_url().'/includes/components/highcharts/';" lines.

But it does look like you are running a different version than we are, or at least yours appears to be modified.

Re: Help with Nagios Graph Explorer fix after upgrade to 2.8

Posted: Tue May 13, 2014 4:27 pm
by ecarrasq
That fixed it thank you!

btw, I installed the NagiosXi2014 in our dev box to test it out, and it looks great!

Thank you for all you do,
Eddie