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
Graphing flat files
Moderators: Developers, Moderators
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
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]
[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]
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]
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]
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.
| 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 |
It can be ANY language you want, just as long as it spits out the data in the format cacti needs...
| 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 |
Who is online
Users browsing this forum: No registered users and 5 guests