name rrd after custom data

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
Maddi
Posts: 3
Joined: Thu Jan 07, 2010 8:58 am

name rrd after custom data

#1 Post by Maddi » Wed Jan 13, 2010 4:16 am

Hello,
as described here(http://forums.cacti.net/viewtopic.php?t=35675) I try to automalicaly create a bunch of disks.
Now one of my problems is that all the data sources have the same name, and therefore every graph accociates with all of the data sources(when I open a graph in gaph managment, it takes arround 30 seconds and leads to 90% CPU usage).
Can I name the data sources according to the custom data I give in?
I add the sources via the command line tools ( like /usr/bin/php -q /usr/share/cacti/cli/add_graphs.php --graph-type=cg --graph-template-id=78 --host-id=25 --input-fields="92:ip=192.168.1.1 number=2030" --force), so ip and number are the custom data fields.
Is there a way to use this parameter for renaming? (And maybe also renaming the graph after this)
What I mean is something like this: http://docs.cacti.net/manual:087:6_reference.variables but for Constom Data, not queries

Best regards,
Maddi

Post Reply