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.
OK, I realize this is only going to be useful to a select few people, and there is a lot more stuff hardcoded in it than I would like, but I'm hoping this gets a ball rolling that I have been waiting on for a long time. Some kind of perl-based connectivity to the Cacti database is needed to simplify Cacti administration from the command line.
* Only tested with Cacti 0.8.4
* Pretty darn fragile at the moment
* Many values are hard-coded right now -- designed to add devices monitoring interface index 1 using 64 bit counters via SNMPv2
* Developed by doing addition of a host, data source, and graph using the web UI and doing diffs of the database before and after the addition.
To do (if/when I get some spare time):
* Add support for additional parameters and access methods to list available templates, hosts, etc on the server -- this should allow for the caller to actually do more than what has been hard-coded thus far.
We are currently moving to an API format in version 0.8.7. This give the abbility for people to write utitlities by just including the correct files. Granted it's only php, not perl, but you could write a command line utitlity to add/edit/remove graphs, devices, datasources, etc. The options are endless.
If you are curious, check out the api* files in the lib directory in the CVS.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]