Skip to content

Commit 0d4a7eb

Browse files
authored
Merge pull request freddy36#17 from HeinleinSupport/cmk2.3
bird for CMK 2.3
2 parents 75c4100 + 1e58b15 commit 0d4a7eb

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

bird/bird-4.9.0.mkp

-10.6 KB
Binary file not shown.

bird/bird-5.0.1.mkp

10.7 KB
Binary file not shown.

bird/web/plugins/perfometer/bird.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
perfometers["check_mk-bird6_status"] = perfometer_check_mk_uptime
2727

2828
def perfometer_check_mk_bird_protocols(row, check_command, perf_data):
29-
value = int(list(filter(lambda x: x[0] == "route_stats_imported", perf_data))[0][1])
29+
value = list(filter(lambda x: x.metric_name == "route_stats_imported", perf_data))[0].value
3030
return "%d imported" % value, perfometer_logarithmic(value, 20000 , 2 , "#da6")
3131

3232
perfometers["check_mk-bird_protocols"] = perfometer_check_mk_bird_protocols
3333
perfometers["check_mk-bird6_protocols"] = perfometer_check_mk_bird_protocols
3434

3535
def perfometer_check_mk_bird_memory(row, check_command, perf_data):
36-
value = int(list(filter(lambda x: x[0] == "Total", perf_data))[0][1])
36+
value = list(filter(lambda x: x.metric_name == "Total", perf_data))[0].value
3737
value_mb = value/1024/1024
3838
return "%d MB" % value_mb, perfometer_logarithmic(value_mb, 500 , 2 , "#80ff40")
3939

0 commit comments

Comments
 (0)