NetXMS Support Forum

English Support => General Support => Topic started by: obscenum on March 22, 2014, 12:43:01 PM

Title: ServiceCheck.Custom, DNS-names not resolved
Post by: obscenum on March 22, 2014, 12:43:01 PM
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
Title: Re: ServiceCheck.Custom, DNS-names not resolved
Post by: Victor Kirhenshtein on March 24, 2014, 09:40:27 AM
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
Title: Re: ServiceCheck.Custom, DNS-names not resolved
Post by: obscenum on March 24, 2014, 02:19:37 PM
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
Title: Re: ServiceCheck.Custom, DNS-names not resolved
Post by: Victor Kirhenshtein on March 24, 2014, 02:22:27 PM
No problem, I'll build intermediate binary. Are you using 32 or 64 bit version?

Best regards,
Victor
Title: Re: ServiceCheck.Custom, DNS-names not resolved
Post by: obscenum on March 24, 2014, 03:19:21 PM
Great, I use the 64-bit version on Windows 8.1.

Cheers
Opie
Title: Re: ServiceCheck.Custom, DNS-names not resolved
Post by: Victor Kirhenshtein on March 24, 2014, 04:50:54 PM
Updated subagent attached.

Best regards,
Victor
Title: Re: ServiceCheck.Custom, DNS-names not resolved
Post by: obscenum on March 24, 2014, 11:34:31 PM
Thank You kindly good Sir, works like a charm!  ;D

Cheers
Opie