Plugin Architecture Version 2.9 Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

User avatar
bmarofsky
Posts: 49
Joined: Tue Aug 28, 2007 8:35 am
Location: Southington, CT

Re: Plugin Architecture Version 2.9 Released

Post by bmarofsky »

OK, I followed this: http://docs.cacti.net/manual:087:1_installation.9_pia and failed miserably.

Poller table not empty errors, cmdphp poller 0 error sql assoc failed error 2006 errors, cmdphp: poller[0] error: sql cell failed!, error:'1064' errors.

I know I missed something obvious. I restored to a backup and all is fine, but I really want to understand the upgrade process and get it right.

A permission issue on the copied folders maybe?

Assistance greatly appreciated.
Brian

Cacti Version 0.8.7g
Plugin Architecture 2.8
Poller Type Cactid v
Server Info Linux 2.6.9-89.29.1.plus.c4
Web Server Apache/2.0.63 (CentOS)
PHP Version 5.1.6
MySQL Version 5.0.82sp1
RRDTool Version 1.2.23
SNMP Version 5.1.2
Plugins:
Global Plugin Settings (settings - v0.7)
Cycle Graphs (Cycle Graphs - v0.7+)
Thresholds (thold - v0.4.2)
Create Aggregate Graphs (aggregate - v0.75)
Device Monitoring (monitor - v1.2)
Network Tools (tools - v0.3)
Update Checker (update - v0.4)
Host Info (hostinfo - v0.2)
Error Images (errorimage - v0.1)
Cacti-ReportIt (reportit - v0.7.2)
WMI Query (wmi - v0.1)
Realtime Graph Viewer (realtime - v0.42)
Watermark (watermark - v0.1)
shoelessfarmer
Posts: 11
Joined: Sun Mar 21, 2010 6:35 pm

Re: Plugin Architecture Version 2.9 Released

Post by shoelessfarmer »

Which method did you use? Pre-patched files?

Also, what was in the logs?
User avatar
bmarofsky
Posts: 49
Joined: Tue Aug 28, 2007 8:35 am
Location: Southington, CT

Re: Plugin Architecture Version 2.9 Released

Post by bmarofsky »

Prepatched. The log was purged when I restored the backup.

Poller table not empty errors, cmdphp poller 0 error sql assoc failed error 2006 errors, cmdphp: poller[0] error: sql cell failed!, error:'1064' errors.

nans on some but not all graphs.
Brian

Cacti Version 0.8.7g
Plugin Architecture 2.8
Poller Type Cactid v
Server Info Linux 2.6.9-89.29.1.plus.c4
Web Server Apache/2.0.63 (CentOS)
PHP Version 5.1.6
MySQL Version 5.0.82sp1
RRDTool Version 1.2.23
SNMP Version 5.1.2
Plugins:
Global Plugin Settings (settings - v0.7)
Cycle Graphs (Cycle Graphs - v0.7+)
Thresholds (thold - v0.4.2)
Create Aggregate Graphs (aggregate - v0.75)
Device Monitoring (monitor - v1.2)
Network Tools (tools - v0.3)
Update Checker (update - v0.4)
Host Info (hostinfo - v0.2)
Error Images (errorimage - v0.1)
Cacti-ReportIt (reportit - v0.7.2)
WMI Query (wmi - v0.1)
Realtime Graph Viewer (realtime - v0.42)
Watermark (watermark - v0.1)
ryandenis
Posts: 1
Joined: Tue Mar 15, 2005 11:50 am

Re: Plugin Architecture Version 2.9 Released

Post by ryandenis »

Has anyone gotten a document together for upgrade instructions? I have PIA 2.8 and it has been referenced in a different forum thread that notifications not going out on downed hosts was fixed by upgrading to PIA 2.9. This is the only reason I want to upgrade but as you can imagine I don't want to hose my whole cacti installation just by upgrading one component.


Cacti Version 0.8.7g
Plugin Architecture 2.8
Poller Type Cactid v
Server Info Linux 2.6.9-89.33.1.plus.c4
Web Server Apache/2.0.63 (CentOS)
PHP Version 5.1.6
PHP Extensions libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, eAccelerator
MySQL Version 5.0.82sp1
RRDTool Version 1.2.23
SNMP Version 5.1.2
Plugins
Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.5)
Network Discovery (discovery - v0.8.5)
Syslog Monitoring (syslog - v0.5.2)
WMI Query (wmi - v0.1)
Network Tools (tools - v0.3)
Host Info (hostinfo - v0.2)
Update Checker (update - v0.4)
Documents (docs - v0.1)
Error Images (errorimage - v0.1)
NTop Viewer (ntop - v0.1)
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Re: Plugin Architecture Version 2.9 Released

Post by tomate »

I tried to upgrade to PIA 2.9 from Cacti 0.8.7g and PIA 2.8, but the patch was not applied :

/var/www/cacti$ patch -p1 -N < /var/www/cacti-plugin-arch/cacti-plugin-0.8.7g-PA-v2.9.diff
patching file auth_changepassword.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file auth_changepassword.php.rej
patching file auth_login.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file auth_login.php.rej
patching file cli/add_graph_template.php
patching file cli/add_tree.php
patching file cli/host_update_template.php
patching file data_sources.php
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file data_sources.php.rej
patching file graph_image.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file graph_image.php.rej
patching file graph.php
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file graph.php.rej
patching file graphs_new.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file graphs_new.php.rej
patching file graphs.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file graphs.php.rej
patching file host.php
Reversed (or previously applied) patch detected! Skipping patch.
7 out of 7 hunks ignored -- saving rejects to file host.php.rej
The next patch would create the file images/disable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/disable_icon.png.rej
The next patch would create the file images/enable_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/enable_icon_disabled.png.rej
The next patch would create the file images/enable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/enable_icon.png.rej
The next patch would create the file images/install_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/install_icon_disabled.png.rej
The next patch would create the file images/install_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/install_icon.png.rej
The next patch would create the file images/uninstall_icon.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/uninstall_icon.gif.rej
The next patch would create the file images/view_none.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/view_none.gif.rej
patching file include/auth.php
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 75.
Hunk #3 FAILED at 86.
3 out of 3 hunks FAILED -- saving rejects to file include/auth.php.rej
patching file include/bottom_footer.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/bottom_footer.php.rej
patching file include/config.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/config.php.rej
patching file include/global_arrays.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/global_arrays.php.rej
patching file include/global_constants.php
Hunk #1 FAILED at 173.
1 out of 1 hunk FAILED -- saving rejects to file include/global_constants.php.rej
patching file include/global_form.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/global_form.php.rej
patching file include/global.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/global_settings.php.rej
The next patch would create the file include/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/plugins.php.rej
patching file include/top_graph_header.php
Hunk #1 succeeded at 30 with fuzz 2 (offset 5 lines).
Hunk #2 FAILED at 59.
Hunk #3 FAILED at 126.
Hunk #4 FAILED at 134.
Hunk #5 FAILED at 163.
4 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 FAILED at 80.
Hunk #3 FAILED at 88.
Hunk #4 FAILED at 101.
4 out of 4 hunks FAILED -- saving rejects to file include/top_header.php.rej
patching file index.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file index.php.rej
patching file lib/api_automation_tools.php
patching file lib/api_device.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/api_device.php.rej
patching file lib/api_graph.php
patching file lib/api_tree.php
patching file lib/auth.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/auth.php.rej
patching file lib/data_query.php
patching file lib/functions.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Hunk #3 FAILED at 730.
1 out of 3 hunks FAILED -- saving rejects to file lib/html_form.php.rej
patching file lib/html.php
Reversed (or previously applied) patch detected! Skipping patch.
8 out of 8 hunks ignored -- saving rejects to file lib/html.php.rej
patching file lib/html_tree.php
The next patch would create the file lib/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/plugins.php.rej
patching file lib/poller.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/poller.php.rej
patching file lib/rrd.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file lib/rrd.php.rej
patching file lib/template.php
patching file lib/variables.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/variables.php.rej
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins/index.php.rej
The next patch would create the file plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins.php.rej
patching file poller.php
Hunk #1 succeeded at 110 with fuzz 2 (offset 2 lines).
Hunk #2 succeeded at 308 with fuzz 2 (offset 3 lines).
Hunk #3 FAILED at 434.
Hunk #4 FAILED at 453.
Hunk #5 succeeded at 506 with fuzz 2 (offset 7 lines).
2 out of 5 hunks FAILED -- saving rejects to file poller.php.rej
patching file user_admin.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file user_admin.php.rej
patching file utilities.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file utilities.php.rej
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Re: Plugin Architecture Version 2.9 Released

Post by stormonts »

I have the same problem as tomate. Cacti .8.7g with PIA 2.8 trying to upgrade to 2.9.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Plugin Architecture Version 2.9 Released

Post by gandalf »

So you have a 087g with PIA2.8 installed? And you do want to upgrade to PIA2.9?
R.
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Re: Plugin Architecture Version 2.9 Released

Post by stormonts »

Correct. I get the same "skipping patch" messages noted by tomate when I try and run "patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.9.diff"
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Plugin Architecture Version 2.9 Released

Post by gandalf »

This should have indeed be clarified.
Upgrading PIA is currently not supported by using patches. You will need the full file replacements.
R.
burn
Posts: 8
Joined: Fri Jul 29, 2011 3:00 am

Re: Plugin Architecture Version 2.9 Released

Post by burn »

super-hornet wrote:Hi rony

I tried cacti 0.8.7g (fresh after extracted from tar.gz) and apply this Plugin Architecture 2.9 but I got error. Should I use the cacti that comes with the cacti plugin and overwrite the 0.8.7g instead?

patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.9.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file cli/add_graph_template.php
patching file cli/add_tree.php
patching file cli/host_update_template.php
patching file data_sources.php
Hunk #6 FAILED at 1323.
1 out of 6 hunks FAILED -- saving rejects to file data_sources.php.rej
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
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
patching file include/global_arrays.php
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
patching file include/global_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file index.php
patching file lib/api_automation_tools.php
patching file lib/api_device.php
patching file lib/api_graph.php
patching file lib/api_tree.php
patching file lib/auth.php
patching file lib/data_query.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file lib/html_tree.php
patching file lib/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/template.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
Hunk #1 succeeded at 108 with fuzz 2.
Hunk #2 succeeded at 306 (offset 1 line).
Hunk #3 FAILED at 432.
Hunk #4 FAILED at 451.
Hunk #5 succeeded at 501 (offset 2 lines).
2 out of 5 hunks FAILED -- saving rejects to file poller.php.rej
patching file user_admin.php
patching file utilities.php
I get the same results. What's the problem? No one to fix it in almost a year?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Plugin Architecture Version 2.9 Released

Post by noname »

Please apply official patches for Cacti 0.8.7g before installing PA-2.9 patch.

Because PA-2.9 is published after the official patches were released.
burn
Posts: 8
Joined: Fri Jul 29, 2011 3:00 am

Re: Plugin Architecture Version 2.9 Released

Post by burn »

thanks, that did it
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests