Support for cli scripts to create cacti objects in batch was a great leap ahead.
But usually, to meet your own requirements, you will have to write some code to glue things together. You may have found some contributions of this kind already. Now I've found time to add my 2 cents.
Please find attached a php script, that
- creates a host and relates it to a host template
- creates all simple Graphs related to that host via the given Host Template
- creates some Data Query based graphs as
-- interface traffic for a selected subset of interfaces
-- errors/discards for a selected subset of interfaces
-- disk usage for selected filesystems
-- diskio for selected filesystems
This may serve as a base for your own work.CAVEAT
This scripts holds numerous target specific constants, e.g. snmp community string and numerical ids of templates and stuff. You MUST change them to your settings. This will require a certain knowledge of existing cli scripts. So you may want to read the documentation at e.g. http://docs.cacti.net/manual:087:6_refe ... _add_graphPlease use AUTOM8 now!