Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Jun 23, 2017 10:39 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Wed Oct 10, 2012 5:51 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
c3226026 wrote:
gandalf wrote:
Please add
Code:
cacti_log(__FUNCTION__ . " actions: " . serialize($device_actions), false, "TEST");
.

Sorry gandalf, but in what file ?
host.php; sorry for missing that

Quote:
gandalf wrote:
BTB: any errors in httpd's error_log?

[Wed Oct 10 08:24:51 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Undefined variable: device_threads in /cacti/html/include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view ... first=true
A, well, I have to fix that! For more errors you may wanat to post, please always have a look at that error_log for additional hints :wink:


Quote:
gandalf wrote:
Please post the php version used as well.

I'm on debian wheezy, php5 Version: 5.4.4-7, according this post http://forums.cacti.net/viewtopic.php?f=21&t=48295 I've deleted php5-snmp
I will check this. It's a pretty up-to-date version. Perhaps I'm backlevel on my laptop ...
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Wed Oct 10, 2012 8:23 am 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
gandalf wrote:
host.php; sorry for missing that

you're welcome, I thought to this file but I wasn't sure

result :
Code:
10/10/2012 02:35:28 PM - TEST: Poller[0]  actions: N;
10/10/2012 02:35:28 PM - TEST: Poller[0]  actions: N;
10/10/2012 02:36:46 PM - TEST: Poller[0]  actions: N;
10/10/2012 02:36:46 PM - TEST: Poller[0]  actions: a:1:{s:4:"tr_1";s:30:"Place on a Tree (Default Tree)";}



I've also this :
Code:
10/10/2012 03:30:01 PM - SYSTEM STATS: Time:0.2536 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:13 RRDsProcessed:9
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >8<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >5<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >8<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >5<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >8<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >5<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >8<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >8<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >8<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >4<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >8<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >5<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >11<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >10<
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >12<



For poller,
Actually with cmd (I've not yet actived spine), I've this error :
Code:
PHP Notice:  Undefined variable: device_threads in ../include/device/device_forms.php on line 80
PHP Strict Standards:  Only variables should be passed by reference in ../lib/ping.php on line 379



Other erros on error apache file :
Code:
[Wed Oct 10 14:34:02 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in ../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/install/index.php
[Wed Oct 10 14:35:28 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  array_keys() expects parameter 1 to be array, null given in.../lib/html.php on line 643, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Wed Oct 10 14:35:28 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  Invalid argument supplied for foreach() in .../lib/html.php on line 643, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Wed Oct 10 14:35:37 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in ../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graphs_new.php
[Wed Oct 10 14:35:31 2012] [error] [client xxx.xxx.xxx.xxx PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/host.php?action=edit&id=1
[Wed Oct 10 14:36:47 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Wed Oct 10 15:19:03 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/settings.php



After each polling :
Code:
[Wed Oct 10 15:29:09 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80
[Wed Oct 10 15:29:09 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true
[Wed Oct 10 15:29:09 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true
[Wed Oct 10 15:29:09 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true
[Wed Oct 10 15:29:09 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true
[Wed Oct 10 15:29:10 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true
[Wed Oct 10 15:29:10 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true
[Wed Oct 10 15:29:10 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true
[Wed Oct 10 15:29:10 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true



Best Regards


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Fri Oct 12, 2012 4:00 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
c3226026 wrote:
Code:
[Wed Oct 10 15:29:10 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in.../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7&select_first=true



Best Regards
This looks like a missing line
Code:
require(CACTI_INCLUDE_PATH . "/device/device_arrays.php");
at the head of that very forms file.
I just committed a cosmetic change, SVN#7302. Please apply

R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Fri Oct 12, 2012 4:02 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
c3226026 wrote:
Other erros on error apache file :
[Wed Oct 10 14:35:28 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning: array_keys() expects parameter 1 to be array, null given in.../lib/html.php on line 643, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[/code]
This one seems to be a result of the root cause issue
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Fri Oct 12, 2012 4:05 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
c3226026 wrote:
Code:
10/10/2012 03:30:01 PM - SYSTEM STATS: Time:0.2536 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:13 RRDsProcessed:9
10/10/2012 03:34:12 PM - TEST: Poller[0] rrdgraph_compute_item_text cf: 1 type: >7<
I remove a loggin item with SVN#7303
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Fri Oct 12, 2012 4:08 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
c3226026 wrote:
gandalf wrote:
host.php; sorry for missing that

you're welcome, I thought to this file but I wasn't sure

result :
Code:
10/10/2012 02:35:28 PM - TEST: Poller[0]  actions: N;
10/10/2012 02:35:28 PM - TEST: Poller[0]  actions: N;
10/10/2012 02:36:46 PM - TEST: Poller[0]  actions: N;
10/10/2012 02:36:46 PM - TEST: Poller[0]  actions: a:1:{s:4:"tr_1";s:30:"Place on a Tree (Default Tree)";}
Well, the first entry should already list the correct actions without the tree option(s).

Either
Code:
include_once(CACTI_INCLUDE_PATH . "/device/device_arrays.php");
is missing, which brings the $device_actions into life or the plugin hook
Code:
$device_actions = plugin_hook_function('device_action_array', $device_actions);
is broken.
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Sat Oct 13, 2012 2:23 am 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
Hello gandalf,

After applyed 7303, database reset, and no plugins activated, on device I've deleted all graphs and reselected it + FS graph

errors apache
Code:
[Sat Oct 13 08:56:46 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/install/
[Sat Oct 13 08:56:48 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/install/index.php
[Sat Oct 13 08:57:07 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/auth_changepassword.php?ref=http://xxx.xxx.xxx.xxx/cacti/index.php
[Sat Oct 13 08:57:39 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_actions in .../host.php on line 39, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sat Oct 13 08:57:39 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sat Oct 13 08:57:39 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  Invalid argument supplied for foreach() in .../lib/html.php on line 643, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sat Oct 13 08:57:53 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/graphs.php
[Sat Oct 13 08:57:57 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined offset: 4 in .../lib/graph.php on line 578, referer: http://xxx.xxx.xxx.xxx/cacti/graphs.php
[Sat Oct 13 08:58:03 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  array_keys() expects parameter 1 to be array, null given in .../lib/html.php on line 643, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sat Oct 13 08:58:03 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  Invalid argument supplied for foreach() in .../lib/html.php on line 643, referer: http://xxx.xxx.xxx.xxx/cacti/host.php



poller-error :
Code:
PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80
PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80
PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379
PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379
PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379



cacti.log
Code:
10/13/2012 08:56:58 AM - AUTH LOGIN: User 'admin' Authenticated
10/13/2012 08:57:36 AM - TEST: Poller[0]  actions: N;
10/13/2012 08:57:36 AM - TEST: Poller[0]  actions: a:1:{s:4:"tr_1";s:30:"Place on a Tree (Default Tree)";}
10/13/2012 08:57:39 AM - TEST: Poller[0]  actions: N;
10/13/2012 08:57:39 AM - TEST: Poller[0]  actions: N;
10/13/2012 08:57:57 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT data_template_data.local_data_id      FROM (data_template_rrd, data_template_data, graph_templates_item)      WHERE graph_templates_item.task_item_id=data_template_rrd.id      AND data_template_rrd.local_data_id=data_template_data.local_data_id      AND graph_templates_item.local_graph_id=      AND data_template_data.local_data_id > 0"
10/13/2012 08:58:01 AM - TEST: Poller[0]  actions: N;
10/13/2012 08:58:01 AM - TEST: Poller[0]  actions: a:1:{s:4:"tr_1";s:30:"Place on a Tree (Default Tree)";}
10/13/2012 08:58:03 AM - TEST: Poller[0]  actions: N;
10/13/2012 08:58:03 AM - TEST: Poller[0]  actions: N;
10/13/2012 08:59:46 AM - TEST: Poller[0]  actions: N;
10/13/2012 08:59:46 AM - TEST: Poller[0]  actions: a:1:{s:4:"tr_1";s:30:"Place on a Tree (Default Tree)";}
10/13/2012 08:59:49 AM - TEST: Poller[0]  actions: N;
10/13/2012 08:59:49 AM - TEST: Poller[0]  actions: N;
10/13/2012 09:00:01 AM - SYSTEM STATS: Time:0.3761 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:13 RRDsProcessed:9


it seems better, thanks gandalf for your work :wink:

Other thinks :
On local host device tab, I cannot select a Number of Collection Threads (empty) => but probably because : Undefined variable: device_threads in .../include/device/device_forms.php on line 80
On device tab always missing for action delete, disable, enable

Best Regards


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Sun Oct 14, 2012 2:35 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
c3226026 wrote:
Hello gandalf,

After applyed 7303, database reset, and no plugins activated, on device I've deleted all graphs and reselected it + FS graph

errors apache
Code:
[Sat Oct 13 08:56:46 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/install/
[Sat Oct 13 08:56:48 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/install/index.php
[Sat Oct 13 08:57:07 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_threads in .../include/device/device_forms.php on line 80, referer: http://xxx.xxx.xxx.xxx/cacti/auth_changepassword.php?ref=http://xxx.xxx.xxx.xxx/cacti/index.php
[Sat Oct 13 08:57:39 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined variable: device_actions in .../host.php on line 39, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
I'm astonished, that this always complain about line 80 of device_forms.php. For me, it's line 81. So I package the whole directory. Please install this (you will want to save old include/device directory) and retry.
R.


Attachments:
File comment: copy to include directory and untar
include_device.tgz [3.72 KiB]
Downloaded 161 times

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository
Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Sun Oct 14, 2012 3:48 pm 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
Hello gandalf,

Of course, it's done, here the result :

apache errors file :
Code:
[Sun Oct 14 22:30:25 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sun Oct 14 22:30:25 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sun Oct 14 22:30:25 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sun Oct 14 22:30:47 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined offset: 4 in .../lib/graph.php on line 578, referer: http://xxx.xxx.xxx.xxx/cacti/graphs.php
[Sun Oct 14 22:30:57 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sun Oct 14 22:30:57 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Sun Oct 14 22:30:57 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php



cacti.log file :
Code:
10/14/2012 10:30:19 PM - TEST: Poller[0]  actions: a:7:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";s:4:"tr_1";s:30:"Place on a Tree (Default Tree)";}
10/14/2012 10:30:25 PM - TEST: Poller[0]  actions: a:6:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";}
10/14/2012 10:30:25 PM - TEST: Poller[0]  actions: a:6:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";}
10/14/2012 10:30:47 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT data_template_data.local_data_id      FROM (data_template_rrd, data_template_data, graph_templates_item)      WHERE graph_templates_item.task_item_id=data_template_rrd.id      AND data_template_rrd.local_data_id=data_template_data.local_data_id      AND graph_templates_item.local_graph_id=      AND data_template_data.local_data_id > 0"
10/14/2012 10:30:54 PM - TEST: Poller[0]  actions: a:6:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";}
10/14/2012 10:30:54 PM - TEST: Poller[0]  actions: a:7:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";s:4:"tr_1";s:30:"Place on a Tree (Default Tree)";}
10/14/2012 10:30:57 PM - TEST: Poller[0]  actions: a:6:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";}
10/14/2012 10:30:57 PM - TEST: Poller[0]  actions: a:6:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";}
10/14/2012 10:31:24 PM - TEST: Poller[0]  actions: a:6:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";}
10/14/2012 10:31:24 PM - TEST: Poller[0]  actions: a:7:{i:1;s:6:"Delete";i:2;s:6:"Enable";i:3;s:7:"Disable";i:4;s:19:"Change SNMP Options";i:5;s:16:"Clear Statistics";i:6;s:27:"Change Availability Options";s:4:"tr_1";s:30:"Place on a Tree (Default Tree)";}


good news, now I see all in device action

poller-error :
Code:
PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379
PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379
PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379


here the diff between your and my files :

Code:
diff device_constants.php device_constants.php.my
25,35c25,32
< define("DEVICE_ACTION_DELETE", "1");
< define("DEVICE_ACTION_ENABLE", "2");
< define("DEVICE_ACTION_DISABLE", "3");
< define("DEVICE_ACTION_CHANGE_SNMP_OPTIONS", "4");
< define("DEVICE_ACTION_CLEAR_STATISTICS", "5");
< define("DEVICE_ACTION_CHANGE_AVAILABILITY_OPTIONS", "6");
< define("DEVICE_ACTION_CHANGE_POLLER", "7");
< define("DEVICE_ACTION_CHANGE_SITE", "8");
<
< define("DEVICE_ACTION_DELETE_DS_KEEP", "1");
< define("DEVICE_ACTION_DELETE_DS_DELETE", "2");
---
> define("DEVICE_ACTION_DELETE", "0");
> define("DEVICE_ACTION_ENABLE", "1");
> define("DEVICE_ACTION_DISABLE", "2");
> define("DEVICE_ACTION_CHANGE_SNMP_OPTIONS", "3");
> define("DEVICE_ACTION_CLEAR_STATISTICS", "4");
> define("DEVICE_ACTION_CHANGE_AVAILABILITY_OPTIONS", "5");
> define("DEVICE_ACTION_CHANGE_POLLER", "6");
> define("DEVICE_ACTION_CHANGE_SITE", "7");


Code:
diff device_forms.php device_forms.php.my
25c25
< require(CACTI_INCLUDE_PATH . "/device/device_arrays.php");
---
> require(CACTI_BASE_PATH . "/include/device/device_arrays.php");


Code:
diff device_arrays.php device_arrays.php.my
25c25
< require_once(CACTI_INCLUDE_PATH . "/device/device_constants.php");
---
> require_once(CACTI_BASE_PATH . "/include/device/device_constants.php");
27c27
< $device_actions = array(
---
> $host_actions = array(
34,35c34,35
< #   DEVICE_ACTION_CHANGE_POLLER => "Change Poller",
< #   DEVICE_ACTION_CHANGE_SITE => "Change Site",
---
>    DEVICE_ACTION_CHANGE_POLLER => "Change Poller",
>    DEVICE_ACTION_CHANGE_SITE => "Change Site",
38c38
< $device_threads = array(
---
> $host_threads = array(


I've missing something ?
[Edit] I've probably forget svn 7292 :oops: , I will do a full fresh svn install [/Edit]


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Mon Oct 15, 2012 2:40 am 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
Hello gandalf,

I've done a new full svn 7303 install

apache errors file :
Code:
[Mon Oct 15 08:59:52 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Mon Oct 15 08:59:52 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Mon Oct 15 08:59:52 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Mon Oct 15 09:00:08 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined offset: 4 in .../lib/graph.php on line 578, referer: http://xxx.xxx.xxx.xxx/cacti/graphs.php
[Mon Oct 15 09:00:16 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Mon Oct 15 09:00:16 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.php
[Mon Oct 15 09:00:16 2012] [error] [client xxx.xxx.xxx.xxx] PHP Strict Standards:  Only variables should be passed by reference in .../lib/ping.php on line 379, referer: http://xxx.xxx.xxx.xxx/cacti/host.ph



cacti.log file :
Code:
10/15/2012 08:58:50 AM - AUTH LOGIN: User 'admin' Authenticated
10/15/2012 09:00:01 AM - SYSTEM STATS: Time:0.1555 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
10/15/2012 09:00:08 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT data_template_data.local_data_id      FROM (data_template_rrd, data_template_data, graph_templates_item)      WHERE graph_templates_item.task_item_id=data_template_rrd.id      AND data_template_rrd.local_data_id=data_template_data.local_data_id      AND graph_templates_item.local_graph_id=      AND data_template_data.local_data_id > 0"
10/15/2012 09:05:02 AM - SYSTEM STATS: Time:0.2542 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:13 RRDsProcessed:9



so normaly just matter with php and ERROR: SQL Assoc Failed!, Error:'1064' now

I've activated spine poller, but actually no data :
Code:
10/15/2012 11:35:01 AM - SYSTEM STATS: Time:0.1072 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:13 RRDsProcessed:0


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Mon Oct 15, 2012 4:08 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
ping error: SVN#7304
Quote:
[Mon Oct 15 09:00:08 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Undefined offset: 4 in .../lib/graph.php on line 578, referer: http://xxx.xxx.xxx.xxx/cacti/graphs.php
Please tell me, how you got there. The line in question does not show a function call, so I'm stumped.
Quote:
10/15/2012 09:00:08 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT data_template_data.local_data_id FROM (data_template_rrd, data_template_data, graph_templates_item) WHERE graph_templates_item.task_item_id=data_template_rrd.id AND data_template_rrd.local_data_id=data_template_data.local_data_id AND graph_templates_item.local_graph_id= AND data_template_data.local_data_id > 0"
Same applies here. The issue is, that "graph_templates_item.local_graph_id=" does not include any number. But I don't know under which conditions this happens. What did you do when this occured?

Please do not use spine for now. I will check that as soon as we got the php code clean (or in case I'm bored).

What about the "actions" dropdown in "device list", now? Fixed???
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Tue Oct 16, 2012 1:36 am 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
gandalf wrote:
Quote:
[Mon Oct 15 09:00:08 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Undefined offset: 4 in .../lib/graph.php on line 578, referer: http://xxx.xxx.xxx.xxx/cacti/graphs.php
Please tell me, how you got there. The line in question does not show a function call, so I'm stumped.
Quote:
10/15/2012 09:00:08 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT data_template_data.local_data_id FROM (data_template_rrd, data_template_data, graph_templates_item) WHERE graph_templates_item.task_item_id=data_template_rrd.id AND data_template_rrd.local_data_id=data_template_data.local_data_id AND graph_templates_item.local_graph_id= AND data_template_data.local_data_id > 0"
Same applies here. The issue is, that "graph_templates_item.local_graph_id=" does not include any number. But I don't know under which conditions this happens. What did you do when this occured?


In fact I've these with the same action : just after fresh install /device/localhost/Graph List/selected all graph => chose action delete/delete all Data Source(s)

gandalf wrote:
What about the "actions" dropdown in "device list", now? Fixed???

Yes as I've write two post before : "good news, now I see all in device action" :wink:


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Tue Oct 16, 2012 2:12 am 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
SVN#7304 applyed

Only error when I delete graph

apache error.log file :
Code:
[Tue Oct 16 08:53:43 2012] [error] [client xxx.xxx.xxx.xxx] PHP Notice:  Undefined offset: 4 in .../lib/graph.php on line 578, referer: http://xxx.xxx.xxx.xxx/cacti/graphs.php


cacti.log file :
Code:
10/16/2012 08:53:43 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"SELECT data_template_data.local_data_id      FROM (data_template_rrd, data_template_data, graph_templates_item)      WHERE graph_templates_item.task_item_id=data_template_rrd.id      AND data_template_rrd.local_data_id=data_template_data.local_data_id      AND graph_templates_item.local_graph_id=      AND data_template_data.local_data_id > 0"


no else error.

A last thing I've forgot to tell
On local host device/Graph List, If I deleted graph for FS, I cannot recreated it after, because I cannot selected it again, I've not the same thing for the other graphs on localhost


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Tue Oct 23, 2012 2:59 pm 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
Hello,

What can I do else to help ?


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.9 Alpha
PostPosted: Fri Oct 26, 2012 7:09 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
I'm on a business trip to the US, so I was not that responsive. Will continue soon
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group