I have two centos Machine, Machine A and Machine B. In machine A i have installed collectd and influxdb. So, the system metric from machine A is pushed into influxdb using collectd. I have installed collectd in machine B. Now, I need to push the system metric from machine B to the influxdb which is in machine A.
Collectd uses the port 25826. When I run the below mentioned command in Machine A my output is:
Machine A:
command: netstat -tuplen | grep ':25826'
output : udp6 0 0 :::25826 :::* 981 325073833 23132/influxd
In Machine B:
sudo netstat -tuplen | grep ':25826'
No output came.
When i use below mentioned command in Machine B:
command:telnet "xxx.xx.xx.xx" "25826"
output:Trying xxx.xx.xx.xx...
telnet: connect to address xxx.xx.xx.xx: No route to host
How to create the host in machine B...So that i can push the metric from Machine B to Machine A...From both machine PING command is working
When i run
sudo firewall-cmd --zone=public --list-ports
Output:
80/tcp 5666/tcp 25826/tcp 25826/udp 3000/tcp
Port is added to iptables...eventhough why telnet command is not working?