Page 1 of 2
Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 8:39 am
by BanditBBS
So I just upgraded my dev server to XI 5.2.6 and one of the graphs on my dashboard is now showing up blank with the words "XSS Detected. Object does not exist"
I can't see any graphs for this service anywhere.
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 11:17 am
by tmcdonald
sed -i 's/nagiosccm_get_service_id/get_service_id/' /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php
Known issue, will be fixed in the next release.
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 11:24 am
by BanditBBS
didn't fix it. I verified the substitute worked, refreshed page source, closed all browsers, relaunched......Still showing the error on the graph on my home dashboard.
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 11:27 am
by jomann
Hey Bandit,
What is the object that is having a problem? Is it a host or service and is it a static one from a configuration file or is it defined in the CCM?
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 11:31 am
by BanditBBS
Service defined in the ccm
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 12:13 pm
by tmcdonald
Try this one:
sed -i 's/exit.*//' /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 12:18 pm
by jomann
Use the above sed replace that Trevor posted for the time being. We are changing the way it does the XSS check for the next bug fix release.
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 12:22 pm
by BanditBBS
jomann wrote:Use the above sed replace that Trevor for the time being. We are changing the way it does the XSS check for the next bug fix release.
Trevor's fix did the trick, all good now!
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 1:28 pm
by tmcdonald
Well, it was the devs' fix - credit where credit is due :)
Close 'er up?
Re: Upgrade to XI 5.2.6 broke a graph
Posted: Tue Apr 05, 2016 1:59 pm
by BanditBBS
Yeah, feel free to close it up. I assume with this bug/fix once I check it out on dev for a few days its safe to upgrade prod and apply same fix?