大网数据广告活动
服务器运维问答

Check_mk agent listening on ipv6, how to change to ipv4

· 52CE 我爱测

Hi I am new to check_mk and not very good in linux server configuration at all, so thanks for your patience. I installed check_mk under debian via gdebi (systemd not xinetd - and used default configuration so far) and also deploy…

问题原文

原帖链接 · helle · CC BY-SA 4.0

Hi I am new to check_mk and not very good in linux server configuration at all, so thanks for your patience.

I installed check_mk under debian via gdebi (systemd not xinetd - and used default configuration so far) and also deployed several agents already. That worked good on most machines. but on machines, where ipv6 is deaktivated for security reasons, it does not work. (https://security.stackexchange.com/questions/181949/how-would-disabling-ipv6-make-a-server-any-more-secure seems to be not the worst idea)

checking netstat -npa | grep 6556 showed me its tcp6 listening.

tcp6       0      0 :::6556                 :::*                    LISTEN      1/init

When I check telnet localhost 6556 I get the agent output (the same when I run check_mk_agent).

And check_mk dashboard tells me it can ping that server. So it is there.

What are my chances to fix that problem without activating ipv6?

Thanks :)

已采纳解答

原帖链接 · helle · CC BY-SA 4.0

I was now able to switch to ipv4.

I followed the instructions in the manual installation here:

https://docs.checkmk.com/latest/de/agent_linux.html (2.5) - which was not obvious for me, as the gdebi installation worked without any errors.

Then I configured xinetd to change the ceckmk socket to listen on ipv4 in the configfile /etc/xinetd.d/check-mk-agent.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-08-20)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。