sni / Thruk

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

"Servicename Format" in Thruk Reporting still does not work correctly for "Customvariable" #1173

Open Mac-Dui opened 2 years ago

Mac-Dui commented 2 years ago

Describe the bug The bug described in https://github.com/sni/Thruk/issues/1151 has not been resolved completely. Setting "Servicename Format" to "Displayname" works now correctly. However Setting "Servicename Format" to "Customvariable" still has no effect - the service_description is used instead of the custom variable. Thruk 2.44.3 - OMD 4.20-labs-edition was the last version where it worked fine.

Thruk Version Thruk 2.48 - OMD 4.41~2022-04-04-labs-edition

To Reproduce Example config:

define service{
    use             generic-service
    host_name           testhost1
    service_description     service_1
    display_name            Display 1
    check_command           check_custom!0!OK: One and only one
    _NAME_IN_REPORT         ONE
    }

define service{
    use             generic-service
    host_name           testhost2
    service_description     service_2
    display_name            Display 2
    check_command           check_custom!0!OK: Two, too
    _NAME_IN_REPORT         TWO
    }

Added this line to etc/thruk/thruk_local.conf:

show_custom_vars = _NAME_IN_REPORT

Expected behavior Using the example config above one would expect: Setting "Servicename Format" to "Customvariable" with value "NAME_IN_REPORT" should yield a report with service names "ONE" and "TWO". However the obtained report with Thruk 2.48 using Servicename Format "Customvariable" shows the service_description (i.e. "service_1" and "service_2") as service name not the custom variable.

Screenshots See previous ticket https://github.com/sni/Thruk/issues/1151

Mac-Dui commented 1 year ago

Any progress on this issue?