root@gestion1:~# telnet 10.2.1.4 6555 |grep -A 5 “app-proxmox”
Connection closed by foreign host.
root@gestion1:~# telnet 10.2.1.4 6556 |grep -A 5 “app-proxmox”
Connection closed by foreign host.
Could you post your /etc/xinetd.d/check_mk file?
Right.
Does the /usr/bin/check_mk_agent file exists and is executable?
Could you restart xinetd?
root@gestion1:~# ls -l /usr/bin/check_mk_agent
-rwxr-xr-x 1 root root 22016 Oct 15 15:44 /usr/bin/check_mk_agent
root@gestion1:~# /etc/init.d/xinetd restart
[ ok ] Restarting xinetd (via systemctl): xinetd.service.
Do you get an output if you run /usr/bin/check_mk_agent manually ?
If so, could you retry the telnet commands as mentioned above.
<<<check_mk>>>
Version: 1.2.6b5
AgentOS: linux
AgentDirectory: /etc/check_mk
DataDirectory: /var/lib/check_mk_agent
SpoolDirectory: /var/lib/check_mk_agent/spool
PluginsDirectory: /usr/lib/check_mk_agent/plugins
LocalDirectory: /usr/lib/check_mk_agent/local
<<>>
udev devtmpfs 14389412 0 14389412 0% /dev
tmpfs tmpfs 2881152 271336 2609816 10% /run
/dev/mapper/pve-root ext4 69401864 2275324 63558108 4% /
tmpfs tmpfs 14405744 51888 14353856 1% /dev/shm
tmpfs tmpfs 5120 0 5120 0% /run/lock
tmpfs tmpfs 14405744 0 14405744 0% /sys/fs/cgroup
/dev/fuse fuse 30720 28 30692 1% /etc/pve
tmpfs tmpfs 2881148 0 2881148 0% /run/user/0
<<>>
[df_inodes_start]
udev devtmpfs 3597353 494 3596859 1% /dev
tmpfs tmpfs 3601436 749 3600687 1% /run
…
Do you have a firewall running on your monitoring and/or proxmox server wich blocks the TCP traffic to port 6556?
this is at librenms server
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 6556 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 161 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 199 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8888 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
And on your proxmox server?
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Then I don’t see any point why it shouldn’t work.
The telnet still doesn’t work after the restart of xinetd?
No, not working, by the way, on that server I have running the icinga2 agent, and it does it by that same port
Then you should change the port in the etc/xinetd.d/check_mk file.
Telnet to the new port. If the new port works, change the port number in the Misc section
tcp 0 0 0.0.0.0:5665 0.0.0.0:* LISTEN 6813/icinga2
Thats port 5665 vs 6556 so it shouldn’t make any difference
I know, but i not undestand what realy happend
I really don’t have a clue why it still doesn’t works. I’m sorry
Not problem, thanks so much for everythink. i stell working to fix that