Plotting a simple text file in cacti

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

Moderators: Developers, Moderators

Post Reply
bearkids
Posts: 7
Joined: Wed Jul 11, 2007 2:17 am

Plotting a simple text file in cacti

Post by bearkids »

I have some data stored in a text file. How could I import the data, plot it and display it in cacti?

Thanks very much.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You need to parse the data out with some sort of script and then have templates in cacti which properly import/handle the data. Read in the documentation site on how to do this.
bearkids
Posts: 7
Joined: Wed Jul 11, 2007 2:17 am

Post by bearkids »

BSOD2600 wrote:You need to parse the data out with some sort of script and then have templates in cacti which properly import/handle the data. Read in the documentation site on how to do this.
Is that mean I need to write a script to to extract data from the text file and write a xml to define how the extracted data to be stored in rrd format?
After that, I need to have data template and graph template to display it.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ya, basically.
bearkids
Posts: 7
Joined: Wed Jul 11, 2007 2:17 am

Post by bearkids »

After I create a new data queries, create templates and put it to a device, will my script run per 5 minutes? Since my data in text file will not update fequently, I do not need to run it so fequently.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yes, cacti will collect the data from it every 5 minutes. If its not a large performance hit, then you can leave it as is. Otherwise, install the Boost plugin and change it to run not so frequently.
bearkids
Posts: 7
Joined: Wed Jul 11, 2007 2:17 am

Post by bearkids »

Thanks very much. Let me try it. :D
Post Reply

Who is online

Users browsing this forum: macan and 1 guest