Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add monitoring #1960

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

add monitoring #1960

wants to merge 1 commit into from

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Nov 6, 2023

No description provided.

@evgeni evgeni force-pushed the monitoring branch 3 times, most recently from 4627999 to 163de44 Compare November 7, 2023 10:12
puppet/modules/profiles/manifests/monitoring/client.pp Outdated Show resolved Hide resolved
puppet/modules/profiles/manifests/monitoring/server.pp Outdated Show resolved Hide resolved
@@ -0,0 +1,7 @@
class profiles::monitoring::client (
Stdlib::Host $server = 'monitoring.theforeman.org',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should not expose this as a parameter but instead set zabbix::agent::server via Hiera. Then we can simply include profiles::monitoring::client in our base profile. Or even just include zabbix::agent in profiles::base.

If we then include profiles::monitoring::server before profiles::base the explicit server for the agent should work.

puppet/modules/profiles/manifests/monitoring/server.pp Outdated Show resolved Hide resolved
@evgeni evgeni force-pushed the monitoring branch 3 times, most recently from be302af to f101f6a Compare November 13, 2023 18:08
@evgeni
Copy link
Member Author

evgeni commented Nov 14, 2023

Architectural question.

Zabbix can run passive agents (Server connects to Agent) and active agents (Agent connects to Server).
You have to configure each monitored system to be either passive or active (meh), as it slightly changes how data is transmitted (and requires you to use different templates 🙄).

The question is, which one do we want?

  • Active has the benefit that we only need one open port: the one for Zabbix on the monitoring box
  • Passive means that the Server needs to be able to connect to each agent, either via v6 or v4 (we have boxen with "only" for each of those) and thus needs to be dual-stacked (eliminating quite a few hosting locations).

With these in mind, I think I'd aim at an active setup?

@ekohl
Copy link
Member

ekohl commented Nov 14, 2023

I would also lean to an active setup.

Another question is where we want to host this. I was leaning to Netways since we have few hosts there so there's a good chance you'll find connectivity issues, but we don't have IPv6 there.

@evgeni
Copy link
Member Author

evgeni commented Nov 14, 2023

Another question is where we want to host this. I was leaning to Netways since we have few hosts there so there's a good chance you'll find connectivity issues, but we don't have IPv6 there.

That should be fine as long as our v6 agents have v4 NAT or something.

@ekohl
Copy link
Member

ekohl commented Nov 14, 2023

I'd also like to monitor HTTP remotely. Mostly for Jenkins & Discourse. If we have IPv6 we can also ensure Jenkins & Foreman are available over that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants