Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Howie wrote:If the plugin was tested with PA 2.4, does that mean the patches only work on Cacti 0.8.7d?
Answering my own question: host.php.patch and lib_api_device.php.patch both fail on my test 0.8.7e install. This plugin sounds very cool though
That is likely. 087e was surprising me, else I would have added the hooks to it.
But all patches are very small; most of them only adding a hook.
Reinhard
Howie wrote:If the plugin was tested with PA 2.4, does that mean the patches only work on Cacti 0.8.7d?
Answering my own question: host.php.patch and lib_api_device.php.patch both fail on my test 0.8.7e install. This plugin sounds very cool though
That is likely. 087e was surprising me, else I would have added the hooks to it.
But all patches are very small; most of them only adding a hook.
Reinhard
I see what you mean. The patches aren't quite fuzzy enough with line numbers, that's all. I added those two manually.
This is a fantastic plugin! If only it did thold templates too, then I could take the afternoons off
Hello,
It's an amazing plugin for environments that change a lot.
Still i have an issue when using graph leaf on the tree rules : graph are added at the root tree level instead of being added in a subtree.
Here are the logs i have :
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[179] execute_graph_create_tree - graph: 1172
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[179] execute_graph_create_tree - sql: SELECT plugin_autom8_tree_rules.id, plugin_autom8_tree_rules.name, plugin_autom8_tree_rules.tree_id, plugin_autom8_tree_rules.tree_item_id, plugin_autom8_tree_rules.leaf_type, plugin_autom8_tree_rules.host_grouping_type, plugin_autom8_tree_rules.rra_id FROM plugin_autom8_tree_rules WHERE enabled='on' AND leaf_type=2
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[179] execute_graph_create_tree - rule: 4 name: LB-Graph type: 2
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[179] execute_graph_create_tree - sql: SELECT graph_templates_graph.id, graph_templates_graph.local_graph_id, graph_templates_graph.height, graph_templates_graph.width, graph_templates_graph.title_cache, graph_templates.name, graph_local.host_id FROM (graph_local,graph_templates_graph) LEFT JOIN graph_templates ON (graph_local.graph_template_id=graph_templates.id) LEFT JOIN host ON (graph_local.host_id = host.id) LEFT JOIN host_template ON (host.host_template_id = host_template.id) WHERE graph_local.id=graph_templates_graph.local_graph_id AND ( host_template.name REGEXP 'BigIP' AND graph_templates.name REGEXP 'VS Traffic') AND graph_local.id=1172
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[1172] create_all_header_nodes - items sql: SELECT * FROM plugin_autom8_tree_rule_items WHERE plugin_autom8_tree_rule_items.rule_id=4 ORDER BY sequence matches: 2
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[1172] create_all_header_nodes - sql: SELECT host.description AS source FROM host LEFT JOIN host_template ON (host.host_template_id = host_template.id) LEFT JOIN graph_local ON (host.id = graph_local.host_id) LEFT JOIN graph_templates ON (graph_local.graph_template_id=graph_templates.id) LEFT JOIN graph_templates_graph ON (graph_local.id = graph_templates_graph.local_graph_id) WHERE host.id=1172 AND graph_templates_graph.local_graph_id > 0 AND ( host_template.name REGEXP 'BigIP' AND graph_templates.name REGEXP 'VS Traffic') matches:
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[1172] create_all_header_nodes - sql: SELECT graph_templates_graph.title_cache AS source FROM host LEFT JOIN host_template ON (host.host_template_id = host_template.id) LEFT JOIN graph_local ON (host.id = graph_local.host_id) LEFT JOIN graph_templates ON (graph_local.graph_template_id=graph_templates.id) LEFT JOIN graph_templates_graph ON (graph_local.id = graph_templates_graph.local_graph_id) WHERE host.id=1172 AND graph_templates_graph.local_graph_id > 0 AND ( host_template.name REGEXP 'BigIP' AND graph_templates.name REGEXP 'VS Traffic') matches:
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[179] execute_graph_create_tree - parent: 0
10/16/2009 09:31:36 AM - AUTOM8: Poller[0] Host[179] execute_graph_create_tree - node: 757
From what i saw the function create_all_header_nodes is called with the id of the graph (1172) but it's designed to be called with the host id (179) so the SQL queries give an empty result.
Could it be that in line 505 of autom8_functions.php the WHERE statement should be on the graph ID instead of the host ID ?
Regards,
cacti v: 0.8.7d
I followed your instructions to patch the files. After patching, when I go to devices, I get "http 500" error. When reverse the patch, when I go to graph and thold link, the page is empty. this plugin as per the instructions is not working.
I'm just implementing this plugin now, and I have one feature request: logging.
It would be great if Autom8 would log when it has done something (added x to tree y, created graph z). At the moment, it logs a lot of SQL queries, but nothing higher-level.