Page 1 of 1

Distributed Environment: NRDP & Network Latency

Posted: Wed Nov 07, 2012 8:06 am
by jhobbins
G'day Guys,

Aside from "Service and Host Freshness Checking" is there a way to ensure send_nrdp.sh commands successfully send results over WAN links with potentially high latency?

I hope I've been clear in my question.

Regards,

John Hobbins
Australia

Re: Distributed Environment: NRDP & Network Latency

Posted: Wed Nov 07, 2012 10:14 am
by mguthrie
Yes, the send_nrdp.sh script will return with an error message and error code if it can't send something to the server.

Re: Distributed Environment: NRDP & Network Latency

Posted: Wed Nov 07, 2012 1:20 pm
by jhobbins
Thanks mate.

Is it possible to set a retry or timeout value?

Re: Distributed Environment: NRDP & Network Latency

Posted: Wed Nov 07, 2012 4:04 pm
by scottwilkerson
You can call it with the following flag

Code: Select all

-D /path/to/temp/dir
And it will store unsuccessful attempts in /path/to/temp/dir and retry sending them the next time the script is called

Otherwise you would need to modify the script adding

Code: Select all

--timeout=seconds
after wget on line 90

Re: Distributed Environment: NRDP & Network Latency

Posted: Fri Nov 09, 2012 5:14 pm
by jhobbins
Thanks mate.

Is wget preferable over curl?

If so, do I simply swap the order in the shell script?

Re: Distributed Environment: NRDP & Network Latency

Posted: Mon Nov 12, 2012 10:38 am
by mguthrie
Not really much of a difference either way. Some base installs of Linux don't ship with wget anymore, but most ship with curl.