Page 1 of 1

NRDP send command

Posted: Tue Jan 02, 2018 5:28 am
by dpa.clt
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... =7&t=28678

In the future, please create a new thread and link to the old one instead of adding on.


Hello, I have nrdp configured on my nagios server (10.10.0.189), also on my remote client server if i execute send_nrdp.php , it executes fine.

root@remote-client:/usr/local/nrdp/clients# ./send_nrdp.php --url=http://10.10.0.189/nrdp/ --token=Hdt988tdxrtsuzx12 --host=remote-client --service="ping" --state=0 --output="The host is up and OK"
root@remote-client:/usr/local/nrdp/clients#

How can I see this results on Nagios server, Also how to enable monitoring for various other services for the remote client. and how do schedule it on my remote client servers.

Someone please help.

Re: NRDP send command

Posted: Wed Jan 03, 2018 11:05 am
by mcapra
dpa.clt wrote:How can I see this results on Nagios server
Assuming you have a host named "remote-client" with a service named "ping", you should see "The host is up and OK" in the specified service's status output. Is this not the case for your setup?

dpa.clt wrote:Also how to enable monitoring for various other services for the remote client.
Run a plugin and pipe it's exit code and output to send_nrdp's --output and --state arguments. For multiple services using the same plugin, you could use wrapper scripts.

NCPA also supports passive checks if you're open to using an agent. You can have NCPA take care of a lot of the "scheduling/configuring" end of things. That's probably the cleaner way of doing this.

dpa.clt wrote:and how do schedule it on my remote client servers.
Most commonly: cron for Linux, Scheduled Tasks for Windows. Or, if you're using NCPA, there's configuration settings related to scheduling the checks.

Nagios XI also has a lot of this sort of thing baked-in.

Re: NRDP send command

Posted: Wed Jan 03, 2018 1:06 pm
by kyang
Thanks for the help @mcapra!

dpa.clt, He's right, did you create a host and service check? That is how you would see passive checks Nagios.

https://support.nagios.com/kb/article/n ... s-762.html

Otherwise, Let us know if mcapra's suggestion helped you!

Re: NRDP send command

Posted: Thu Jan 04, 2018 5:41 am
by dpa.clt
thanks for the response .We were able to get it configured with nagios core,nrdp and ncpa client .
Still some issues .I have posted it in a new thread.

Thanks for the suggestion

Re: NRDP send command

Posted: Thu Jan 04, 2018 10:06 am
by kyang
Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!