Hello I am running Cacti on a CentOs machine (Manually installed) and got some errors while I tried to install the Plugin Architecture (PIA).
The final goal is to be able to install and use the "thold" plugins.
The installation folder is under the /var/www/html/monitoring folder.
I ran the following command according to the docs and here is the layout of that.
Please let me know what is the issues and who should I address it?
root@cacti-server monitoring]# patch -p1 -N --dry-run < /home/cacti/cacti-plugin-arch/cacti-plugin-0.8.7g-PA-v2.9.diff
patching file auth_changepassword.php
patching file auth_login.php
Hunk #1 FAILED at 124.
Hunk #3 FAILED at 279.
Hunk #4 FAILED at 326.
3 out of 4 hunks FAILED -- saving rejects to file auth_login.php.rej
patching file cli/add_graph_template.php
patching file cli/add_tree.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file cli/add_tree.php.rej
patching file cli/host_update_template.php
patching file data_sources.php
Hunk #2 succeeded at 400 (offset -4 lines).
Hunk #4 succeeded at 689 (offset -4 lines).
Hunk #5 FAILED at 983.
Hunk #6 succeeded at 1322 (offset -1 lines).
1 out of 6 hunks FAILED -- saving rejects to file data_sources.php.rej
patching file graph_image.php
Hunk #1 succeeded at 48 (offset 4 lines).
patching file graph.php
Hunk #3 FAILED at 108.
Hunk #4 succeeded at 125 (offset 3 lines).
Hunk #6 succeeded at 261 with fuzz 2 (offset 3 lines).
1 out of 6 hunks FAILED -- saving rejects to file graph.php.rej
patching file graphs_new.php
Hunk #1 FAILED at 511.
1 out of 1 hunk FAILED -- saving rejects to file graphs_new.php.rej
patching file graphs.php
Hunk #2 succeeded at 359 (offset -5 lines).
patching file host.php
Hunk #3 succeeded at 312 (offset 4 lines).
Hunk #5 succeeded at 547 (offset 4 lines).
Hunk #7 succeeded at 1125 (offset 4 lines).
patching file images/disable_icon.png
patching file images/enable_icon_disabled.png
patching file images/enable_icon.png
patching file images/install_icon_disabled.png
patching file images/install_icon.png
patching file images/uninstall_icon.gif
patching file images/view_none.gif
patching file include/auth.php
patching file include/bottom_footer.php
patching file include/config.php
Hunk #1 succeeded at 31 with fuzz 2 (offset 1 line).
patching file include/global_arrays.php
Hunk #2 succeeded at 691 (offset 35 lines).
patching file include/global_constants.php
Hunk #1 succeeded at 182 (offset 9 lines).
patching file include/global_form.php
Hunk #2 succeeded at 1242 with fuzz 2 (offset 51 lines).
patching file include/global.php
Hunk #1 succeeded at 94 with fuzz 2 (offset 1 line).
Hunk #2 FAILED at 196.
Hunk #3 succeeded at 219 with fuzz 2 (offset 5 lines).
1 out of 3 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #2 FAILED at 54.
Hunk #3 succeeded at 124 (offset 3 lines).
Hunk #5 succeeded at 161 (offset 3 lines).
1 out of 5 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 22.
Hunk #2 succeeded at 81 (offset 1 line).
Hunk #4 succeeded at 102 (offset 1 line).
1 out of 4 hunks FAILED -- saving rejects to file include/top_header.php.rej
patching file index.php
patching file lib/api_automation_tools.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/api_automation_tools.php.rej
patching file lib/api_device.php
Hunk #1 succeeded at 141 with fuzz 2 (offset 4 lines).
patching file lib/api_graph.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/api_graph.php.rej
patching file lib/api_tree.php
Hunk #1 FAILED at 44.
1 out of 1 hunk FAILED -- saving rejects to file lib/api_tree.php.rej
patching file lib/auth.php
patching file lib/data_query.php
Hunk #1 succeeded at 54 (offset -2 lines).
Hunk #2 FAILED at 215.
1 out of 2 hunks FAILED -- saving rejects to file lib/data_query.php.rej
patching file lib/functions.php
Hunk #1 succeeded at 1691 (offset 2 lines).
Hunk #3 succeeded at 1784 (offset 2 lines).
patching file lib/html_form.php
Hunk #1 succeeded at 1 with fuzz 1.
Hunk #2 succeeded at 523 (offset -8 lines).
Hunk #3 succeeded at 782 (offset 52 lines).
patching file lib/html.php
patching file lib/html_tree.php
patching file lib/plugins.php
patching file lib/poller.php
Hunk #1 succeeded at 431 with fuzz 2 (offset 87 lines).
patching file lib/rrd.php
Hunk #1 succeeded at 441 with fuzz 2 (offset 22 lines).
Hunk #2 succeeded at 529 (offset -13 lines).
Hunk #3 succeeded at 1406 (offset 23 lines).
Hunk #4 FAILED at 1421.
1 out of 4 hunks FAILED -- saving rejects to file lib/rrd.php.rej
patching file lib/template.php
Hunk #1 succeeded at 882 (offset 96 lines).
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
Hunk #2 succeeded at 306 (offset 1 line).
Hunk #3 FAILED at 432.
Hunk #4 succeeded at 452 (offset 2 lines).
Hunk #5 succeeded at 500 (offset 1 line).
1 out of 5 hunks FAILED -- saving rejects to file poller.php.rej
patching file user_admin.php
patching file utilities.php
Hunk #2 succeeded at 1664 (offset 17 lines).
Thanks in advance.
Erez
Errors while using the patch Plugin Architecture (PIA)
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Errors while using the patch Plugin Architecture (PIA)
Upgrade to the 'i' version. The plugin architecture is included.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Errors while using the patch Plugin Architecture (PIA)
I successfully upgrade cacti to version 0.8.7i but still unable to access and enable plugins from Consul\UserManager\Realm Permissions.
I follow the instructors in the following urls:
http://docs.cacti.net/manual:087:1_installation.9_pia
Download the thold plugins from http://docs.cacti.net/plugin:thold and extract the file under cacti\plugins\thold
Also downloaded and install settings from http://docs.cacti.net/plugin:settings
the cacti database also contain the plugins tables and still nothing appears in User Management.
Here is the layout of my include\config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "NewPass123";
$database_port = "3306";
$database_ssl = false;
/* load up old style plugins here */
$plugins = array();
$plugins[] = 'thold';
/*
Edit this to point to the default URL of your Cacti install
ex: if your cacti install as at http://serverip/cacti/ this
would be set to /cacti/
*/
$url_path = "/monitoring/";
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";i
Let me know if I'm doing something wrong and if so, how do I go above it.
Thanks in advance.
Erez
I follow the instructors in the following urls:
http://docs.cacti.net/manual:087:1_installation.9_pia
Download the thold plugins from http://docs.cacti.net/plugin:thold and extract the file under cacti\plugins\thold
Also downloaded and install settings from http://docs.cacti.net/plugin:settings
the cacti database also contain the plugins tables and still nothing appears in User Management.
Here is the layout of my include\config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "NewPass123";
$database_port = "3306";
$database_ssl = false;
/* load up old style plugins here */
$plugins = array();
$plugins[] = 'thold';
/*
Edit this to point to the default URL of your Cacti install
ex: if your cacti install as at http://serverip/cacti/ this
would be set to /cacti/
*/
$url_path = "/monitoring/";
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";i
Let me know if I'm doing something wrong and if so, how do I go above it.
Thanks in advance.
Erez
Re: Errors while using the patch Plugin Architecture (PIA)
You need to comment # yours plugins, there are not need anymore to declarate them!
#$plugins[] = 'thold';
#$plugins[] = 'thold';
Re: Errors while using the patch Plugin Architecture (PIA)
Didn't helped.!! any other suggestions I really need to get this thing working.
Looking forward to your response.
Erez
Looking forward to your response.
Erez
Re: Errors while using the patch Plugin Architecture (PIA)
Check your user management, make sure "plugin management" is enabled for that username.
*edit* sorry, i just saw that's where you problem is... have you tried a complete overwrite of the bundled 0.8.7i version with the PA included??
*edit* sorry, i just saw that's where you problem is... have you tried a complete overwrite of the bundled 0.8.7i version with the PA included??
Who is online
Users browsing this forum: No registered users and 0 guests