Single data source - Multiple graph problem

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

Moderators: Developers, Moderators

Post Reply
grub
Posts: 2
Joined: Tue Mar 22, 2005 2:26 pm

Single data source - Multiple graph problem

Post by grub »

So, I have a script which is run through cacti to graph custom application data on all my hosts. Because all the data is easily available, I have the script send all the data for multiple graphs back through one Data Input Method and one Data Template

I have multiple Graph Templates that access data from this Data Template. Cacti seems to be running the script and populating new Data Sources for each Graph Template using this Data Template.

Is there any way to tell Cacti to only run the script once and reuse an already existing data source for multiple Graph Templates? I'm using Cacti 0.8.6.c.

Below is a simplified example of the problem. I have one Data Input Method that grabs memory info for a machine. I have one Graph Template to show real memory, and one to show swap. The poller does the below:

03/22/2005 07:50:02 PM - CMDPHP: Poller[0] Host[3] CMD: /www/cacti/local.scripts/memory-free.sh server1, output: realmax:514584 realfree:62176 swapmax:2048248 swapfree:1970768
03/22/2005 07:50:02 PM - CMDPHP: Poller[0] Host[3] CMD: /www/cacti/local.scripts/memory-free.sh server1, output: realmax:514584 realfree:62068 swapmax:2048248 swapfree:1970768
03/22/2005 07:50:03 PM - POLLER: Poller[0] CACTI2RRD: /opt/rrdtool/bin/rrdtool update /www/cacti/rra/server1_real_max_12.rrd --template real_max:real_free:swap_max:swap_free 1111521001:514584:62176:2048248:1970768
03/22/2005 07:50:03 PM - POLLER: Poller[0] CACTI2RRD: /opt/rrdtool/bin/rrdtool update /www/cacti/rra/server1_real_max_13.rrd --template real_max:real_free:swap_max:swap_free 1111521001:514584:62068:2048248:1970768
grub
Posts: 2
Joined: Tue Mar 22, 2005 2:26 pm

Post by grub »

Hrm, I think I got it going. Seems if I create the Data Sources for the host separately, and then have the graph templates not reference the Data templates directly, it will work.

Looks like I have to associate the data sources with the graph manually after its generated.

Is there any easier way?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests