Error: Save Failed

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
biliati
Posts: 7
Joined: Fri Sep 05, 2008 11:47 am
Contact:

Error: Save Failed

Post by biliati »

Gentlemen,
I'm having trouble inserting a new device in cacti. After saving messangem appears the following "Error: Save Failed." and debug "CMDPHP: Poller [0] ERROR: SQL Command Failed for Save Table 'host'. Error was 'Unknown column' device_threads 'in' field list''
Can anyone help?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error: Save Failed

Post by gandalf »

Which version of cacti is this, please?
R.
cckid
Posts: 7
Joined: Wed May 09, 2012 9:47 am

Re: Error: Save Failed

Post by cckid »

I'm having the same problem on version 0.8.8
I've tried changing my config.php file to log in with root access to ensure it wasn't a permissions issue but it did not work.

The following error appears in the cacti.log file. Although it looks to pertain to the poller, I did not find any other errors in any obvious log files.

Code: Select all

05/09/2012 01:50:06 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT 1 AS id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory=ph.name  WHERE ph.status = 1 AND hook = 'poller_bottom'  AND ph.name IN ('settings', 'boost', 'dsstats')  UNION  SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory=ph.name  WHERE ph.status = 1 AND hook = 'poller_bottom'  AND ph.name NOT IN ('settings', 'boost', 'dsstats')  ORDER BY id ASC"
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Error: Save Failed

Post by BSOD2600 »

MySQL error 1146 = Message: Table '%s.%s' doesn't exist.

cacti technical support page. What tables are present?
cckid
Posts: 7
Joined: Wed May 09, 2012 9:47 am

Re: Error: Save Failed

Post by cckid »

Thanks for the reply.
These are the tables that I have in my cacti DB:
  • cdef
    cdef_items
    colors
    data_input
    data_input_data
    data_input_fields
    data_local
    data_template
    data_template_data
    data_template_data_rra
    data_template_rrd
    graph_local
    graph_template_input
    graph_template_input_defs
    graph_templates
    graph_templates_gprint
    graph_templates_graph
    graph_templates_item
    graph_tree
    graph_tree_items
    host
    host_graph
    host_snmp_cache
    host_snmp_query
    host_template
    host_template_graph
    host_template_snmp_query
    poller
    poller_command
    poller_item
    poller_output
    poller_reindex
    poller_time
    rra
    rra_cf
    settings
    settings_graphs
    settings_tree
    snmp_query
    snmp_query_graph
    snmp_query_graph_rrd
    snmp_query_graph_rrd_sv
    snmp_query_graph_sv
    user_auth
    user_auth_perms
    user_auth_realm
    user_log
    version
Should I have a 'plugin_hooks' table?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Error: Save Failed

Post by BSOD2600 »

cckid wrote:Should I have a 'plugin_hooks' table?
Yes.

This a fresh install of cacti 0.8.8 or upgrade? you know 0.8.8a is out too, right?
cckid
Posts: 7
Joined: Wed May 09, 2012 9:47 am

Re: Error: Save Failed

Post by cckid »

This was a fresh install via RPMForge on a clean CentOS6 box.
I downloaded the 0.8.8 source and imported the SQL database from it. It seems to have fixed the issue as I was able to add a new device!
Thanks for the hints!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Error: Save Failed

Post by BSOD2600 »

cckid wrote:This was a fresh install via RPMForge on a clean CentOS6 box.
You might want to send a note to the package maintainers to update the installer...
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests