[rrd-users] About rrdtool dump method
Wagner Pereira
wpereira at pop-sp.rnp.br
Tue Jun 22 16:09:03 CEST 2010
Howie,
I ensure you: I'm running this rrdtool command from inside the rra
directory. See below:
-------------------------
cacti:/var/lib/cacti/rra# ls -la
total 19292
drwxrwx--- 2 root www-data 12288 Jun 22 10:48 .
drwxr-xr-x 3 root root 4096 Mai 11 09:26 ..
-rw-r--r-- 1 www-data www-data 0 Jun 22 10:44 alpine_traffic_in_29.rrd
-------------------------
And I tried in three different ways (pure, -n, --no-header):
-------------------------
cacti:/var/lib/cacti/rra# rrdtool dump alpine_traffic_in_29.rrd >
alpine_traffic_in_29.xml
ERROR: mmaping file 'alpine_traffic_in_29.rrd': Invalid argument
cacti:/var/lib/cacti/rra# rrdtool dump -n alpine_traffic_in_29.rrd >
alpine_traffic_in_29.xml
ERROR: mmaping file 'alpine_traffic_in_29.rrd': Invalid argument
cacti:/var/lib/cacti/rra# rrdtool dump --no-header
alpine_traffic_in_29.rrd > alpine_traffic_in_29.xml
ERROR: mmaping file 'alpine_traffic_in_29.rrd': Invalid argument
-------------------------
This is my rrdtool version:
-------------------------
cacti:/var/lib/cacti/rra# apt-cache policy rrdtool
rrdtool:
Installed: 1.3.1-4
-------------------------
Att,
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901
fone at RNP: 011 10158902
Em 22/6/2010 10:55, Howard Jones escreveu:
> On 22/06/2010 14:51, Wagner Pereira wrote:
>
>> Hey, Howie. Thanks for the tip. I'll give xargs a try.
>>
>> But before I'd like to understand what happened here, when I...
>>
>> ------------------
>> rrdtool dump -n alpine_traffic_in_29.rrd> alpine_traffic_in_29.xml
>> ------------------
>>
>> This error was returned...
>>
>> ------------------
>> ERROR: mmaping file 'alpine_traffic_in_29.rrd': Argumento inválido
>> ------------------
>>
>> Any clue? Google was not helpful enough.
>>
>> Att,
>>
>>
> My first guess would be that you didn't cd to the cacti/rra directory
> before running the command. I think it's trying to tell you that it
> can't find the file. Ask on the list if it is more complicated than
> that, though.
>
> Howie
>
More information about the rrd-users
mailing list