Manually adding, removing graphs - possible?

145 views
Skip to first unread message

pintero

unread,
Mar 28, 2012, 3:26:05 PM3/28/12
to collectd-...@googlegroups.com
Hi!

I'm wondering, is it possible to remove (hide) some graphs and define some new ones?
For example i would like to hide all "if_errors" graphs and have separate graphs for download and upload (pretty hard to read upload data, if we have, say 12Mbit downlink and 768Kbit uplink)
I know how to edit collection.modified.cgi and graphdefs.cgi to tweak colors. lines etc. but hiding staff or creating new graphs seems too complex (if it's even possible). 
If i just remove the defs, i get broken picture image instead the graph. I guess there's also no way to tell the plugin to not create error rrds in the first place.. 

Kenneth Belitzky

unread,
May 14, 2012, 9:29:15 PM5/14/12
to collectd-...@googlegroups.com
Hi pintero, you show work your way out by modifying the graphdefs, just as you are doing. could you paste your code?
you might want to check on meta definitions too for more complex combinations and stuff.

Best regards,
Kenny

pintero

unread,
Jul 8, 2012, 1:40:04 PM7/8/12
to collectd-...@googlegroups.com
Well, I had same time to play with this again and unfortunately it still seems like a rocket science to me.
First, i can't even figure out, what is the difference between graphdefs.cgi and collection.modified.cgi. It seems as modifing graphdefs.cgi has no effect whatsoever... Yet they contain the same info..

When i try to delete section "if_errors => [ ... ]," from collection.modified.cgi, browser still displays broken image icon with location:
http://****/collectd-web/cgi-bin/collection.modified.cgi?action=show_graph;plugin=interface;type=if_errors;type_instance=eth0.1;host=*****;timespan=hour;start=19:30 Jul 8 2012;end=20:30 Jul 8 2012;

When i try to create a duplicate section of if_octets (hoping to tweak it, so it only shows upload) it wont show up.

Unless there is a documentation somewhere (which i doubt) or someone gives some direct hints for configs, i guess i'll be lost forever.
(there's no point of posting my code, since it's just the default one)

Thanks ;)
Reply all
Reply to author
Forward
0 new messages