Re: Plugin Infrastructure: How to implement plugin upgrades?
Oliver Hitz <[email protected]>
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Reinhard, I did it this way and it seems to be working. Oliver On 11 Jul 2012, Gandalf wrote: > 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/ > _______________________________________________ > 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/ _______________________________________________ cacti-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cacti-user
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAk/+nNAACgkQ4hxFYtsxPoj5mQCg9lmShgx3noRl9riC3HvoDbVe 2XwAoIefiAfp1sS1u6l9EQdrBu+3KM0X =qhEo -----END PGP SIGNATURE-----