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.
Use cacti or mrtg to generate graphs based off ms-sql data?
Moderators: Developers, Moderators
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
Who is online
Users browsing this forum: No registered users and 4 guests