[collectd] collection.cgi issue with vserver

sheshka.a sheshka.a at extmedia.com
Wed May 10 22:39:03 CEST 2006


Unfortunately script from SVN has same issue.
Diff doesn't shows difference in directory handling 

diff collection.cgi ./cgi-bin/collection.cgi
238,249d237
<               fanspeed => [
<                       'DEF:temp_avg={file}:value:AVERAGE',
<                       'DEF:temp_min={file}:value:MIN',
<                       'DEF:temp_max={file}:value:MAX',
<                       "AREA:temp_max#$HalfBlue",
<                       "AREA:temp_min#$Canvas",
<                       "LINE1:temp_avg#$FullBlue:RPM",
<                       'GPRINT:temp_min:MIN:%4.1lf Min,',
<                       'GPRINT:temp_avg:AVERAGE:%4.1lf Avg,',
<                       'GPRINT:temp_max:MAX:%4.1lf Max,',
<                       'GPRINT:temp_avg:LAST:%4.1lf Last\l'
<               ],
649a638,649
>               sensors => [
>                       'DEF:temp_avg={file}:value:AVERAGE',
>                       'DEF:temp_min={file}:value:MIN',
>                       'DEF:temp_max={file}:value:MAX',
>                       "AREA:temp_max#$HalfBlue",
>                       "AREA:temp_min#$Canvas",
>                       "LINE1:temp_avg#$FullBlue:Value",
>                       'GPRINT:temp_min:MIN:%4.1lf Min,',
>                       'GPRINT:temp_avg:AVERAGE:%4.1lf Avg,',
>                       'GPRINT:temp_max:MAX:%4.1lf Max,',
>                       'GPRINT:temp_avg:LAST:%4.1lf Last\l'
>               ],
694,705d693
<               temperature => [
<                       'DEF:temp_avg={file}:value:AVERAGE',
<                       'DEF:temp_min={file}:value:MIN',
<                       'DEF:temp_max={file}:value:MAX',
<                       "AREA:temp_max#$HalfBlue",
<                       "AREA:temp_min#$Canvas",
<                       "LINE1:temp_avg#$FullBlue:Value",
<                       'GPRINT:temp_min:MIN:%4.1lf Min,',
<                       'GPRINT:temp_avg:AVERAGE:%4.1lf Avg,',
<                       'GPRINT:temp_max:MAX:%4.1lf Max,',
<                       'GPRINT:temp_avg:LAST:%4.1lf Last\l'
<               ],
860d847
<       $GraphDefs->{'sensors'} = $GraphDefs->{'temperature'};
875d861
<       fanspeed => ['-t', '{host} fanspeed {inst}', '-v', 'rpm'],
890d875
<       temperature => ['-t', '{host} temperature {inst}', '-v', 'Celsius'],
914c899
<       users => 1
 ---
>     users => 1
1460c1445
<                               Directory => '/var/lib/collectd',
 ---
>                               Directory => '/opt/collectd/var/lib/collectd',
1477c1462
<       while (@info and -d $AbsDir . '/' . $info[0])
 ---
>       while (@info and -d $AbsDir . '/' . $Info[0])
 

Florian Forster пишет: 

> Hi Alexey, 
> 
> On Wed, May 10, 2006 at 05:38:01PM +0300, Sheshka, Alexey wrote:
> > I have installed collectd it works  fine, but collection.cgi doesn't 
> > shows anything  about  vservers at
> > http://myserver/cgi-bin/collection.cgi/vservers/7269
> > Apache log says: 
> 
> that's due to a bug in the script which is fixed in the subversion
> repository. Unfortunately I forgot to put the fix in the patch
> release(s). But next one(s) will ship with a good version.. 
> 
> Meanwhile you can get the up-to-date version here:
> <http://subversion.verplant.org/collectd/trunk/contrib/collection.cgi> 
> 
> Regards,
> -octo
> -- 
> Florian octo Forster
> Hacker in training
> GnuPG: 0x91523C3D
> http://verplant.org/
 




More information about the collectd mailing list