Distributed Environment: NRDP & Network Latency

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jhobbins
Posts: 33
Joined: Fri Oct 05, 2012 8:24 pm

Distributed Environment: NRDP & Network Latency

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Distributed Environment: NRDP & Network Latency

Post 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.
jhobbins
Posts: 33
Joined: Fri Oct 05, 2012 8:24 pm

Re: Distributed Environment: NRDP & Network Latency

Post by jhobbins »

Thanks mate.

Is it possible to set a retry or timeout value?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Distributed Environment: NRDP & Network Latency

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jhobbins
Posts: 33
Joined: Fri Oct 05, 2012 8:24 pm

Re: Distributed Environment: NRDP & Network Latency

Post by jhobbins »

Thanks mate.

Is wget preferable over curl?

If so, do I simply swap the order in the shell script?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Distributed Environment: NRDP & Network Latency

Post 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.
Locked