Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jun 20, 2019 2:41 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject:
PostPosted: Fri Jan 18, 2002 7:18 pm 
Offline

Joined: Wed Nov 28, 2001 7:00 pm
Posts: 20
I know I have seen the ability to get csv data from an rrd database but can not find where I saw it...

Any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 18, 2002 8:38 pm 
It is easy to dump .RRD to .XML via the RRDTOOL command itself. Perhaps you can convert from XML to CSV more easily...


Top
  
 
 Post subject:
PostPosted: Fri Jan 18, 2002 8:41 pm 
Offline

Joined: Wed Nov 28, 2001 7:00 pm
Posts: 20
I was hoping for a procedure that verified that the data was correct (someone else tested it...)

What I came up with is:
passthru ("/opt/rrd/bin/rrdtool dump
/www/htdocs/changed/internal/rrd/rra/SMS_in.rrd|grep -v NaN
| grep '<row>' | tr e ' '
|awk {'print "Q"$2"qcq"$3"qcq"$9"Q"'}
| tr Q '"'|tr c ','|tr q '"'");

This is a php statement...



<font size=-1>[ This Message was edited by: solarix on 2002-01-18 21:43 ]</font>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group