Cacti (home)ForumsDocumentation

Differences

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

userplugin:plgexample [2010/09/14 23:23]
pepj
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 29: 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