[rrd-users] Question about rrdcached
Jairo Gubler
jairo.gubler at digitro.com.br
Tue Sep 25 22:02:53 CEST 2012
I tried, but this didn't solved the problem.
ps -ef |grep rrdcached
root 10060 1 0 18:44 ? 00:00:00 rrdcached -w 600 -z 10
-j /dados/rrd/cached/ -p /dados/rrd/rrdcached.pid -b /dados/rrd -l
192.168.173.122
rrdtool fetch --daemon 192.168.173.122
193.181.1.98/192.168.1.241/uParticao/31-_.rrd MAX -s $(date --date "Aug
01 00:00:00 2012" +%s) -e $(date --date "Aug 08 00:00:00 2012" +%s)
ERROR: opening '193.181.1.98/192.168.1.241/uParticao/31-_.rrd': No such
file or directory
The file exists.
ls -l /dados/rrd/193.181.1.98/192.168.1.241/uParticao/31-_.rrd
-rw-r--r-- 1 root root 277216 Sep 2 13:46
/dados/rrd/193.181.1.98/192.168.1.241/uParticao/31-_.rrd
Jairo Gubler
On 09/25/2012 01:27 AM, Steve Shipway wrote:
> The order of the parameters to rrdcached are important. Many apply only to the interface definitions following them. So, your -b option (define base directory) should come before the -l (define listen port) option:
>
> rrdcached -w 600 -z 10 -j /dados/rrd/cached/ -p /dados/rrd/rrdcached.pid -b /dados/rrd -l 192.168.173.122
>
> The reason for this is security -- you can define multiple listen ports with different levels of security and permissions.
>
> The default behaviour on a TCP socket is -B -- disallow absolute ports and everything must be relative to the -b basedir. Again, this is for security.
>
> So, with the -l option at the end, the basedir should take effect rather than the cwd where you started the rrdcached, and so this should work:
>
> rrdtool fetch --daemon 192.168.173.122
> 193.181.1.98/192.168.1.241/uParticao/31-_.rrd MAX -s $(date --date "Aug
> 01 00:00:00 2012" +%s) -e $(date --date "Aug 08 00:00:00 2012" +%s)
>
> assuming the rrd file exists on the rrdcached server, of course.
>
> Steve Shipway
> University of Auckland ITS
> UNIX Systems Design Lead
> s.shipway at auckland.ac.nz
> Ph: +64 9 373 7599 ext 86487
>
>
> ________________________________________
> From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch [rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] on behalf of Jairo Gubler [jairo.gubler at digitro.com.br]
> Sent: Saturday, 22 September 2012 5:16 a.m.
> To: rrd-users at lists.oetiker.ch
> Subject: [rrd-users] Question about rrdcached
>
> Mustn't rrdtool connect to a remote host, through rrdcached? Was there
> something wrong in my test below?
>
> First I ran rrdcached:
> rrdcached -l 192.168.173.122 -w 600 -z 10 -j /dados/rrd/cached/ -p
> /dados/rrd/rrdcached.pid -b /dados/rrd/
>
>
> When I tryed to use '"rrdtool fetch" (from a remote machine or local
> machine through TCP) I got some errors:
>
> rrdtool fetch --daemon 192.168.173.122
> 193.181.1.98/192.168.1.241/uParticao/31-_.rrd MAX -s $(date --date "Aug
> 01 00:00:00 2012" +%s) -e $(date --date "Aug 08 00:00:00 2012" +%s)
> ERROR: opening '193.181.1.98/192.168.1.241/uParticao/31-_.rrd': No such
> file or directory
>
> rrdtool fetch --daemon 192.168.173.122
> /dados/rrd/193.181.1.98/192.168.1.241/uParticao/31-_.rrd MAX -s $(date
> --date "Aug 01 00:00:00 2012" +%s) -e $(date --date "Aug 08 00:00:00
> 2012" +%s)
> ERROR: absolute path names not allowed when talking to a remote daemon
>
>
> Without rrdcached:
> rrdtool fetch /dados/rrd/193.181.1.98/192.168.1.241/uParticao/31-_.rrd
> MAX -s $(date --date "Aug 01 00:00:00 2012" +%s) -e $(date --date "Aug
> 08 00:00:00 2012" +%s) | head
> var
> 1343790300: 9.0000000000e+00
> 1343790600: 9.0000000000e+00
> 1343790900: 9.0000000000e+00
> 1343791200: 9.0000000000e+00
> 1343791500: 9.0000000000e+00
> 1343791800: 9.0000000000e+00
> 1343792100: 9.0000000000e+00
> 1343792400: 9.0000000000e+00
>
>
> *Versions:*
> RRDCacheD 1.4.7
> RRDtool 1.4.7
>
> CentOS 5.8 32bits
>
>
>
>
>
> Jairo Gubler
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>
--
*Jairo Gubler*
/Especialista em Tecnologia/
/DDT - Diretoria de Desenvolvimento/
*DÍGITRO TECNOLOGIA*
*E-mail:* jairo.gubler at digitro.com.br <mailto:jairo.gubler at digitro.com.br>
*Fone:* +55 48 3281-7213 / +55 48 3281-7000
*Fax:* +55 48 3281-7299
*Site:* www.digitro.com <http://www.digitro.com>
/"Antes de imprimir, pense na sua responsabilidade e no seu compromisso
com o meio ambiente"/
Esta mensagem, incluindo seus anexos, é reservada somente à Dígitro e ao
destinatário da mensagem. Caso você tenha recebido esta mensagem por
engano, queira por favor, retorná-la ao remetente e apagá-la de seus
arquivos.
More information about the rrd-users
mailing list