Customizing local check summary

we have depeloped a simple local check script according to this document but we can’t customize the summary, looks by nature of script it populates the summary from metrics list but we also wanna have units beside numbers on summary, even better whole custom summary performance metrics not added to summary automatically, not possible?

local script can’t iirc have units

well, you mean summary can’t customized? it is all about units as string on summary, it is like summary auto generated from metrics but I also can add first part of summary, but then it is duplicated data like I have summary with better naming and units while local check adds same data with its own way.

With actual 2.2.0p8 you see only the metrics inside summary if a warn or crit condition exists.
Local checks: Show metric values in service summary only if WARN/CRIT (checkmk.com)
You should use the P state that this works.

Still metrics added to summary,

check output:

0 "Nvidia Tesla T4 - GPU Stats" utilization=0;80;95|temperature=39;;; GPU Utilization: 0% Temperature: 39°C
0 "Nvidia Tesla T4 - Memory Stats" memory_utilization=0;80;95|used=2396;;;|total=15360;;;|free=12569;;; Memory Utilization: 0% Used: 2396MiB Free: 12569MiB Total: 15360MiB
0 "Nvidia Tesla T4 - Clock Frequencies" App_Graphics=585;;;|App_Memory=5001;5001;;|Max_Graphics=1590;;;|Max_Memory=5001;;; App Graphics: 585MHz App Memory: 5001MHz Max Graphics: 1590MHz Max Memory: 5001MHz

how checkmk see it.

As you don’t use the “P” state for your local check it is clear that the metrics are shown.
Local checks
Inside the manual you find some examples for the “P” state.

1 Like

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.