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

how to setup encrypted connection to server #50

Open
unclesam87 opened this issue May 8, 2024 · 7 comments
Open

how to setup encrypted connection to server #50

unclesam87 opened this issue May 8, 2024 · 7 comments

Comments

@unclesam87
Copy link

hey thanks for ur work, but i am confused:
how do i setup an encrypted connection to my checkmk server?

@kohly
Copy link

kohly commented Jun 29, 2024

at least, if nothing other works: deny access to 6556/tcp on any if but lo and create a rule for agent access by "ssh 'telnet localhost 6556'

@doctore74
Copy link

at least, if nothing other works: deny access to 6556/tcp on any if but lo and create a rule for agent access by "ssh 'telnet localhost 6556'

I would use nc instead of telnet.

@doctore74
Copy link

hey thanks for ur work, but i am confused: how do i setup an encrypted connection to my checkmk server?

Not possible AFAIK

@kohly
Copy link

kohly commented Jun 29, 2024

hey thanks for ur work, but i am confused: how do i setup an encrypted connection to my checkmk server?

Not possible AFAIK

user@host:~$ ssh opnsense "sudo nc localhost 6556" | head
<<<check_mk>>>
AgentOS: OPNsense
Version: 1.0.7
Hostname: opnsense
LocalDirectory: /usr/local/check_mk_agent/local
PluginsDirectory: /usr/local/check_mk_agent/plugins
AgentDirectory: /usr/local/etc
SpoolDirectory: /usr/local/check_mk_agent/spool
<<>>
0.68 0.59 0.53 1/68 13145 2
...

@thorstenspille
Copy link
Contributor

thorstenspille commented Jul 28, 2024

The agent supports encrytion via PSK. Just create the file /usr/local/etc/checkmk.conf and insert:
encrypt: <your-encryption-key>

@kohly
Copy link

kohly commented Jul 28, 2024

The agent supports encrytion via PSK. Just create the file /usr/local/etc/checkmk.conf and insert: encrypt: <your-encryption-key>

how do i create the 'your-encryption-key'?

@thorstenspille
Copy link
Contributor

Thats part of the checkmk documentation:
https://docs.checkmk.com/latest/en/agent_linux_legacy.html#encryption

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

No branches or pull requests

4 participants