cacti log error
Moderators: Developers, Moderators
cacti log error
Hi,
i have cat the cacti log file and find this
09/30/2010 12:37:13 PM - SYSTEM STATS: Time:1.1374 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:1
09/30/2010 12:37:23 PM - SYSTEM STATS: Time:1.1367 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
09/30/2010 12:37:33 PM - SYSTEM STATS: Time:1.1323 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
09/30/2010 12:37:43 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select graph_templates_graph.local_graph_id from (graph_templates_graph,graph_local) left join host on (host.id=graph_local.host_id) left join graph_templates on (graph_templates.id=graph_local.graph_template_id) left join user_auth_perms on ((graph_templates_graph.local_graph_id=user_auth_perms.item_id and user_auth_perms.type=1 and user_auth_perms.user_id=1) OR (host.id=user_auth_perms.item_id and user_auth_perms.type=3 and user_auth_perms.user_id=1) OR (graph_templates.id=user_auth_perms.item_id and user_auth_perms.type=4 and user_auth_perms.user_id=1)) where graph_templates_graph.local_graph_id=graph_local.id and ((user_auth_perms.type != 1 OR user_auth_perms.type is null) AND ((user_auth_perms.type != 3) OR (user_auth_perms.type is null)) AND ((user_auth_perms.type != 4) OR (user_auth_perms.type is null))) and graph_templates_graph.local_graph_id= group by graph_templates_graph.local_graph_id"
I also want to add that cacti its working fine and graphics are added corectly.
Can someone help
Thanks
i have cat the cacti log file and find this
09/30/2010 12:37:13 PM - SYSTEM STATS: Time:1.1374 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:1
09/30/2010 12:37:23 PM - SYSTEM STATS: Time:1.1367 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
09/30/2010 12:37:33 PM - SYSTEM STATS: Time:1.1323 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
09/30/2010 12:37:43 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select graph_templates_graph.local_graph_id from (graph_templates_graph,graph_local) left join host on (host.id=graph_local.host_id) left join graph_templates on (graph_templates.id=graph_local.graph_template_id) left join user_auth_perms on ((graph_templates_graph.local_graph_id=user_auth_perms.item_id and user_auth_perms.type=1 and user_auth_perms.user_id=1) OR (host.id=user_auth_perms.item_id and user_auth_perms.type=3 and user_auth_perms.user_id=1) OR (graph_templates.id=user_auth_perms.item_id and user_auth_perms.type=4 and user_auth_perms.user_id=1)) where graph_templates_graph.local_graph_id=graph_local.id and ((user_auth_perms.type != 1 OR user_auth_perms.type is null) AND ((user_auth_perms.type != 3) OR (user_auth_perms.type is null)) AND ((user_auth_perms.type != 4) OR (user_auth_perms.type is null))) and graph_templates_graph.local_graph_id= group by graph_templates_graph.local_graph_id"
I also want to add that cacti its working fine and graphics are added corectly.
Can someone help
Thanks
Re: cacti log error
I have exactly the same error.
Anyone has a solution?
I checked "System utilities" --> techical support and there are no errors
Anyone has a solution?
I checked "System utilities" --> techical support and there are no errors
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: cacti log error
Mysql Error 1064 is a SQL syntax error.
That SQL statement is checking permissions for a graph, but the very end has no graph_id.
What were you trying to do when the error appeared?
That SQL statement is checking permissions for a graph, but the very end has no graph_id.
What were you trying to do when the error appeared?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Re: cacti log error
I upgraded from PA2.6 to PA2.8
Re: cacti log error
I found the problem.
It was a problem with the Graph List View Searching patch .
I replaced the old graph_view.php file an now it works
It was a problem with the Graph List View Searching patch .
I replaced the old graph_view.php file an now it works
Re: cacti log error
Unfortunately the problem isn't fixed.
Again I have following errors.
I always get it when I open a page with the graphs tab.
Any idea what is wrong?
Again I have following errors.
I always get it when I open a page with the graphs tab.
Code: Select all
10/11/2010 02:20:45 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select graph_templates_graph.local_graph_id from (graph_templates_graph,graph_local) left join host on (host.id=graph_local.host_id) left join graph_templates on (graph_templates.id=graph_local.graph_template_id) left join user_auth_perms on ((graph_templates_graph.local_graph_id=user_auth_perms.item_id and user_auth_perms.type=1 and user_auth_perms.user_id=4) OR (host.id=user_auth_perms.item_id and user_auth_perms.type=3 and user_auth_perms.user_id=4) OR (graph_templates.id=user_auth_perms.item_id and user_auth_perms.type=4 and user_auth_perms.user_id=4)) where graph_templates_graph.local_graph_id=graph_local.id and ((user_auth_perms.type != 1 OR user_auth_perms.type is null) AND ((user_auth_perms.type != 3) OR (user_auth_perms.type is null)) AND ((user_auth_perms.type != 4) OR (user_auth_perms.type is null))) and graph_templates_graph.local_graph_id= group by graph_templates_graph.local_graph_id"
Re: cacti log error
Anybody who can help me?
I reinstalled my whole cacti environment and I still get the error...
Cacti 0.8.7g
PIA 2.9b
I reinstalled my whole cacti environment and I still get the error...
Cacti 0.8.7g
PIA 2.9b
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: cacti log error
What exactly where you trying to view when this error occurs?
You may want to open a bug report for this
R.
You may want to open a bug report for this
R.
Re: cacti log error
I get this error when I want to view a graph.
Everything is workin fine but I always get the error in the logs.
I already reintstalled my cacti system en it is still the samen.
Everything is workin fine but I always get the error in the logs.
I already reintstalled my cacti system en it is still the samen.
Re: cacti log error
I can specify the problem.
I get the error when I visit a graph.php page by clicking on a graph in tree mode to see the details.
I'm searching right now for the sql code that i found in the error.
Anybody who can help?
I get the error when I visit a graph.php page by clicking on a graph in tree mode to see the details.
I'm searching right now for the sql code that i found in the error.
Anybody who can help?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: cacti log error
The error is a result of The local_graph_id is missing. But it is unclear, how this might happen.
R.
Code: Select all
...graph_templates_graph.local_graph_id= group...
R.
Who is online
Users browsing this forum: No registered users and 3 guests