freddy36 / check_mk_extensions

Extensions for check_mk
GNU General Public License v3.0
11 stars 10 forks source link

fix 2 parsing bugs #15

Closed PhilippKilian closed 10 months ago

PhilippKilian commented 1 year ago

Fix for 2 parsing bugs for bird2.

  1. Bug: Values from Memory are parsed as integers, but can be floats.
  2. Bug: ":"
<<<bird>>>
0001 BIRD 2.0.10 ready.
1000 BIRD 2.0.10
[..]
1018 BIRD memory usage
1018                       Effective    Overhead
1018     Routing tables:    614.7 kB    333.7 kB   -> ":" and values are floats, both not correctly parsed
1018     Route attributes:  273.0 kB    107.1 kB
1018     Protocols:        3887.0 kB    154.9 kB
1018     Standby memory:      0.0  B   2048.0 kB
1018     Total:            4848.4 kB   2647.7 kB
[..]

Fix this by reducing float strings to int string and removing ":" from Metric string by spliting.

freddy36 commented 10 months ago

should be fixed by #16, thank you and sorry for not merging it earlier