cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Alert me if Host Group Name format is incorrect

Aleksey
Participant

Hello,

We have an automatic tag host-group-format with rules to tag the host if Host's Host Group is 'correct', 'does not exist', and 'incorrect'. 

What is all needed to be configured in order for us to get an alert if there is a host with an 'incorrect' value for host-group-format tag. 

Thank you in advance. 

4 REPLIES 4

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

I do not think that is possible today, out-of-the-box, but lets wait another answers.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Peter_Youssef
Leader

Hello @Aleksey 

Thanks for raising such important concern.

Regarding the Host Groups in Dynatrace:

2024-10-19_19h43_28.png

  • Host Group assignment can be done either through the UI or the oneagentctl.
  • I believe during the HG assignment if you deviated from the described instructions, it won't be assigned so how you will be alerted and notified.
  • In the alerting profiles configurations during checking these are available options, Host group not listed

2024-10-19_19h51_37.png

2024-10-19_19h56_57.png

So the suggestions:

  1. Either to create a custom alerting and check if the feasibility and keep us posted.
  2. Suggest the highlighted concern through Dynatrace Product Ideas .

Hoping it adds value.

KR,

Peter.

 

 

 

Fin_Ubels
Dynatrace Champion
Dynatrace Champion

Hey @Aleksey 

Could you use a metric like host availability filtered by hosts with the "incorrect" and "does not exist" tag? The metric selector would look something like:

builtin:host.availability:filter(and(or(in("dt.entity.host",entitySelector("type(host),tag(~"HostGroup:Value~")"))))):splitBy("dt.entity.host")

And then just alert if the value is greater than -1 so it always alerts if a host exists with that tag value. Then you can add a custom alert title/description to ensure people know what the alert is about.

Aleksey
Participant

Thank you @Peter_Youssef and @Fin_Ubels 
I will try out your recommendations and comment on outcome.
For now I created a dashboard that lists hosts with incorrect or missing Host Group.
We are in the middle of on-boarding and learning at the same time. It was important to identify "incomplete" OneAgent deployments and notify owner to correct the script. Look forward to trying out the suggestions as I learn more. For now dashboard will suffice.

Featured Posts