theforeman / foreman_monitoring

Foreman plugin for monitoring system integration
GNU General Public License v3.0
18 stars 12 forks source link

Can monitoring proxy not be inherited from Host Groups? #78

Closed scroogie closed 3 years ago

scroogie commented 3 years ago

It seems not possible to inherit the monitoring proxy from a Host Group, or am I doing something wrong? While the host group has the proxy set, I still need to set the monitoring proxy on every individual host. Is there a better way to automate that?

timogoebel commented 3 years ago

This looks like a bug that we'd need to investigate.

dgoetz commented 3 years ago

I tested version 2.2, 2.3 and 2.4 now and it always worked fine.

@scroogie: Can you provide us with the version numbers of Foreman and the plugin? Or where it breaks in the workflow? I would guess your hosts are already existing and you just want to add the proxy now to them by adding it to the hostgroup. If this is the case then it is no bug, but a limitation of the workflow in foreman as such information are not inherited form the hostgroup but copied during creation of the host. So it has to be set afterwards manually or better by using the api or hammer cli!

scroogie commented 3 years ago

Oh this is true indeed, sorry if it's a wrong report then. We'll try to verify it with new hosts this week!

dgoetz commented 3 years ago

@scroogie: Had you any chance to verify this?

scroogie commented 3 years ago

Yes, it works for new hosts, sorry for the late answer.