Module: check_mk
Branch: master
Commit: 3c55d03675531a7ccf29e90c642d923ab2616a48
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3c55d03675531a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Mar 9 10:56:39 2015 +0100
Internal code comment
---
agents/special/agent_vsphere | 3 +++
1 file changed, 3 insertions(+)
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 503daeb..2c52738 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -522,6 +522,9 @@ socket.setdefaulttimeout(opt_timeout)
def get_agent_info_tcp(hostname):
output = ""
try:
+ # TODO: gethostbyname() automatically detects IP addresses and does
+ # *not* contact any nameserver in that case. So the following two
+ # lines of code should not be neccessary:
if hostname[0] in "123456789":
ipaddress = hostname
else: