Use cacti or mrtg to generate graphs based off ms-sql data?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pifiu
Posts: 1
Joined: Wed Sep 12, 2007 9:31 pm

Use cacti or mrtg to generate graphs based off ms-sql data?

Post by pifiu »

I have an MS-SQL database that stores sales informations and everything from customers to products.

I was wondering if there is any way to use some sort of a graphing system like cacti or mrtg to gather that data and generate real time graphs of whats going on.

For example get the sales value from the DB and graph it say every day, hour, or w/e time.

Same thing with items in stock, etc. Is it possible to filter data? Say make a drop down menu to change products and generate a graph based on that? I dont see why not if the previous is possible.

Is something like this possible? I've never setup, or compiled anything like this so if anyone could help me or help me get started on the right track to see if this is even possible it would help.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You would need to write an sql query/script that pulls/parses/spits out the data you want in a format for cacti. Read through http://docs.cacti.net/node/70 on how to go about creating your own script and needed templates. Plenty of existing examples in the script forum too, in case you get stuck.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I use this very method to graph host metrics and it is very fast. I have a system that forwards information to the database asynchronously from Cacti's poller, and then Cacti simply graphs the latest value in the database repository.

Using this method combined with Cactid, I can easily graph more than 10,000 hosts.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests