Icinga / icingaweb2-module-graphite

The Graphite module for displays data stored in Graphite directly in the Icinga Web 2 interface.
https://icinga.com/docs/graphite/latest
GNU General Public License v2.0
73 stars 32 forks source link

weird folder name for Whisperdata #294

Closed Raupueppi closed 1 year ago

Raupueppi commented 1 year ago

Description

We found unexpected folders in whisperdata, we couldn't explain where they come from. We have a self written check for snmp to watch interfaces. Sometimes folders appeare with weird name like "_'interfacename'" But the expected folder name is "interfacename". After some experience I know when it happens that the weird name is written. When the check returns a multiline message like

[OK]: Hallo Welt1|'data1'=0.00;36;48;0;1907.3486
[OK]: Hallo Welt2|'data2'=0.00;36;48;0;1907.3486
[OK]: Hallo Welt3|'data3'=0.00;36;48;0;1907.3486

The code for this message:

#!/bin/bash

result="[OK]: Hallo Welt1|'data1'=0.00;36;48;0;1907.3486 \n[OK]: Hallo Welt2|'data2'=0.00;36;48;0;1907.3486 \n[OK]: Hallo Welt3|'data3'=0.00;36;48;0;1907.3486"
echo -e $result
exit $?

Expected Behavior

The folder names storing the whisper data

Current Behavior

The folder names storing the whisper data

Possible Solution

Maybe a bug in transformating/splitting the message string

Steps to Reproduce (for bugs)

  1. create a "validate_perfdataname_check" in Icinga for your "testhost" with
    /usr/sbin/echo -e "[OK]: Hallo Welt1|'data1'=0.00;36;48;0;1907.3486 \n[OK]: Hallo Welt2|'data2'=0.00;36;48;0;1907.3486 \n[OK]: Hallo Welt3|'data3'=0.00;36;48;0;1907.3486"
  2. Run this check
  3. look into /var/lib/carbon/whisper/icinga2/"testhost"/services/"validate_perfdataname_check"/"validate_perfdataname_check"/perfdata/

Context

The issue has negative effects:

  1. In Icinga you can see empty windows for graphs showing the message 'No data'. They slow down the speed while loading the graphs especially if one check has graphs for in- and outtraffic of up to 200 interfaces.
  2. We need lots of memory for unnecessary data. We have over 1000 checks watching in- and outtraffic of up to 200 interfaces. A deleting routine running every day would be expensive, too.

If this bug would be fixed, it would make our world much better. :-)

Your Environment

If you need more information I need help where to find them.

Raupueppi commented 1 year ago

should be fixed by #8969