sni / Thruk

Thruk is a multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken using the Livestatus API.

Home Page:http://www.thruk.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: "host_custom_variables" : null

lgmu opened this issue · comments

commented

Thruk Version
v3.15.20240513 (659d103)

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 }