Version 0.2 of Collectd Graph Panel (CGP) has been released. This version has some interesting new features and changes since version 0.1.
A new interface is introduced, based on Daniel Von Fange’s styling. A little bit of web 2.0 ajax is used to expand and collapse plugin information on the host page. The width and heigth of a graph is configurable, also the bigger detailed one. UnixSock flush support is added to be able to let collectd write cached data to the rrd file, before an up-to-date graph of the data is generated. CPU support for Linux 2.4 kernel and Swap I/O support is added. And some changes under the hood.
Download the .tgz package, the patch file to upgrade from v0.1 or checkout the latest version from my public git repository.
Download: http://pommi.nethuis.nl/…/cgp-0.2.tgz
Patch: http://pommi.nethuis.nl/…/cgp-0.1-0.2.patch.gz
Git: http://git.nethuis.nl/pub/cgp.git
Thanks for the release! I tried it but I only get a page with βuncategorizedβ on it. What could be wrong? Collection3 works fine.
Regards.
You should see “uncategorized” and a list of hosts your collectd is monitoring. When you see no hosts, you have to create the file ‘conf/config.local.php’ and copy the settings you need to overrule from ‘conf/config.php’. For example, when your collectd installation stores the rrd files somewhere else than in ‘/var/lib/collectd/rrd’, you have to set this in ‘conf/config.local.php’.
Thanks for your help. I’m also using Debian and rrd files are stored in the default directory. I don’t know what else can I add to config.local.php.
Cheers.
hmmz, interesting. Is there something in the error.log of your webserver?
No, I’m getting no errors from apache. This is what I get: http://img706.imageshack.us/img706/9853/cgp1263236627442.png
After a mail conversation with Fill and a temporary 0.21 version with more debug information, we couldn’t see to find the problem. When you have the same problem as Fil and if you are able to debug the problem, please leave a reply.
please keep up the hard work on this. it is much appreciated!
working great on RHEL5
thanks, that’s what I was looking for
Really great complement to collectd, nice work! π
Thanks for your work, btw will You implement host comparision into cdp panel as collection cgi panel has ? It’s realy helpfull if we want check graphs for more than one host.
Hi Karpiu, a better way to compare graphs of multiple hosts is one of my needs too. I don’t know how to implement it exactly yet. I think first of all better navigation from the detail page to other hosts will be an improvement.
Hi, secound case in cdp panel are digest on first page on the right of host name, why is wrong ? because I have more than 2k hosts π so It’s realy slow to generate those digits.
And yes better navigation from detail page to other host will be a good improvement π
Hi Karpiu, a configuration option ‘showload’ will be added to be able to disable the load averages on the overview page. It is already available in the git repository.
I’ve waited a long time for such a great gui for collectd. Many thanks to you. It isn’t very difficult to code plugins, so I’ve coded one for apache myself. Do you plan to add other plugins?
Thanks a lot for the compliment. The ultimate goal is to support all Collectd plugins. There are already a couple of new plugins available in the development version, mostly developed by Manuel. Please send me your Apache plugin and I will add it to CGP.
Any plans for a bind one? Or more info about how the plugin system works so that I can try and create one?
Thanks!
I’ll try to add bind support before the next release (v0.3). When you want to add support for a plugin yourself, you have to poke around in the plugin directory. In many cases you can copy and modify an existing plugin.
It is really necessary to generate the info “Error: plugin not availble (wireless).” through PHP GD? If you don’t have it installed you are like “where the hell are my graphs!” then you look at the error.log, see missing method… installing GD and all for it only to see that you are missing a settings for plugin, lol.
Anyway (forget) I love it. Works out-of-box (almost) and looks sexy π
You’ve got a point there. GD isn’t really necessary if the errors generated by GD can be replaced with something else. I have to think about this. Any suggestions?
If it is the only place where you use GD I suggest just show plain-text error π
Or if you can’t (layout, loops, w/e) just create image pluginerror.png with text “Error: plugin not available or contains unknown characters.” and ship it with the tar.gz π
With the current web layout the $plugin (name) it is not necessary – there is <h3> with name above it π
Anyway any plans to release some more plugins? I was trying to create one for DNS but I kinda failed…
Also at
type/Default.class.php:195:$sources = str_replace(‘.’, ‘_’, $sources);
Replacing . with _ it’s some kind of security reason? My graphs were drawing with legend “www_google_com” rather than “www.google.com” and I deleted this line. Everything (for me) is still working π
A plain-text error is not possible when requesting an image, but a static image could be a solution for that. π
I have also removed that line in a new commit. I think it is not needed too. Let’s see how it works out.
Apache error.log :
Undefined index: h in /var/www/html/collectd/inc/html.inc.php on line 98
Undefined index: p in /var/www/html/collectd/inc/html.inc.php on line 100
Undefined index: pi in /var/www/html/collectd/inc/html.inc.php on line 102
Undefined index: t in /var/www/html/collectd/inc/html.inc.php on line 104
Undefined index: ti in /var/www/html/collectd/inc/html.inc.php on line 106
Undefined variable: path in /var/www/html/collectd/inc/html.inc.php on line 109
On Centos 5.5.
CGP version 0.21
Do you have any clues ?
Regards
Well never mind. I found out that i had’nt configured collectd for makeing rrd data.
Dooh.
Keep up the good work.
Regards.
Awesome work. Thanks so much for putting this together. Any plans for supporting the netlink plugin?
After a little while of silence I continued developing CGP. The netlink plugin has been added to the development version.
I really like CGP….
We use it at work (along with other collectd frontend, but that’s the first we check). We were missing the memcached plugin badly… so I’ve decided to write it :
http://github.com/jrottenberg/cgp/commit/bed55cd6754aaefc5f5dbdea9756a4a575d54487
Let me know if that looks good to you, I’m terrible with colors and could not find a doc with color to use with CGP standard (if any)…
I’d be very happy if you can incorporate it.
Thank you again for CGP.
Thanks a lot Julien! I have cherry-picked your commit.
There is no CGP color standard. π Normally I use the colors from collection3, that is shipped with Collectd. Or I use the colors from the Collectd Wiki. But if there is a nicer color palette, I use other colors. Your colors are fine!
Thank you !
I’ve added another plugin for nfs
http://github.com/jrottenberg/cgp/blob/master/plugin/nfs.php
Thank you very much for CGP! It’s been a real time saver for me, having been frustrated with perl solutions and their endless dependencies.
Pingback: digital trike | wonkablog