Files
Cactidocumentation/Plugins.md
T
Thomas Vincent 77578446a4 docs(plugins): [1.2.x] correct how-to, plugin development and standards pages against the source (#271)
* docs(plugins): [1.2.x] correct the hook reference against the hooks the core fires

Add the hooks the 1.2.x core fires that the page did not list, correct file locations and introduced/retired versions, mark hooks that are no longer fired as retired, and drop duplicate sections and an unlinked index entry.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(plugins): [1.2.x] correct plugin pages against the plugin API and plugin sources

Fix the INFO key name and delimiter, the hook used in the registration examples, the setup function requirements, the dependency example, and menu, table and template details in the Mactrack and Syslog pages.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(howto): [1.2.x] correct how-to pages against the 1.2.x user interface and data query code

Fix form labels, resource directory names, re-index method names, the index_order delimiter, the maximum value advice, and the cacti_snmp_get call in the script query example.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(standards): [1.2.x] correct standards pages against the 1.2.x tree

Fix the prepared statement example, the CLI include path, the CHANGELOG location, the CI reference and the include/vendor directory list.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(plugins): [1.2.x] align the Syslog SQL mode section with the plugin README

The plugin README says not to copy NO_AUTO_CREATE_USER into a current MySQL configuration and to inspect the active modes instead.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(standards): [1.2.x] fix example typo, indentation rule, constants and table name

Correct the $$ typo in the script query example, the vim rules to use tabs as CLAUDE.md requires, the example constants to match include/global_constants.php, and the user_auth_realm table name.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(standards): [1.2.x] correct the CI and MD001 statements for this branch

The 1.2.x branch has no Travis CI configuration or workflow, and .mdl_style.rb disables MD001.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(translations): [1.2.x] correct the locales listing, template update steps and typos

Describe what update-pot.sh, build_gettext.sh and build_mo.sh do on 1.2.x, add the plugin script, link Poedit's home page, and fix typos.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-23 15:11:29 -05:00

123 lines
3.8 KiB
Markdown

# Plugin Management
Installing or updating plugins on cacti is a simple procedure.
For most of the plugins a few basic steps are enough, which are described below.
Each plugin directory should contain a README.md file. We recommend to study
this file. It may contain important installation information.
## Installing Plugins
![plugins](images/plugins.png)
1. Download the plugin to cactidir/cacti/plugins
```console
git clone https://github.com/Cacti/plugin_thold.git
```
```console
mv plugin_thold /var/www/html/cacti/plugins
```
2. Now assign the proper permissions to the folder
```console
chown -R apache:apache plugin_thold
```
3. From `Console > Configuration > Plugins` Install the plugin by Clicking on
the wrench Icon as showng below.
Below you will now see the THOLD plugin available to install in this case we
are installing thold
![thold plugin](images/thold-install.png)
4. 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
![thold plugin enable](images/thold-enable.png)
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.
## Updating a Plugin
Updating a plugin not only keeps you up to date with the latest release of the
code for that plugin. It also allows you to keep all of your settings for that
plugin ensure you DO NOT UNINSTALL the plugin. You must instead disable the
plugin which will not drop the SQL tables and thus save your settings.
1. Disable the **Plugin** you want to update
2. Backup the current **Plugin** folder typically in
`<path_cacti>/plugins/plugin_name`
```console
cp -R /var/www/html/cacti/plugins/thold /tmp
```
3. git pull or download the new version of the **Plugin**
```console
git pull
```
4. Change name of **Plugin** folder i.e plugin_thold to thold
```console
mv plugin_thold thold
```
5. Assign proper permissions usually either www-data for Ubuntu/debian or apache
for RHEL/Rocky Linux/AlmaLinux
```console
chown -R apache:apache thold
```
6. Re-enable the **Plugin** in the **Console**
### Video Walkthrough
[![Video Tuturial](http://img.youtube.com/vi/TPKu-2XYKok/0.jpg)](https://youtu.be/TPKu-2XYKok)
## Uninstall a Plugin
To uninstall a plugin go into the plugins page
`Console > Configuration > Plugins` Click on the plugin to Disable the plugin.
Click on the red dot beside the plugin to uninstall the plugin a dialogue box
will appear now click uninstall.
![uninstall plugin](images/plugins-uninstall.png)
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 available to be installed.
> **WARNING**: Uninstalling a Cacti **Plugin** generally also removes any
> database tables that that **Plugin** created, which means your data! 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!
### Dependencies in plugins
Some plugins rely on another plugin. For example, the Monitor plugin requires
the THOLD aka Thresholds plugin. If the required plugin is missing, you will
see the below message box. In order to continue you must install the required
plugin.
![plugin dependencies](images/plugins-dependencies.png)
### Delete plugin data and settings
Starting with Cacti 1.3, some plugins have new functionality and allow you to
delete data and plugin settings and start from scratcg. This can be done with
the trash can icon in Console > Configuration > Plugins
---
Copyright (c) 2004-2026 The Cacti Group