You can use this to clean up any extra data that is left by your plugin. If you used the API function to install any tables, they will be cleaned up automatically. The next function is used for checking the version of your plugin, plus providing a little bit more information.
The few extra things to return are the longname aka Pretty Name that will be displayed , the author, website, etc The last mandatory function is used for determining whether your plugin is ready to be enabled after being installed. When a plugin is installed, it starts in a disabled state. Only a few of the necessary hooks for the plugin are enabled. Anything that uses those hooks will still be available while the plugin is disabled. This allows a user to modify any necessary settings for the plugin before the plugin is actually enabled and goes live.
The way that your plugin is able to interact within Cacti is via the many hooks that are placed into the interface. As cacti processes the various visual pages and backend functions, it will call specific hook functions which passes control over to any plugins that might want to interact with that aspect of cacti. In order to utilize these hooks, your plugin must register for each hook that you require inside our installation function. After installing the plugin by clicking on the grey gear you will now how to enable it this can be done via clicking on the green check mark.
After this, the Plugin is installed and enabled. However, there will likely be onfiguration that must take place after the Plugin is enabled. See the Plugin documentation for instructions on how to configure and use them. Click on the red dot beside the plugin to uninstall the plugin a dialouge box will appear now click uninstall. This will uninstall the plugin from cacti but will NOT remove the files from the server to do that you must manually remove the plugin until you remove the files the plugin will show to be avaliable to be installed.
Before uninstalling Plugins , it would be wise to have a backup strategy in place in case you accidentally uninstall a Plugin and loose your data! Some dependencies such as THOLD aka Thresholds rely on another plugin in this case thold reliese on the monitor plugin which is missing in this case you will see the below messege box in order to continue you must install the required plugin. Skip to content. We will start with the list of steps that must be required.
Then, in future sections, we will provide details on performing each step. Migration of the Plugin to the PIA 2. Cacti PIA 1. An example INFO file includes the following sections:.
The following extensions are automatically excluded regardless of directory: 'tar', 'gz', 'zip', 'tgz', 'ttf', 'z', 'exe', 'pack', 'swp', 'swo'. As mentioned, there are some very good examples of how to create or migrate plugins in the various Cacti plugins included on The Cacti Groups GitHub site. Also, for a very simple Cacti page, you can look at vdef.
You can use this as a template to manage a table using the Cacti framework.
0コメント