This is an old revision of the document!
Table of Contents
plgexample
- type:
- userplugin
- userplugin:
- plgexample
- description:
- a reference/canvas plugin to create quickly your how plugin, copy it, replace "plgexample" with the name of your plugin (ex myown) everywhere you can see it (folder, filename, in the files itself) and your have your new plugin ready to be installed.
- version:
- 0.2
- pia:
- 2.x
- cacti:
- 0.8.7e,0.8.7g
Download
This plugin can be download here: plgexamplev0.2.zip
Purpose
a reference/canvas plugin to create quickly your how plugin, copy it, replace “plgexample” with the name of your plugin (ex myown) everywhere you can see it (folder, filename, in the files itself) and your have your new plugin ready to be installed.
You can install it itself.
Features
Prerequisites
Installation
not needed, but you will create your own …
(later all the next steps will be automatised)
For example your new pluginname is myown
- unzip and copy plgexample
- rename the folder plgexample in myown
- rename the file plgexample.php in myown.php
- rename (if you will a poller function) the file poller_plgexample.php into poller_myown.php
- open setup.php and replace all times you see 'plgexample' with 'myown' / or use sed 's/plgexample/myown/g' setup.php
- check/modify (like above) also myown.php and poller_myown.php
- change/create your menu in setup.php function myown_config_arrays () , if your setup.php is growing a lot use the include subfolder
- change your tab images. Use the *.psd example in the folder 'images' to create yours (with f.ex gimp)
- install/enable in cacti your new plugin
- create your needs …
Usage
Additional Help?
If you need additional help, please go to