Discussion:
Zenoss Core Graph Width > 500
joanypony
2012-10-12 11:27:35 UTC
Permalink
joanypony [http://community.zenoss.org/people/joanypony] created the discussion

"Zenoss Core Graph Width > 500"

To view the discussion, visit: http://community.zenoss.org/message/69099#69099

--------------------------------------------------------------
Hi All,

Some of our company zenpacks have a width of > 500. Zenoss doesn't show the RHS of the graph once it goes over 500. It's fine in the reports, but not in the device interface. I know there's a fix listed at http://dev.zenoss.org/trac/ticket/7877 http://dev.zenoss.org/trac/ticket/7877. (I'm running Core 3.2.1)

There's an edit to graphPanel.js listed, but after that it says to
"recompile your javscript, and try running zope in debug mode (zopectl fg) and clearing your cache."

To be dense - how to I recompile the javascript and clear the cache? Does this fix work for core?

Thanks in advance!
Joan
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69099#69099]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
joanypony
2012-10-15 10:27:28 UTC
Permalink
joanypony [http://community.zenoss.org/people/joanypony] created the discussion

"Re: Zenoss Core Graph Width > 500"

To view the discussion, visit: http://community.zenoss.org/message/69158#69158

--------------------------------------------------------------
Anyone?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69158#69158]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
joanypony
2012-10-18 09:44:33 UTC
Permalink
joanypony [http://community.zenoss.org/people/joanypony] created the discussion

"Re: Zenoss Core Graph Width > 500"

To view the discussion, visit: http://community.zenoss.org/message/69333#69333

--------------------------------------------------------------
Hi All,

Ok, what I wasn't understanding was that to apply this change, you have to recompile the Java. To do this, you have to Java 1.6 installed on your Zenoss box. So for me (SL 6.1 and 3.2.1), the steps were as follows:

As root:
yum install yum-conf-epel
yum install java-1.6*
java -version
su - zenoss
cd /ask/zenoss/zenoss/Products/ZenUI3/browser/resources/js/zenoss/form/
cp graphPanel.js graphPanel.js.bak
vi graphPanel.js
(at line 127 add the following line as listed in http://dev.zenoss.org/trac/ticket/7877 http://dev.zenoss.org/trac/ticket/7877)

this.setWidth(size.width + 10);

wget http://dev.zenoss.com/trac/browser/trunk/inst/buildjs.sh?format=txt http://dev.zenoss.com/trac/browser/trunk/inst/buildjs.sh?format=txt
mv buildjs.sh?format=txt buildjs.sh
chmod +x buildjs.sh
./buildjs.sh

At this point you'll see that your graphs are now showing the correct width.

Hope this helps.

Regards,
Joan
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69333#69333]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...