NRDP send command

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

NRDP send command

Postby dpa.clt » Tue Jan 02, 2018 5:28 am

Moderator Edit: This thread has been split from another - viewtopic.php?f=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.
dpa.clt
 
Posts: 11
Joined: Tue Jan 02, 2018 4:42 am

Re: NRDP send command

Postby mcapra » Wed Jan 03, 2018 11:05 am

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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3423
Joined: Thu May 05, 2016 3:54 pm

Re: NRDP send command

Postby kyang » Wed Jan 03, 2018 1:06 pm

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!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kyang
Support Tech
 
Posts: 1792
Joined: Tue Jul 25, 2017 3:35 pm

Re: NRDP send command

Postby dpa.clt » Thu Jan 04, 2018 5:41 am

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

Re: NRDP send command

Postby kyang » Thu Jan 04, 2018 10:06 am

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!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kyang
Support Tech
 
Posts: 1792
Joined: Tue Jul 25, 2017 3:35 pm


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 19 guests