Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


graph template ordering patch

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
moonman
Cacti User


Joined: 06 Sep 2003
Posts: 94

PostPosted: Wed Aug 25, 2004 5:43 pm    Post subject: graph template ordering patch Reply with quote

this is a patch against 25.8 beta that add option to graph template for ordering.
this option is good if you work with hosts in tree and you group by query index.
now if you have graphs for traffic, errors and pps the graphs will be in alphabetic ordering :
errors
traffic
pps

but with my patch you can add order value of 100 to errors 50 to pps and 20 for traffic and then the order of the graphs in the tree will be:
traffic
pps
errors

you will also need to add two new fields to graph_templates_graph table with this sql command

ALTER TABLE `graph_templates_graph` ADD `graph_order` MEDIUMINT( 8 ) NOT NULL ,
ADD `t_graph_order` CHAR( 2 )

please test this patch and add it to the cvs

Thanks



order.zip
 Description:
the patch

Download
 Filename:  order.zip
 Filesize:  1.29 KB
 Downloaded:  96 Time(s)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group