Greetings...

I changed the 'default' date range from the normal 30 hours down to 8 hours.

There are three files you would need to edit (back them up first!):
{Zenhome}/Products/ZenModel/DataRoot.py
{Zenhome}/Products/ZenModel/skins/zenmodel/viewPerformanceDetail.pt
{Zenhome}/Products/ZenModel/skins/zenmodel/viewGraphReport.pt

DataRoot.py -- there's a table around line 236 that holds the list of available 
time ranges, with time spans in seconds.  I added a new range (8 hours = 28800 
seconds), and I wanted to make this the new default.  So I ended up with 
something like this:
    defaultDateRange = 28800
    performanceDateRanges = [
        ('Today',28800,),
        ('Hourly',129600,),
        ('Daily',864000,),
        ('Weekly',3628800,),
        ('Monthly',41472000,),
        ('Yearly',62208000,)
    ]

But, just telling DataRoot.py that 28800 was the 'default' did not make it the 
default when the performance graphs were displayed.  Eventually I found the 
template files.

viewGraphReport.pt -- around line 52, look for
     tableName, 'drange', 129600)">
and change that 129600 value to your new default (28800 in my case).

viewPerformanceDetail.pt -- around line 15, you'll find the same line as above, 
make the same change to this default value.

Once the DataRoot.pyc file gets updated, it should work.

Note that you'll have to re-apply these edits when you upgrade your version of 
Zenoss.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=31950#31950

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to