NRDP send command

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dpa.clt
Posts: 15
Joined: Tue Jan 02, 2018 4:42 am

NRDP send command

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRDP send command

Post 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.
Former Nagios employee
https://www.mcapra.com/
kyang

Re: NRDP send command

Post 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!
dpa.clt
Posts: 15
Joined: Tue Jan 02, 2018 4:42 am

Re: NRDP send command

Post 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
kyang

Re: NRDP send command

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