Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I am trying to add a graph using the CLI and I am having a bit of trouble with the custom input field syntax. I have my host id, data template id and the data fields, but can't work the syntax out. The data being graphed is a script/command data input method. Here is what I have so far;
php add_graphs.php --graph-template-id=64 --list-input-fields
Known Input Fields:(name, default, description)
92:PegName Name of the Peg Count
92:IP IP address
92:PORT Port Address
93:PegName Name of the Peg Count
93:IP IP address
93:PORT Port Address
I also want to use the --graph-title= option as well.
I worked out the correct cli syntax, but ran into a new problem;
When I run the cli command, the graph gets created, but the data sources are shown has blank for this graph, when the poller runs, I get the error you see below;
ERROR: Cannot parse DS in 'DEF:a=/var/www/cacti/rra/gdrsp-dconsu-c1-2_ds_1391.rrd::AVERAGE'
My data template has Use Per-Data Source Value checked, I tried to set a name manually, but I get a error and a red box over the field, it won't save.
It isn't the internal datasource name I need to specify, its the friendly name for the datasouce, without it, the datasource menu shows a blank entry with no hyperlink active. you can still edit it IF, you note the datasource ID, open up a good ds and replace the ID in the url, to the one that has no hyper link.