Skip to content
This repository was archived by the owner on Apr 16, 2018. It is now read-only.
This repository was archived by the owner on Apr 16, 2018. It is now read-only.

[dev.icinga.com #11358] Allow nicer names for display_name instead of only $name #347

@icinga-migration

Description

@icinga-migration

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11358

Created by pregopresto on 2016-03-10 22:18:20 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-03-20 21:59:30 +00:00 (in Redmine)


For services it is nice to have speaking services names. This is often a prefix like $name, followed by a variable. For example if I have a check_procs, I possibly don't only want to see "procs" but "procs-apache2", "procs-openvpn" and so on. Another example would be to monitor Apache vhosts and instead of "http" I would like to see "http-example.net", "http-foobar.com"

Currently the apply_service.pp sets the default value of display_name to "$name" and in the apply_service.conf.erb the variable is put into "". This doesn't allow to work with variables because they are not resolved by icinga2 later. I think something like the logic at CheckCommand for cmd_path is needed here to allow a mixture of strings and variables.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions