VMware Cloud Community
ZorroMaskedAven
Contributor
Contributor
Jump to solution

icinga2 monitoring + check esxi_hardware.py = (0, 'Socket error: [Errno 110] Connection timed out')

I have tried to use the check_esxi_hardware.py python script but im not getting any answers.

This is the command im using:

python check_esxi_hardware.py -H https://10.x.x.x:5988 -U 'root' -P 'blablah' -v

This is the answer im getting:

20180423 16:12:40 LCD Status: True

20180423 16:12:40 Connection to https://10.x.x.x

20180423 16:12:40 Found pywbem version 0.8.0~dev

20180423 16:12:40 Check classe OMC_SMASHFirmwareIdentity

UNKNOWN: (0, 'Socket error: [Errno 110] Connection timed out')

I have found this old topic with the same problem:

Monitor hardware on ESXi with Python script

I already restarted the CIM via shell and GUI like suggested here:

https://www.claudiokuenzler.com/blog/308/check-esxi-hardware-faq-frequently-asked-questions


Any ideas?

Latest debian + ESXI 6.0

1 Solution

Accepted Solutions
ashwin_prakash
VMware Employee
VMware Employee
Jump to solution

Hello,

1. Make sure the Monitoring Server is able to access tcp port 5989 (cim) on the ESX(i) server. Alternatively you can also set a different port with the -C parameter if you have a special DNAT or port forwarding in place.

2. Check if sfcbd-watchdog service, running on the ESXi server.

Sincerely,
Ashwin Prakash
Skyline Support Moderator

View solution in original post

Reply
0 Kudos
2 Replies
ashwin_prakash
VMware Employee
VMware Employee
Jump to solution

Hello,

1. Make sure the Monitoring Server is able to access tcp port 5989 (cim) on the ESX(i) server. Alternatively you can also set a different port with the -C parameter if you have a special DNAT or port forwarding in place.

2. Check if sfcbd-watchdog service, running on the ESXi server.

Sincerely,
Ashwin Prakash
Skyline Support Moderator
Reply
0 Kudos
ZorroMaskedAven
Contributor
Contributor
Jump to solution

You were right the port was blocked by the Firewall. Stupid me, couldnt find it first but after checking every other port with telnet it got me