danielzzz / node-ping

a poor man's ping library (using udp scanning) for node
MIT License
332 stars 105 forks source link

Datadog Synthetic Monitoring: ICMP Test on Windows Machine Not Working #165

Open bhsi-gbarbosa opened 7 months ago

bhsi-gbarbosa commented 7 months ago

I've setup a datadog synthetics worker on a Windows 10 machine and getting the following error, "There is no deadline option on Windows" This error appears to cause the ICMP Test to fail all together.

I'm running the HTTP Test without any issues from the same synthetics worker.

Attaching the debug log for your review. Thanks in advance. private-location-service.out.log

mondwan commented 7 months ago

Hi,

As the error suggested, there is no deadline line option in the Window system. As we are just using the ping executable provided by the OS, there will be no deadline option supported as a result

You may check out the FAQ in the readme for studying this issue in detail.

But, in short, you may need to switch the underlying OS, or implementing such feature your own.

On Fri, 16 Feb 2024, 22:51 bhsi-gbarbosa, @.***> wrote:

I've setup a datadog synthetics worker on a Windows 10 machine and getting the following error, "There is no deadline option on Windows" This error appears to cause the ICMP Test to fail all together. private-location-service.out.log https://github.com/danielzzz/node-ping/files/14316657/private-location-service.out.log

I'm running the HTTP Test without any issues from the same synthetics worker.

Attaching the debug log for your review. Thanks in advance. private-location-service.out.log https://github.com/danielzzz/node-ping/files/14316661/private-location-service.out.log

— Reply to this email directly, view it on GitHub https://github.com/danielzzz/node-ping/issues/165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5YBI64KYX5NIS5PMAEE5TYT7PG5AVCNFSM6AAAAABDMYGMPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTSNJZGUZTGNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bhsi-gbarbosa commented 7 months ago

I'm running the default config. I didn't make any changes to any of the files. Do I need to make any config changes to disable the deadline option? Thanks in advance.

Hi, As the error suggested, there is no deadline line option in the Window system. As we are just using the ping executable provided by the OS, there will be no deadline option supported as a result You may check out the FAQ in the readme for studying this issue in detail. But, in short, you may need to switch the underlying OS, or implementing such feature your own. On Fri, 16 Feb 2024, 22:51 bhsi-gbarbosa, @.> wrote: I've setup a datadog synthetics worker on a Windows 10 machine and getting the following error, "There is no deadline option on Windows" This error appears to cause the ICMP Test to fail all together. private-location-service.out.log https://github.com/danielzzz/node-ping/files/14316657/private-location-service.out.log I'm running the HTTP Test without any issues from the same synthetics worker. Attaching the debug log for your review. Thanks in advance. private-location-service.out.log https://github.com/danielzzz/node-ping/files/14316661/private-location-service.out.log — Reply to this email directly, view it on GitHub <#165>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5YBI64KYX5NIS5PMAEE5TYT7PG5AVCNFSM6AAAAABDMYGMPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTSNJZGUZTGNY . You are receiving this because you are subscribed to this thread.Message ID: @.>

mondwan commented 7 months ago

Try setting the deadline option to be false or null.

On Wed, 21 Feb 2024, 20:49 bhsi-gbarbosa, @.***> wrote:

I'm running the default config. I didn't make any changes to any of the files. Do I need to make any config changes to disable the deadline option? Thanks in advance.

Hi, As the error suggested, there is no deadline line option in the Window system. As we are just using the ping executable provided by the OS, there will be no deadline option supported as a result You may check out the FAQ in the readme for studying this issue in detail. But, in short, you may need to switch the underlying OS, or implementing such feature your own. … <#m-9115469149342553511> On Fri, 16 Feb 2024, 22:51 bhsi-gbarbosa, @.> wrote: I've setup a datadog synthetics worker on a Windows 10 machine and getting the following error, "There is no deadline option on Windows" This error appears to cause the ICMP Test to fail all together. private-location-service.out.log https://github.com/danielzzz/node-ping/files/14316657/private-location-service.out.log https://github.com/danielzzz/node-ping/files/14316657/private-location-service.out.log I'm running the HTTP Test without any issues from the same synthetics worker. Attaching the debug log for your review. Thanks in advance. private-location-service.out.log https://github.com/danielzzz/node-ping/files/14316661/private-location-service.out.log https://github.com/danielzzz/node-ping/files/14316661/private-location-service.out.log — Reply to this email directly, view it on GitHub <#165 https://github.com/danielzzz/node-ping/issues/165>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5YBI64KYX5NIS5PMAEE5TYT7PG5AVCNFSM6AAAAABDMYGMPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTSNJZGUZTGNY https://github.com/notifications/unsubscribe-auth/AA5YBI64KYX5NIS5PMAEE5TYT7PG5AVCNFSM6AAAAABDMYGMPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTSNJZGUZTGNY . You are receiving this because you are subscribed to this thread.Message ID: @.>

— Reply to this email directly, view it on GitHub https://github.com/danielzzz/node-ping/issues/165#issuecomment-1957885789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5YBIYZEEHAXTLFQUYDAJLYUZMV3AVCNFSM6AAAAABDMYGMPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXHA4DKNZYHE . You are receiving this because you commented.Message ID: @.***>