Cacti (home)ForumsDocumentation

Differences

This shows you the differences between two versions of the page.

userplugin:plgexample [2010/09/14 23:20]
pepj created
userplugin:plgexample [2019/10/29 15:16] (current)
Line 10: Line 10:
 cacti_version:0.8.7e,0.8.7g cacti_version:0.8.7e,0.8.7g
 homepage_url: homepage_url:
-date: +date: 2008-01-01
 email: email:
 plugins_tags:  plugins_tags: 
Line 16: Line 16:
 ===== Download ===== ===== Download =====
  
-This plugin can be download here: {{:plugin:plgexample-latest.tgz|}}+This plugin can be download here:  
 +{{:userplugin:plgexamplev0.2.zip|}}
  
 ===== Purpose ===== ===== 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 ===== ===== Features =====
Line 25: Line 29:
  
 ===== Installation ===== ===== 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 ===== ===== Usage =====





Personal Tools