sni / Thruk

Thruk is a multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken using the Livestatus API.
http://www.thruk.org
Other
406 stars 147 forks source link

Bug: "host_custom_variables" : null #1363

Closed lgmu closed 3 months ago

lgmu commented 4 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 },...

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 }