No (Missing) Graph Template Items

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

Moderators: Developers, Moderators

Post Reply
SnednarB
Posts: 2
Joined: Fri Jun 06, 2008 9:10 am
Location: Brooklyn, NY

No (Missing) Graph Template Items

Post by SnednarB »

Recently, when I would create new graphs for devices, the would not work. I also noticed that the graph title would be like "servername - Traffic - |query_ifName|".

Looking further, I noticed that ALL of my Graph Templates no longer contain Graph Template Items. [See Screen-shot]

It seems that I can re-import a template and fix this problem. Unfortunately, I do not have templates to import for many of my graph templates.

Turning on debug output I receive this in the log (I added some comments):
  • ' THE FOLLOWING LINE RETURNS ONE (1) ROW
    06/06/2008 09:53:10 AM - CMDPHP: Poller[0] DEBUG: SQL Row: "select * from graph_templates_graph where graph_template_id=18 and local_graph_id=0"
    ' THE FOLLOWING LINE RETURNS ONE (1) ROW
    06/06/2008 09:53:10 AM - CMDPHP: Poller[0] DEBUG: SQL Row: "select * from graph_templates where id=18"
    ' THE FOLLOWING LINE RETURNS TWO (2) ROWS
    06/06/2008 09:53:10 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select id,name from graph_template_input where graph_template_id=18 order by name"
    ' THE FOLLOWING LINE RETURNS ONE (1) ROW
    06/06/2008 09:53:10 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select name from graph_templates where id=18"
    ' ######### THE FOLLOWING LINE RETURNS AN EMPTY RECORD SET #########
    06/06/2008 09:53:10 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select graph_templates_item.id, graph_templates_item.text_format, graph_templates_item.value, graph_templates_item.hard_return, graph_templates_item.graph_type_id, graph_templates_item.consolidation_function_id, CONCAT_WS(' - ',data_template_data.name,data_template_rrd.data_source_name) as data_source_name, cdef.name as cdef_name, colors.hex from graph_templates_item left join data_template_rrd on (graph_templates_item.task_item_id=data_template_rrd.id) left join data_local on (data_template_rrd.local_data_id=data_local.id) left join data_template_data on (data_local.id=data_template_data.local_data_id) left join cdef on (cdef_id=cdef.id) left join colors on (color_id=colors.id) where graph_templates_item.graph_template_id=18 and graph_templates_item.local_graph_id=0 order by graph_templates_item.sequence"
    ' THE FOLLOWING LINE RETURNS THIRTY (30) ROWS
    06/06/2008 09:53:08 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT graph_templates.id,graph_templates.name FROM graph_templates WHERE (graph_templates.name LIKE '%%%%') ORDER BY name ASC LIMIT 0,30"
    ' THE FOLLOWING LINE RETURNS ONE (1) ROW (COUNT=77)
    06/06/2008 09:53:08 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "SELECT COUNT(graph_templates.id) FROM graph_templates WHERE (graph_templates.name LIKE '%%%%')"
Any ideas to what caused this? How to fix this?

I'm using Version 0.8.7b on Windows Server 2003.
Attachments
Screen-shot showing no Graph Template Items
Screen-shot showing no Graph Template Items
No_Graph_Template_Items.jpg (107.14 KiB) Viewed 674 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you already try to repair the mysql tables?
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest