ServiceCheck.Custom, DNS-names not resolved

Started by obscenum, March 22, 2014, 12:43:01 PM

Previous topic - Next topic

obscenum

Hi!

I'm trying to monitor some external websites/-services by using the ServiceCheck.Custom-parameter on the NetXMS server.
But if I use DNS-names I get response code 2 "Cannot connect to target", using IP-address works fine.
DNS-names works from the server (web browser, ping etc).

Any suggestions on what maybe wrong much appreciated?

Cheers
Opie

Victor Kirhenshtein

Hi!

Yes, there is a bug in portcheck subagent - you can only use IP address. I already fix that. If you need it before next release, I can provide updated subagent binary. If you are building NetXMS from source, you can replace inet_addr with ResolveHostNameA in file src/agent/subagents/portcheck/net.cpp line 40 and rebuild.

Best regards,
Victor

obscenum

I run NetXMS in a Windows-only network with the binarys downloaded from the NetXMS website.
If you can provide an intermediate version that would be great, if not I'll just wait for the next official release.

Thank You


Cheers
Opie

Victor Kirhenshtein

No problem, I'll build intermediate binary. Are you using 32 or 64 bit version?

Best regards,
Victor

obscenum

Great, I use the 64-bit version on Windows 8.1.

Cheers
Opie

Victor Kirhenshtein

Updated subagent attached.

Best regards,
Victor

obscenum

Thank You kindly good Sir, works like a charm!  ;D

Cheers
Opie