PIA 2.1 with cacti 0.8.7b

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
mayconcl
Posts: 2
Joined: Mon Jun 16, 2008 12:30 am
Location: Brasil

PIA 2.1 with cacti 0.8.7b

Post by mayconcl »

Hi
I installed cacti 0.8.7b and later the cacti-plugin-0.8.7b-Pará-v2.1.diff but when I go to enter in cacti it appears these errors:

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147



My

Code: Select all

include/global.conf 

*/

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

define('URL_PATH', $config['url_path']);
I looked for in the forum if it has some solution, but I did not find nothing definitive. somebody can help me?

tks so much
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Did you install the pa.sql file that goes with the PIA ? You need to import this sql file for it to work correctly.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mayconcl
Posts: 2
Joined: Mon Jun 16, 2008 12:30 am
Location: Brasil

Post by mayconcl »

yeah, I made
bhumin
Posts: 11
Joined: Sun Jul 13, 2008 2:36 am
Location: surat
Contact:

PA 2.1 problem with cacti 0.8.7b

Post by bhumin »

i have install new cacti 0.8.7b , install PA 2.1 using

root # patch -p1 -N --dry-run < cacti-plugin-0.8.7b-PA-v2.1.diff

patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/global_arrays.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
Hunk #1 succeeded at 34 (offset 9 lines).
patching file lib/api_device.php
patching file lib/functions.php
Hunk #1 succeeded at 1534 (offset 2 lines).
Hunk #3 succeeded at 1624 (offset 2 lines).
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/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php

[root@xyz cacti-plugin-arch]# mysql -u root -p cacti < pa.sql

still i cannot see any changes in my cacti..
please tell me how to make it workin.. any other configuration shoul take place.. or i done any mistake.
Attachments
cacti.JPG
cacti.JPG (103.15 KiB) Viewed 9137 times
bhumin
Posts: 11
Joined: Sun Jul 13, 2008 2:36 am
Location: surat
Contact:

PA 2.1 problem with cacti 0.8.7b

Post by bhumin »

i have install new cacti 0.8.7b , install PA 2.1 using

root # patch -p1 -N --dry-run < cacti-plugin-0.8.7b-PA-v2.1.diff

patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/global_arrays.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
Hunk #1 succeeded at 34 (offset 9 lines).
patching file lib/api_device.php
patching file lib/functions.php
Hunk #1 succeeded at 1534 (offset 2 lines).
Hunk #3 succeeded at 1624 (offset 2 lines).
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/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php

[root@xyz cacti-plugin-arch]# mysql -u root -p cacti < pa.sql

still i cannot see any changes in my cacti..
please tell me how to make it workin.. any other configuration shoul take place.. or i done any mistake.
Attachments
cacti with PA 2.1.JPG
cacti with PA 2.1.JPG (103.15 KiB) Viewed 9134 times
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

I can also confirm this bug on a new install.

Install Cacti 0.8.7b
Install PIA 2.1

On the first login screen before you even set the new password, you do indeed see:

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147




After initial login, these errors no longer show up in the web interface.

However, if you look at the poller output via the command line, you will see that they do not go away entirely:


root@FreeBSD /usr/src]# /usr/local/bin/php /opt/apache/htdocs/cacti/poller.php

Warning: reset(): Passed variable is not an array or object in /usr/opt/apache/htdocs/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /usr/opt/apache/htdocs/cacti/lib/functions.php on line 147

Warning: reset(): Passed variable is not an array or object in /usr/opt/apache/htdocs/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /usr/opt/apache/htdocs/cacti/lib/functions.php on line 147
07/29/2008 07:23:55 PM - SYSTEM STATS: Time:1.2023 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:3 RRDsProcessed:3
OK u:0.03 s:0.05 r:0.90
OK u:0.03 s:0.05 r:0.90
OK u:0.03 s:0.05 r:0.90
[root@FreeBSD /usr/src]#
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
wmunguiam
Posts: 16
Joined: Fri Jan 19, 2007 7:05 pm

Issue resolved (for me...)

Post by wmunguiam »

Hi all,

I have installed a fresh cacti server by using 0.8.7b and PIA v2.1

Then it showed me:

Code: Select all

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146
Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147
Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146
Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147


So I procceded patch fresh installation as:

Code: Select all

wget http://www.cacti.net/downloads/patches/0.8.7b/upgrade_from_086k_fix.patch
wget http://www.cacti.net/downloads/patches/0.8.7b/snmp_auth_none_notice.patch
wget http://www.cacti.net/downloads/patches/0.8.7b/reset_each_patch.patch
patch -p1 -N < upgrade_from_086k_fix.patch
patch -p1 -N < snmp_auth_none_notice.patch
patch -p1 -N < reset_each_patch.patch

I didn't have to modify:
php.ini to change:
display_errors:Off

either
include/plugins.php by adding:
$config['url_path'] = '/noc/';
define('URL_PATH', $config['url_path']);
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest