# Howto use tagging/alarm routing for certificate extension

**URL:** <https://community.dynatrace.com/t/howto-use-tagging-alarm-routing-for-certificate-extension/41671>\
**Category:** Extensions\
**Tags:** ssl, extensions\
**Created:** [September 18, 2023, 6:20am UTC](https://community.dynatrace.com/t/howto-use-tagging-alarm-routing-for-certificate-extension/41671 "2023-09-18T06:20:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dani\_l](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@Dani\_l](https://community.dynatrace.com/u/Dani_l)\
**Post date:** [September 18, 2023, 6:20am UTC](https://community.dynatrace.com/t/howto-use-tagging-alarm-routing-for-certificate-extension/41671/1 "2023-09-18T06:20:25Z")

</div>

Does anybody have experience/suggestion how to route certificate alarms coming from cert extension ([SSL Certificate Monitor | Dynatrace Hub](https://www.dynatrace.com/hub/detail/ssl-certificate-monitor/))

I’m trying test and implement this extension which, after some applied fixes by Dynatrace, does what it should do. However I’m experiencing one big gap which support can’t solve and suggesting an RFE which I can’t imagine someone didn’t solve it already.

The extension is detecting certificates on eg host and creates a custom device for each certificate. The extension is generating alarms once certificates are (going to be) expired. The problem is that I can’t send these alarms to the right teams. I can’t autotag these items eg based on the host they’re detected on or the domain the certificate applies for.

Does anyone have experience with this and/or even solved this issue? I would have expected that via a entity selector rule using the relation or regex auto tag should be possible. Once autotagged the correct alarmprofile can be applied and alarms will be sent out to the right to solve the issue.

Looking forward seeing the responses,

Kind regards,

Daan

---

<div class="post-metadata">

**Author:** ![ben\_davidson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ben_davidson/32/20391_2.png) [@ben\_davidson](https://community.dynatrace.com/u/ben_davidson)\
**Post date:** [September 19, 2023, 11:40am UTC](https://community.dynatrace.com/t/howto-use-tagging-alarm-routing-for-certificate-extension/41671/2 "2023-09-19T11:40:39Z")

</div>

You can select all certificates related to a host with an entity selector like:

```markup
type("python:certificate_monitor_certificate"),fromRelationships.runsOn(type(HOST), entityId(HOST-xxxxxx))

```

Apply this entity selector to an automatic tagging rule, you can get results like:

 ![ben_davidson_0-1695123573544.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/8/e8f642f9893fc1552654e8d3223f00416e1967aa.png)

Would that solve your use-case?

---

<div class="post-metadata">

**Author:** ![Dani\_l](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@Dani\_l](https://community.dynatrace.com/u/Dani_l)\
**Post date:** [October 16, 2023, 12:42pm UTC](https://community.dynatrace.com/t/howto-use-tagging-alarm-routing-for-certificate-extension/41671/3 "2023-10-16T12:42:14Z")

</div>

Due to holidays and stuff I didn’t had the time yet to review this comment. Just tested it and it works like a charm! Only modification I’ve done rather than using a HostID I’ve been using the host tag based on the defined hostgroup.

---

<div class="post-metadata">

**Author:** ![noel\_c](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@noel\_c](https://community.dynatrace.com/u/noel_c)\
**Post date:** [January 15, 2024, 6:11pm UTC](https://community.dynatrace.com/t/howto-use-tagging-alarm-routing-for-certificate-extension/41671/4 "2024-01-15T18:11:25Z")

</div>

I have a similar situation, but I’m trying to have the certificates be recognized as belonging to a management zone, is there an entity selector I can set in the management zone rules that will accomplish this?

Thanks!
