we are on Check_mk 2.2 raw and having existing custom checks which record metrics which return values in milliseconds, if we go to graphs we do not see units, in order to resolve this wanted to use metric_info functionality, like create following:
but it not works, gives exception because of “ms”, also tried “milliseconds” same issue arised but if I use “s” it works but naturally gives inaccurate info because it expects seconds but metrics is in millisecons. Since we have already collected perfomance data I cant just simply make script return value in seconds:
Always return the base SI units from your checks, in that case seconds. The graphing system then is able to scale the y axis automatically and present it in milliseconds.
The easiest way I’ve found is yes, convert your script output to seconds. My custom check script uses powershell and outputs in milliseconds, so I just do this to convert:
So 75ms outputs as 0.075, and then Checkmk handles that properly on my graph when I set the unit to s. If you want your summary/details to show in the “correct” unit, you can just output that pre-conversion.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.