Upgrade to XI 5.2.6 broke a graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Upgrade to XI 5.2.6 broke a graph

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Upgrade to XI 5.2.6 broke a graph

Post 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.
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Upgrade to XI 5.2.6 broke a graph

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Upgrade to XI 5.2.6 broke a graph

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Upgrade to XI 5.2.6 broke a graph

Post by BanditBBS »

Service defined in the ccm
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Upgrade to XI 5.2.6 broke a graph

Post by tmcdonald »

Try this one:

sed -i 's/exit.*//' /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php
Former Nagios employee
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Upgrade to XI 5.2.6 broke a graph

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Upgrade to XI 5.2.6 broke a graph

Post 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!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Upgrade to XI 5.2.6 broke a graph

Post by tmcdonald »

Well, it was the devs' fix - credit where credit is due :)

Close 'er up?
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Upgrade to XI 5.2.6 broke a graph

Post 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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked