Graphing flat files

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

Moderators: Developers, Moderators

Post Reply
squid3030
Posts: 3
Joined: Thu Feb 07, 2008 7:35 am

Graphing flat files

Post by squid3030 »

Howdy,Am a cacti newbie and would like to graph some information in the scenario belowI have cacti 0.8.7a running on a linux server, raw data is on a client machine on the same network as the server. After every 15 min a text file is created on the client machine, how do we get this raw data text file from the client machine transfered to the server and graphed on cacti. Below is a sample of the text file

Time NetworkType Attempted Answered

8/14/2007 0:00 0 10 10
8/14/2007 0:00 1 5 5
8/14/2007 0:00 2 3 3
8/14/2007 0:15 0 0 0
8/14/2007 0:15 1 2 2
8/14/2007 0:15 2 0 0
8/14/2007 0:30 0 0 0
8/14/2007 0:30 1 1 1
8/14/2007 0:30 2 3 3

Kind Regards
Alex
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Moving to General.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
squid3030
Posts: 3
Joined: Thu Feb 07, 2008 7:35 am

Post by squid3030 »

fmangeant
Kindly note that Cacti is already ready running

Regards
Alex
next2you
Posts: 7
Joined: Fri Feb 01, 2008 3:02 am

Post by next2you »

Basically cacti is a very nice tool to produce graphs out of round robin databses (rrdtool). So a good understanding of rrdtool and its working is essential. You might try http://oss.oetiker.ch/rrdtool/doc/rrdtool.en.html for a understanding.

I had a similar problem and decided to produce RRD files on the client machines and populate them with data there. I then dump them on the client and retrieve them from the cacti server via http. There they are restored into a rrd file. The rrd files reside under
cacti/rra. The next step would be to define the structure of your rrd file in the Templates/Data Templates. Then define the data sources (Management/Datasources) to point to your rrd data files. After that you can create graph templates and graphs.

I didn't use the cacti data gathering features since my cacti server is not inside the production environment and by pulling files via http I have just to open a very small hole into my production environment.

CU

Christian[/b]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You'll need to write a script to collect the data from the remote machine(s) and then spit it out for cacti. read in the documentation site on the basics of script/template creation.
squid3030
Posts: 3
Joined: Thu Feb 07, 2008 7:35 am

Post by squid3030 »

Sorry BSOD2600 am not good in scripting, however I will try thanks for your pointer.

Alex
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

It can be ANY language you want, just as long as it spits out the data in the format cacti needs...
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests