Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


PIA 2.1 with cacti 0.8.7b

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture
Author Message
mayconcl



Joined: 16 Jun 2008
Posts: 2
Location: Brasil

PostPosted: Mon Jun 16, 2008 12:42 am    Post subject: PIA 2.1 with cacti 0.8.7b Reply with quote

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:

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
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 974

PostPosted: Mon Jun 16, 2008 1:17 am    Post subject: Reply with quote

Did you install the pa.sql file that goes with the PIA ? You need to import this sql file for it to work correctly.
Back to top
mayconcl



Joined: 16 Jun 2008
Posts: 2
Location: Brasil

PostPosted: Mon Jun 16, 2008 8:42 am    Post subject: Reply with quote

yeah, I made
Back to top
bhumin



Joined: 13 Jul 2008
Posts: 6
Location: surat

PostPosted: Thu Jul 17, 2008 6:56 am    Post subject: PA 2.1 problem with cacti 0.8.7b Reply with quote

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.



cacti.JPG
 Description:
 Filesize:  103.15 KB
 Viewed:  1640 Time(s)

cacti.JPG


Back to top
bhumin



Joined: 13 Jul 2008
Posts: 6
Location: surat

PostPosted: Thu Jul 17, 2008 6:58 am    Post subject: PA 2.1 problem with cacti 0.8.7b Reply with quote

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.



cacti with PA 2.1.JPG
 Description:
 Filesize:  103.15 KB
 Viewed:  1637 Time(s)

cacti with PA 2.1.JPG


Back to top
N3NCY
Cacti User


Joined: 22 Sep 2005
Posts: 241
Location: Landenberg, PA

PostPosted: Tue Jul 29, 2008 6:43 pm    Post subject: Reply with quote

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]#
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group