- Download a plugin from somewhere like Here
- Extract the contents of the tarball (it should make a subdirectory)
- Move the subdirectory to the cacti/plugins/ directory (mine is /var/www/html/cacti/plugins/)
- Open up Cacti in a browser
- If you see Plugin Management on the left, skip the next step and just go there
- Go to User Management, pick your user and check the box next to "Plugin Management".. refresh the page and then go to "Plugin Management" on the left menu.
- You should see your plugin listed. Hit the arrow down button to install it, and then the arrow right to enable it!
NOTE: The problem I had is this: The directory your plugin is in (for instance, mine was "cacti/plugins/aggregate-0.7B2") CANNOT HAVE NON-ALPHA CHARACTERS.
So, basically, I followed all of these instructions, wondered where the heck my plugin was, and started scraping through code. I finally found the line that looks for available plugins had input_validate_input_regex(get_request_var("id"), "^([a-zA-Z0-9]+)$"); did I then realize, "Hey, maybe if I took that - and the . out of the filename..."
So I moved it, hit refresh on the Plugin Management page and saw my plugin appear.
No comments:
Post a Comment