Host Can NOT be displayed in threshold creation wizard,
If I set authentication method for none, and I can't find any hosts in threshold creation wizard,
I print the sql,It's
SELECT DISTINCT host.id, CONCAT_WS('',host.description,' (',host.hostname,')') AS name FROM (graph_templates_graph, host) LEFT JOIN graph_local ON (graph_local.host_id=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=) OR (host.id=user_auth_perms.item_id AND user_auth_perms.type=3 AND user_auth_perms.user_id=) OR (graph_templates.id=user_auth_perms.item_id AND user_auth_perms.type=4 AND user_auth_perms.user_id=)) WHERE graph_templates_graph.local_graph_id=graph_local.id ORDER BY name
I find the "user_id" params are missing, then I set authentication method for builtin authentication, and open threshold creation wizard.
It's OK.
在threshold creation wizard不显示host。
因为我把认证方式设为无,才导致不显示HOST,将认证方式设为builtin authentication即可解决。
[Bug] Host Can NOT be displayed in threshold creation wizard
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 0 guests