Closed lgmu closed 3 months ago
Thruk Version v3.15.20240513 (659d1030a)
thruk r '/services?host_name=HOST&columns=host_name,host_state,host_custom_variables,description,state,plugin_output'
This returns: { "description" : "SERVICE", "host_custom_variables" : null, "host_name" : "HOST", "host_state" : 0, "plugin_output" : "OK", "state" : 0 },...
{ "description" : "SERVICE", "host_custom_variables" : null, "host_name" : "HOST", "host_state" : 0, "plugin_output" : "OK", "state" : 0 },...
But the host does have custom variables and strangely when also querying "host_custom_variable_names" and "host_custom_variable_values" it works: { "description" : "SERVICE", "host_custom_variable_names" : [ "ABC" ], "host_custom_variable_values" : [ "123" ], "host_custom_variables" : { "ABC" : "123" }, "host_name" : "HOST", "host_state" : 0, "plugin_output" : "OK", "state" : 0 }
{ "description" : "SERVICE", "host_custom_variable_names" : [ "ABC" ], "host_custom_variable_values" : [ "123" ], "host_custom_variables" : { "ABC" : "123" }, "host_name" : "HOST", "host_state" : 0, "plugin_output" : "OK", "state" : 0 }
Thruk Version v3.15.20240513 (659d1030a)
thruk r '/services?host_name=HOST&columns=host_name,host_state,host_custom_variables,description,state,plugin_output'
This returns:
{ "description" : "SERVICE", "host_custom_variables" : null, "host_name" : "HOST", "host_state" : 0, "plugin_output" : "OK", "state" : 0 },...
But the host does have custom variables and strangely when also querying "host_custom_variable_names" and "host_custom_variable_values" it works:
{ "description" : "SERVICE", "host_custom_variable_names" : [ "ABC" ], "host_custom_variable_values" : [ "123" ], "host_custom_variables" : { "ABC" : "123" }, "host_name" : "HOST", "host_state" : 0, "plugin_output" : "OK", "state" : 0 }