Page 1 of 1

NRDP update only when the state changes?

Posted: Tue Oct 01, 2019 8:06 am
by eloyd
Using the built-in NRDP outbound transfers, it would be nice to make NRDP a little less chatty. Maybe an option to only send an NRDP update only when the state changes?

We've got customers with remote satellite-based connections that are not always working. We're thinking of a way to queue up those requests and send them in "batch" mode. That got us to thinking that maybe we only need to know about state changes to begin with, and couldn't find an easy way to do it.

Re: NRDP update only when the state changes?

Posted: Tue Oct 01, 2019 10:42 am
by scottwilkerson
The outbound transfer is designed to send everything for every service check.

For what you describe, I would recommend writing a script and using the Global event handler to in fact call /usr/local/nrdp/clients/send_nrdp.sh to accomplish your goal

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

You would need 2 handlers, one for hosts and one for services

Re: NRDP update only when the state changes?

Posted: Tue Oct 01, 2019 11:19 am
by eloyd
Yes, I'm aware of how it works today. That's why I was asking if there could be an option added that would only have it send for state changes. Thanks.

Re: NRDP update only when the state changes?

Posted: Tue Oct 01, 2019 2:39 pm
by scottwilkerson
I will mention it as a possible addition in the future.