sdacanay » Thu Jul 10, 2014 2:48 pm
I can’t connect to a remote host using the asmonitor command from the linux terminal. Here’s what I’m doing
[root@localhost ]# asmonitor -h 192.168.114.144
Enter help for help
request to 192.168.114.144 : 3000 returned error skipping 192.168.114.144:3000 **error Failed to connect to any hosts. Please edit the /root/.asmonitor/asmonitor.conf file with the correct hosts parameter in the [main] section or provide host connection host:port info via the -h parameter
Aerospike Interactive Shell, version 3.2.13 Monitor>
For some reason, it looks like asmonitor is being started, but I assume it is the local command shell. When I append the port to the -h 192.168.114.144:000 like this I get the same error, and no matter if I change the conf file to include hosts I still can’t connect. But when I do a different aerospike tool, like aql, I can connect to the remote host to run stat system like this: aql -h 192.168.114.144 -c ‘stat system’
and it works fine.
Here’s my conf file for reference:
note ## = #### Please edit [main] section , this is a sample
color = True fqdn = True hosts = 127.0.0.1:3000 xdr = False xdrport = 3004 crawl = True port = 3000
[main] color = True fqdn = True hosts = 192.168.114.145:3000,192.168.114.144:3000 xdr = False xdrport = 3004 crawl = True port = 3000
[donotedit] hosts = 192.168.114.145:3000,192.168.114.144:3000 namespaces = test,bar #Line is auto generated. Do not edit
I’ve also just tried to change the hosts field in [main] to only the local machine and only the remote machine but I still get the same error. Any advice? Thanks!