[rrd-developers] RRDCacheD - Client rewriting path

Tobias Oetiker tobi at oetiker.ch
Sat Aug 8 16:19:24 CEST 2009


Hi Yann,

Today Yann Jouanin wrote:

> Hello list,
>
> It seems the behavior of RRD client when using RRDCacheD can make trouble
> when using RRDCacheD on another host than the one where using client.
>
> The translation between relative path and absolute path is done in client
> code (rrdc_flush) while it should only be done by the server.
>
> This causes update to fail because the path is badly rewritten.
> I had to comment the following line to fix this.
>
>
>
> int rrdc_flush (const char *filename) /* {{{ */
> {
> .........
>
>
>   /* change to absolute path for rrdcached */
> /*  if (*filename != '/' && realpath(filename, file_path) != NULL)
>       filename = file_path; */
> ............

Yann, can you elaborate how you would handle relative path names on
the server side ?

cheers
tobi



-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list