Support Questions

Find answers, ask questions, and share your expertise

"Host Metrics" section shows "No Data Available" i am not use proxy .i setup vms on oracle VM

avatar

i make entry on host file on window and centos .

i can ping host by name and ip

10 REPLIES 10

avatar
Master Mentor

@Ajay Jayswal

Can you ping your vm IP from Windows? restart the ambari server and agent

# ambari-server restart
# ambari-agent restart

Whats your cluster configuration single node or multi-node?

avatar

yes i can ping VM IP from Windows

avatar

cluster configuration is multi-node

i have three node


avatar

I restarted ambari server and agent

avatar
Master Mentor

@Ajay Jayswal

Host metrics are available as part of the Ambari Metrics Monitor data collection. So can you please check if you have installed the Ambari Metrics Collector on your cluster and also the Ambari Metrics Monitor service is running fine on every Host of the cluster so that the ambari metrics monitor can collect the host metrics and send it to the AMS collector.

.

Please check the "/var/log/ambari-metrics-monitor/ambari-metrics-monitor.out". this file to see if the Monitor is able to properly communicate with the AMS collector or not? If you find any error then please also share the "ambari-metrics-collector.log"

.

avatar

I check status ambari-metrics-collector and monitor

[root@node2 ~]# ambari-metrics-collector status AMS is running as process 1896.

[root@node2 ~]# ambari-metrics-monitor status psutil build directory is not empty, continuing... Found ambari-metrics-monitor PID: 32315 ambari-metrics-monitor running. Monitor PID at: /var/run/ambari-metrics-monitor/ambari-metrics-monitor.pid Monitor out at: /var/log/ambari-metrics-monitor/ambari-metrics-monitor.out

avatar
Master Mentor

@Ajay Jayswal

monitor might be running but is it communicating well with AMS collector or not? Please share the log "/var/log/ambari-metrics-monitor/ambari-metrics-monitor.out"

can you please try this: (basically rebuild psutils)

# cd /usr/lib/python2.6/site-packages/resource_monitoring/ 
# python psutil/build.py 


The from amabri UI restart the AMS monitor process on that node2

avatar
Master Mentor

@Ajay Jayswal

Please check your "ambari-metrics-monitor.out" file to see if you notice any such following message whcih indicates that the Ambari Metrics Monitor process on that node (niode2) has some issues connecting to the AMS collector?

[WARNING] emitter.py:146 - Error sending metrics to server. [Errno 111] Connection refuse
.
.
[WARNING] emitter.py:120 - Metric collector host xxxxx.yyyy.com was blacklisted.

.

Also please check if the metrics monitor on that host is pointing to the correct Hostname of the AMS collector? Also do a telnet or (netcat) to see if node2 is able to connect to AMS collector Hostname & Port or not?

# grep 'metrics_servers' /etc/ambari-metrics-monitor/conf/metric_monitor.ini  
metrics_servers = amb25102.example.com
# grep 'port' /etc/ambari-metrics-monitor/conf/metric_monitor.ini  
port = 6188


# nc -v amb25102.example.com:6188

.

avatar
Master Mentor

@Ajay Jayswal

If you find the above answer helped in finding and fixing the improper Hostname/resolution issue then please makr this thread as Answered by clicking on the "Accept" button. That way this troubleshooting step will be useful for other HCC users as well.