I am working on a plugin for some nokia 9500MPR microwave systems. I’m sure I’m just missing something but the input/output octets is a counter64 so it is just feeding raw octet counter. I have that pushing into checkmk as a metric and then in the local/share/check_mk/web/plugins/metrics directory I have created a .py file to place both the in and out counters together making a bandwidth graph but I seem to be missing something to get the octets to convert to a human readable bits/s kind of number. i have tried several of the units provided by check mk but the numbers just don’t look right. thoughts?
Ok that makes a lot of sense based on how speed is calculated with the octets. I did some implamentation using that function but I still must be understanding something incorrect cause the numbers are not lining up when i look at both ends of a connection.
here is the plugin code where i am using the function suggested.
I was hoping now with the new calculated value that is being put into the “yield metric” I would just be able to apply the “bits/s” unit in the metric file but that isn’t coming out with the right numbers. Is there a calculation I am missing? or maybe I’m not doing the get_rate correctly and so the data I’m putting in isn’t correct?
The original value is supposed to be octets. Here is an example of a reading where this went in 16998667560342 and after the get_rate returned this 342277.02682026796
342277 Octets per second → arroud 2.6MBit/s. You need to convert this in to Bits per second before the yield Metric. Or you can also convert the input values from Octets to Bits. I asume one Octet eq eight Bits
well, I feel silly I didn’t remember that conversion. Now that we are converting the numbers look very much in line with the other side of the link. very much appreciate your help.