How to enable the Plugin Architecture

Support for the Plugin Architecture

Moderators: Developers, Moderators

y2k100
Posts: 4
Joined: Fri Dec 23, 2011 1:57 am

Re: How to enable the Plugin Architecture

Post by y2k100 »

TheWitness wrote:Just overlay the files over the existing install and import the sql file below into mysql. After doing so, goto User Management and verify that you have access to the 'Plugin Management' Realm.
My trouble had solved , thanks !
udo0404
Posts: 7
Joined: Thu Oct 30, 2008 10:11 am
Location: Duesseldorf, Germany

Re: How to enable the Plugin Architecture

Post by udo0404 »

Hi,

no Plugin Management in User Management visible :-(

Cacti Version: 0.8.7i

Code: Select all

mysql> SELECT * FROM `plugin_hooks`;
+----+---------------+------------------------------------+-----------------------+--------------------------------------------+--------+
| id | name          | hook                               | file                  | function                                   | status |
+----+---------------+------------------------------------+-----------------------+--------------------------------------------+--------+
|  1 | internal      | config_arrays                      |                       | plugin_config_arrays                       |      1 |
|  2 | internal      | draw_navigation_text               |                       | plugin_draw_navigation_text                |      1 |
|  3 | settings      | config_settings                    | setup.php             | settings_config_settings                   |      1 |
|  4 | ntop          | top_header_tabs                    | setup.php             | ntop_show_tab                              |      1 |
|  5 | ntop          | top_graph_header_tabs              | setup.php             | ntop_show_tab                              |      1 |
|  6 | ntop          | config_arrays                      | setup.php             | ntop_config_arrays                         |      1 |
|  7 | ntop          | draw_navigation_text               | setup.php             | ntop_draw_navigation_text                  |      1 |
|  8 | ntop          | config_settings                    | setup.php             | ntop_config_settings                       |      1 |
|  9 | mactrack      | top_header_tabs                    | setup.php             | mactrack_show_tab                          |      1 |
| 10 | mactrack      | top_graph_header_tabs              | setup.php             | mactrack_show_tab                          |      1 |
| 11 | mactrack      | config_arrays                      | setup.php             | mactrack_config_arrays                     |      1 |
| 12 | mactrack      | draw_navigation_text               | setup.php             | mactrack_draw_navigation_text              |      1 |
| 13 | mactrack      | config_form                        | setup.php             | mactrack_config_form                       |      1 |
| 14 | mactrack      | config_settings                    | setup.php             | mactrack_config_settings                   |      1 |
| 15 | mactrack      | poller_bottom                      | setup.php             | mactrack_poller_bottom                     |      1 |
| 16 | mactrack      | page_head                          | setup.php             | mactrack_page_head                         |      1 |
| 17 | mactrack      | api_device_save                    | mactrack_actions.php  | sync_cacti_to_mactrack                     |      1 |
| 18 | mactrack      | device_action_array                | mactrack_actions.php  | mactrack_device_action_array               |      1 |
| 19 | mactrack      | device_action_prepare              | mactrack_actions.php  | mactrack_device_action_prepare             |      1 |
| 20 | mactrack      | device_action_execute              | mactrack_actions.php  | mactrack_device_action_execute             |      1 |
| 21 | realtime      | config_arrays                      | setup.php             | realtime_config_arrays                     |      1 |
| 22 | realtime      | config_settings                    | setup.php             | realtime_config_settings                   |      1 |
| 23 | realtime      | graph_buttons                      | setup.php             | realtime_graph_buttons                     |      1 |
| 24 | realtime      | graph_buttons_thumbnails           | setup.php             | realtime_graph_buttons                     |      1 |
| 25 | thold         | top_header_tabs                    | includes/tab.php      | thold_show_tab                             |      1 |
| 26 | thold         | top_graph_header_tabs              | includes/tab.php      | thold_show_tab                             |      1 |
| 27 | thold         | config_arrays                      | includes/settings.php | thold_config_arrays                        |      1 |
| 28 | thold         | config_settings                    | includes/settings.php | thold_config_settings                      |      1 |
| 29 | thold         | draw_navigation_text               | includes/settings.php | thold_draw_navigation_text                 |      1 |
| 30 | thold         | data_sources_table                 | setup.php             | thold_data_sources_table                   |      1 |
| 31 | thold         | graphs_new_top_links               | setup.php             | thold_graphs_new                           |      1 |
| 32 | thold         | api_device_save                    | setup.php             | thold_api_device_save                      |      1 |
| 33 | thold         | update_host_status                 | includes/polling.php  | thold_update_host_status                   |      1 |
| 34 | thold         | poller_output                      | includes/polling.php  | thold_poller_output                        |      1 |
| 35 | thold         | device_action_array                | setup.php             | thold_device_action_array                  |      1 |
| 36 | thold         | device_action_execute              | setup.php             | thold_device_action_execute                |      1 |
| 37 | thold         | device_action_prepare              | setup.php             | thold_device_action_prepare                |      1 |
| 38 | thold         | user_admin_setup_sql_save          | setup.php             | thold_user_admin_setup_sql_save            |      1 |
| 39 | thold         | poller_bottom                      | includes/polling.php  | thold_poller_bottom                        |      1 |
| 40 | thold         | user_admin_edit                    | setup.php             | thold_user_admin_edit                      |      1 |
| 41 | thold         | rrd_graph_graph_options            | setup.php             | thold_rrd_graph_graph_options              |      1 |
| 42 | thold         | graph_buttons                      | setup.php             | thold_graph_button                         |      1 |
| 43 | thold         | data_source_action_array           | setup.php             | thold_data_source_action_array             |      1 |
| 44 | thold         | data_source_action_prepare         | setup.php             | thold_data_source_action_prepare           |      1 |
| 45 | thold         | data_source_action_execute         | setup.php             | thold_data_source_action_execute           |      1 |
| 46 | thold         | graphs_action_array                | setup.php             | thold_graphs_action_array                  |      1 |
| 47 | thold         | graphs_action_prepare              | setup.php             | thold_graphs_action_prepare                |      1 |
| 48 | thold         | graphs_action_execute              | setup.php             | thold_graphs_action_execute                |      1 |
| 49 | boost         | config_arrays                      | setup.php             | boost_config_arrays                        |      1 |
| 50 | boost         | config_settings                    | setup.php             | boost_config_settings                      |      1 |
| 51 | boost         | poller_on_demand                   | setup.php             | boost_poller_on_demand                     |      1 |
| 52 | boost         | poller_bottom                      | setup.php             | boost_poller_bottom                        |      1 |
| 53 | boost         | poller_command_args                | setup.php             | boost_poller_command_args                  |      1 |
| 54 | boost         | draw_navigation_text               | setup.php             | boost_draw_navigation_text                 |      1 |
| 55 | boost         | rrdtool_function_graph_cache_check | setup.php             | boost_graph_cache_check                    |      1 |
| 56 | boost         | rrdtool_function_fetch_cache_check | setup.php             | boost_fetch_cache_check                    |      1 |
| 57 | boost         | rrdtool_function_graph_set_file    | setup.php             | boost_graph_set_file                       |      1 |
| 58 | boost         | prep_graph_array                   | setup.php             | boost_prep_graph_array                     |      1 |
| 59 | boost         | utilities_list                     | setup.php             | boost_utilities_list                       |      1 |
| 60 | boost         | utilities_action                   | setup.php             | boost_utilities_action                     |      1 |
| 61 | nmid          | config_arrays                      | setup.php             | nmid_config_arrays                         |      1 |
| 62 | nmid          | draw_navigation_text               | setup.php             | nmid_draw_navigation_text                  |      1 |
| 63 | nmid          | config_settings                    | setup.php             | nmid_config_settings                       |      1 |
| 64 | nmid          | console_after                      | setup.php             | nmid_console_after                         |      1 |
| 65 | nmid          | top_graph_refresh                  | setup.php             | nmid_top_graph_refresh                     |      1 |
| 66 | nmid          | top_graph_header_tabs              | setup.php             | nmid_show_tab                              |      1 |
| 67 | nmid          | top_header_tabs                    | setup.php             | nmid_show_tab                              |      1 |
| 68 | nmidSmokeping | config_settings                    | setup.php             | nmidSmokeping_config_settings              |      1 |
| 69 | nmidSmokeping | console_after                      | setup.php             | nmidSmokeping_console_after                |      1 |
| 70 | nmidSmokeping | tree_after                         | setup.php             | nmidSmokeping_tree_after                   |      1 |
| 71 | nmidSmokeping | nmid_plugin_value                  | setup.php             | nmidSmokeping_value                        |      1 |
| 72 | nmidSmokeping | nmid_plugin_header                 | setup.php             | nmidSmokeping_header                       |      1 |
| 73 | nmidSmokeping | nmid_plugin_save                   | setup.php             | nmidSmokeping_save                         |      1 |
| 74 | nmidSmokeping | nmid_plugin_configCreate           | setup.php             | nmidSmokeping_configCreate                 |      1 |
| 75 | nmidSmokeping | device_action_array                | setup.php             | plugin_nmidSmokeping_device_action_array   |      1 |
| 76 | nmidSmokeping | device_action_prepare              | setup.php             | plugin_nmidSmokeping_device_action_prepare |      1 |
| 77 | nmidSmokeping | device_action_execute              | setup.php             | plugin_nmidSmokeping_device_action_execute |      1 |
+----+---------------+------------------------------------+-----------------------+--------------------------------------------+--------+
77 rows in set (0.00 sec)

Code: Select all

<?php
/*
 +-------------------------------------------------------------------------+
 | Copyright (C) 2004-2011 The Cacti Group                                 |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 | as published by the Free Software Foundation; either version 2          |
 | of the License, or (at your option) any later version.                  |
 |                                                                         |
 | This program is distributed in the hope that it will be useful,         |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+
 | Cacti: The Complete RRDTool-based Graphing Solution                     |
 +-------------------------------------------------------------------------+
 | This code is designed, written, and maintained by the Cacti Group. See  |
 | about.php and/or the AUTHORS file for specific developer information.   |
 +-------------------------------------------------------------------------+
 | http://www.cacti.net/                                                   |
 +-------------------------------------------------------------------------+
*/

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = #########;
$database_port = "3306";
$database_ssl = false;

/* load up old style plugins here */
$plugins = array();
//$plugins[] = 'thold';

/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";

$url_path = "/cacti/";
$config['url_path'] = '/cacti/';

?>

someone an idea?

Regards

Udo
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: How to enable the Plugin Architecture

Post by gandalf »

Please install pa.sql as well.
R.
rlilic
Posts: 16
Joined: Mon Jan 30, 2012 3:59 pm

Re: How to enable the Plugin Architecture

Post by rlilic »

I get this error during installing pa.sql.

mysql -u root -p cacti.sql < pa.sql
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

I did an upgrade to "i". I do not know the credentials that the previous person set for this cacti.sql, do you know how to change username and or password?

Also, is there default user name and password set by cacti?
shikima
Posts: 17
Joined: Fri Aug 12, 2011 10:06 am

Re: How to enable the Plugin Architecture

Post by shikima »

I issue the command: mysql -uroot -pPASSWORD cacti < pa.sql
rlilic
Posts: 16
Joined: Mon Jan 30, 2012 3:59 pm

Re: How to enable the Plugin Architecture

Post by rlilic »

shikima wrote:I issue the command: mysql -uroot -pPASSWORD cacti < pa.sql
Does not work for me. Thank you.
shikima
Posts: 17
Joined: Fri Aug 12, 2011 10:06 am

Re: How to enable the Plugin Architecture

Post by shikima »

Almost always you can find them in include/config.php
rlilic
Posts: 16
Joined: Mon Jan 30, 2012 3:59 pm

Re: How to enable the Plugin Architecture

Post by rlilic »

shikima wrote:Almost always you can find them in include/config.php
Thank you!

I figured the password and now I see my plugin management under settings that i previously enabled in Realms.

Now, I have to add the plugins. Any good documentations?
shikima
Posts: 17
Joined: Fri Aug 12, 2011 10:06 am

Re: How to enable the Plugin Architecture

Post by shikima »

rlilic wrote:
shikima wrote:Almost always you can find them in include/config.php
Thank you!

I figured the password and now I see my plugin management under settings that i previously enabled in Realms.

Now, I have to add the plugins. Any good documentations?
here you are

http://www.cacti.net/downloads/docs/html/index.html
udo0404
Posts: 7
Joined: Thu Oct 30, 2008 10:11 am
Location: Duesseldorf, Germany

Re: How to enable the Plugin Architecture

Post by udo0404 »

gandalf wrote:Please install pa.sql as well.
Thanks, but:

Code: Select all

root@server:/var/www/cacti# mysql -u root -p cacti < pa.sql
Enter password:
ERROR 1062 (23000) at line 65: Duplicate entry '1' for key 'PRIMARY'
I used pa,sql.zip from here: http://forums.cacti.net/viewtopic.php?p=224247#p224247

Regards

Udo
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest