How to disable service metric name autoformating?

CMK version: Checkmk Raw Edition 2.2.0p30

Error message:

I am currently writing a check script for SSL lifetimes which factors in that a domain can have multiple A and AAAA records. I will put that script on 3 different external hosts to get an external view on endpoints. I will include some other metrics like response code and response time.

Because I need to check >50 endpoints where most of them got 2+ IP addresses, I am not using check_mk build in tools. They just don’t fit the use case.

This is the example output of the local check

P example.com_ssl SSL-example.com-9318421514=30;21:;7:|SSL-example.com-2606280021fcb07682080daaf6b8b2c=30;21:;7: SSL Checks for example.com \nexample.com 93.184.215.14 valid for only 10 Days \nexample.com 2606:2800:21f:cb07:6820:80da:af6b:8b2c valid for only 10 Day\n\n

# for better readability
P
example.com_ssl
SSL-example.com-9318421514=10;21:;7:
SSL-example.com-2606280021fcb07682080daaf6b8b2c=10;21:;7:
SSL Checks for example.com
example.com 93.184.215.14 valid for only 10 Days
example.com 2606:2800:21f:cb07:6820:80da:af6b:8b2c valid for only 10 Day


These long strings are the IP addresses without . and :

I would love to have the IPs as IPs in the output but check_mk doesn’t like : in the output, so I decided to get rid off any special char in the IP addresses.

Now when I look at the checkmk UI this looks like this:

Summary:
SSL Checks for example.com , SSL-example.com- 9318421514: 10.00 (warn/crit below 21.00/7.00)WARN, SSL-example.com- 2606280021 fcb 07682080 daaf 6 b 8 b 2 c: 10.00 (warn/crit below 21.00/7.00)WARN

Details:
example.com 93.184.215.14 valid for only 10 Days
example.com 2606:2800:21f:cb07:6820:80da:af6b:8b2c valid for only 10 Days


SSL-example.com- 9318421514: 10.00 (warn/crit below 21.00/7.00)WARN
SSL-example.com- 2606280021 fcb 07682080 daaf 6 b 8 b 2 c: 10.00 (warn/crit below 21.00/7.00)WARN

Service Metrics: 
Ssl-Example.Com-2606280021Fcb07682080Daaf6B8B2C:	10.0
Ssl-Example.Com-9318421514:	10.0

Graphs:
Ssl-Example.Com-9318421514
Ssl-Example.Com-2606280021Fcb07682080Daaf6B8B2C

And this is what is received by opsgenie:

Additional Info: SSL Checks for example.com , SSL-example.com- 9318421514: 10.00 (warn/crit below 21.00/7.00)(!), SSL-example.com- 2606280021 fcb 07682080 daaf 6 b 8 b 2 c: 10.00 (warn/crit below 21.00/7.00)(!)

Is there a way to just have the strings there, without any weird formatting?
I also would like to send the details with the summary to the alerting channel.

Screenshot of the check_mk UI

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.