Icinga / Icinga/icingaweb2-module-graphite

Perfdata with dot in label splits into separate folders

Open
#210 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/backend
Dominant language
PHP
Stars
73
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Some checks don't display graphs for the perf data they collect.
Here is one example:
image

The label name has a dot in the name (blabla_backup.bak size).

The normal behavior is that special characters and spaces are replaced by an underscore when creating the folder structure.
When there is a dot in the perf data label this does not seem to work, as I get the following folder structure for this check:
/var/lib/graphite/whisper/icinga2/HOSTNAME/services/SERVICENAME/CHECKCOMMAND/perfdata/PART-BEFORE-THE-DOT/PART-AFTER-THE-DOT/*.wsp files

e.g. for the screenshot above
/var/lib/graphite/whisper/icinga2/HOSTNAME/services/file_size_Tibros_172_backup/nrpe/perfdata/tibros172_backup/bak_size/value.wsp
-----^^^^------ ^^^^

Best regards,
log1c

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that converts perfdata labels into Graphite/Whisper folder paths, then reproduce the example label blabla_backup.bak size. Done means the dot and spaces are normalized consistently so the label remains in the intended folder rather than creating separate PART-BEFORE-THE-DOT and PART-AFTER-THE-DOT directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.