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.
Deleting can easily be figured out by looking into the Cacti code.
[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]
it's possible that the developers of the "cli" for the next version, add_graphs.php added to the graphics options interfaces that match different values snmp_field and snmp_value, I explain.
Not sure about Deleting being that easy to figure out, there's not plans I take it for a script to handle it then ?
I've got a lot of hosts that change IP, and unfortunately they don't play well with DNS. So a script notifies me of an IP address change. So I tried a bit of SQL (It's hundreds changing allt he time... don't ask!)
Basically changed the host table where the cacti_id was one I was looking for and changed it's hostanme to the new address. Doesn't work. Something else appears to be done when that happens, looking through the PHP code (I'm not a PHP developer alas) looks like a whole raft of SQL updates need to be performed.
Dont' suppose there's a chance of a CLI tool to do that too ?
[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]
Not before 088, as far as I'm concerned. We will supply a "delete" and an "update" interface for most objects. "list" options will be split off of current "add" scripts for sake of performance and design
Reinhard
gandalf wrote:Not before 088, as far as I'm concerned. We will supply a "delete" and an "update" interface for most objects. "list" options will be split off of current "add" scripts for sake of performance and design
Reinhard
Presume the delete of a host will allow the ripple down deleting of all graphs and data sources too ?
gandalf wrote:This one should already be there. See SVN of 087 branch. You may check it out and try on 087-style cacti. Comments are welcomed
Reinhard
Hmm not working, but might be my fault if there's sometihng needing tweaking from my Ubuntu Cacti Install (0.8.7b) ?
Warning: include_once(): Failed opening 'CACTI_BASE_PATH/lib/api_device.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/cli/remove_device.php on line 38
Fatal error: Call to undefined function getHosts() in /usr/share/cacti/site/cli/remove_device.php on line 47
Either that or perhaps I can get away with copying some of the api libs form SVN into mine... afriad it might mess it up though. Is the remove feature going to be in 0.8.7c then ?