Re: Plugin Infrastructure: How to implement plugin upgrades?
Gandalf <[email protected]>
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <[email protected]> |
Please have a look at either AGGREGATE or AUTOM8 to find a way to use the upgrade functions. Reinhard On 11.07.2012 11:00, Oliver Hitz wrote: > Hi all, > > I am working on a custom plugin for Cacti. When I upgrade the plugin > files on my installation (including a change of the version number), > Cacti still displays the old version, even though the new files are > being used (apparently that information is pulled out of the > plugin_config table). > > How should I go about implementing upgrades in my plugin? The example > plugin code (plgexample) features a plugin_plgexample_upgrade() > function, but as far as I have seen, Cacti never calls that function. > > For now, the only way to do upgrades seems to be Uninstall & Install, > but since I create new database tables with > api_plugin_db_table_create(), this procedure will result in losing all > data every time the plugin is upgraded. > > I am using a stock Cacti 0.8.8a during my development. > > Any ideas? > > Best regards > > Oliver > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > cacti-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cacti-user > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/