Storing the RRD data into DB

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

manickkarthik
Posts: 7
Joined: Mon Feb 26, 2007 1:11 am

Storing the RRD data into DB

Post by manickkarthik »

Hello,

If you can then send the procedure for storing the RRD File data into Database.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Nope, Cacti is built around RRDTool for a reason.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
marnues
Posts: 40
Joined: Fri Mar 02, 2007 4:33 pm

Post by marnues »

so there is no chance of moving away from rrdtool?
it would really save my company a lot of hassle
we're probably going to do it at some point if you guys don't
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please read the stuff at the first link of my signature. It explains cacti's architecture. You will find, that rrdtool is used for storing and for graphing. If you plan to store the data in SQL tables, you won't be able to graph them with cacti.
Reinhard
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I don't suggest that you do that for various reasons. But more important to me is to know "what" is wrong with RRDtool? The reason that I ask this is that even if you "don't" use RRDtool as your graphing tool, it still provides the "BEST IN THE WORLD" data storage engine.

With things like RRDtools "fetch" command, or "export" commands, you can easily pass this to any graphing package you want.

So, your opinion counts. Please share it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
marnues
Posts: 40
Joined: Fri Mar 02, 2007 4:33 pm

Post by marnues »

there's an issue with rrdtool and nfs that routinely loses data
its not a huge loss, but it is certainly noticable
we don't have a useful replacement for nfs (replacing nfs would be such a huge task anyway, affecting much more than just Cacti) so we are hoping to eventually replace rrdtool with a DB and another graphing solution (I'm going to be looking into the speed of gnuplot soon)

we understand the principles behind rrdtool and would essentially emulate them as they do fit perfectly into Cacti
however, using a DB ensures that we are not losing data because the writer software encounters an nfs lock like it does with rrdtool
Exo7
Cacti User
Posts: 136
Joined: Wed Jul 13, 2005 4:50 pm

Post by Exo7 »

Maybe the server feature of rrdtool 1.2 is a solution ? it can send data to a remote rrd server via a TCP port.
Since it is now available to Cacti via the Boost plugin, it should be less work than rewriting everything.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, boost is quite nice I think. Reduced poller times by a factor of 10 in some cases. I am planning a 1.2 release to help with the Multi-process boost lockup issues. So, keep your eyes open for it.

I now see what you are speaking of with data loss. What is it about NFS that causes these problems. Is it that there are too many files in one directory or is it that nfs can't keep up with the write activity or something else?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Oh, you are mounting your RRA directory. Yuk. I don't recommend that, unless your HTTP server is different from the poller. I alway recommend that the poller have local storage, but HTML can symlink. However, boost WILL help this issue.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
marnues
Posts: 40
Joined: Fri Mar 02, 2007 4:33 pm

Post by marnues »

We actually have 6 boxes nearly dedicated to Cacti right now.
So we have to mount things remotely.

Someone else on my team has spoken with the rrdtool guys and apparently this is a known issue and it doesn't sound like it will be resolved with them anytime soon.
However, it looks like we're using rrdtool 1.0.49, so I will request an upgrade before we do anything drastic.
Thanks for the suggestion!
marnues
Posts: 40
Joined: Fri Mar 02, 2007 4:33 pm

Post by marnues »

Well, I guess I checked the wrong box.
We're using rrdtool 1.2.15
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should find that boost helps here. Again the important thing, more so than anything else, is that put your disc on the poller if at all possible.

Boost will allow you to have multiple web sites accessing that data without problem and will update your RRD files on demand using the boost_server from any of the X web sites.

However, if you are using Multi-process boost, we should be talking (some sort of engagement) before you begin.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
marnues
Posts: 40
Joined: Fri Mar 02, 2007 4:33 pm

Post by marnues »

Our rrd files are actually stored on an industrial strength file server farm with all kinds of bells and whistles, so no chance of them being on the same box

however, any chance of not completely redoing Cacti's internals would be something sweet, so any info on this boost stuff (the only boost I know of are c/c++ libraries) would be greatly appreciated
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Do you have the Plugin Architecture installed? Please advise. Then boost can be found under the plugin section of the forum. You can look at it, but the svn version is closer to what I would have you deploy:

svn checkout svn://svn.cacti.net/var/svnroot/cacti_plugins

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
marnues
Posts: 40
Joined: Fri Mar 02, 2007 4:33 pm

Post by marnues »

we are not using the plugin architecture
I'll have to discuss this with my boss and others involved in the project
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests