Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Show group display names in service assign rules suggetions #2925

Open
RafaelSche opened this issue Oct 19, 2024 · 0 comments

Comments

@RafaelSche
Copy link

RafaelSche commented Oct 19, 2024

Situation

We import hosts and host groups from out internal host database. Host groups have an internal ID number and a human readable "label", essentially the group name. We use the ID as the icinga group name and the label as display name. Which is perfect in Icinga itself. In IcingaDB Web filters you can use host.display_name. But in the director display names do not show up in in searches and assign rule suggestions.

Search for host group by display name:
hostgroup_not_found_by_display_name

Assign rule suggestions with ID - found without display name:
rule_found_by_id

Assign rule suggestions with group display name - group not found:
rule_group_not_found_by_display_name

That makes it slightly more time-consuming, error-prone and inconvenient to write assign rules or quickly look up, which host groups a service is assigned to.

Previously we used the labels as group names, by if someone renamed a group name and forgot to edit the service assign rules, services were lost.

Possible Solution

Show display names in assign rule suggestions. Make searching by display names possible. The last one could make the searches more crowded in setups many display names and names of many different hosts are similar, but you could make that an optional setting.

Steps to Reproduce (for bugs)

See screenshots.

Your Environment

  • Director version (System - About):
  • Icinga Web 2 version and modules:
  • Icinga Web 2 2.12.1
    • Git Commit cd2daeb2cb8537c633d343a29eb76c54cd2ebbf2
    • PHP Version 8.2.24
    • businessprocess 2.5.1
    • director 1.11.1
    • doc 2.12.1
    • enforceddashboard 0.0.0
    • icingadb 1.1.3
    • incubator 0.22.0
  • Icinga 2 version (icinga2 --version): r2.14.2-1
  • Operating System and version:
$ hostnamectl
 Static hostname: icinga-bookworm
       Icon name: computer-vm
         Chassis: vm 🖴
      Machine ID: 8a7857555f1c441a83bf7a74c798f4b3
         Boot ID: bc373aed69654574bf89c3ed40997e58
  Virtualization: vmware
Operating System: Debian GNU/Linux 12 (bookworm)   
          Kernel: Linux 6.1.0-26-amd64
    Architecture: x86-64
 Hardware Vendor: VMware, Inc.
  Hardware Model: VMware7,1
Firmware Version: VMW71.00V.21805430.B64.2305221826
  • Webserver:
$ apt show apache2
Package: apache2
Version: 2.4.62-1~deb12u2
  • PHP versions:
    • PHP-Version 8.2.24
    • icinga/icinga-php-thirdparty 0.12.1
    • icinga/icinga-php-library 0.14.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant