NRDS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

NRDS

Post by rentsys »

I have two nagios servers and I want one to send passive checks to the main one, so I used NRDS is this the right way to do it or is there a better way?
I have a few questions about NRDS that weren't answered in the video or pdf file.
Say I have already configured a Host, but I want to change the Hostname. How do I do that?
I tried to re-install by doing

Code: Select all

[root@csvmmon01 clients]# ./installnrds CSFlexdata01.tar.gz 1
nagios group already exists.
nagios user already exists.
Installing NRDS Client

Adding cron jobs for CSFlexdata01 at a 1 minute interval

Crontabs installed OK
Updating config and plugins
basename: extra operand `root'
Try `basename --help' for more information.
basename: extra operand `root'
Try `basename --help' for more information.
Updated config to version 1.1 ERROR: plugin could not be retrieved from the NRDP server. Check NRDS plugin directory. ERROR: plugin could not be retrieved from the NRDP server. Check NRDS plugin directory. Updated 1 plugins
Installation complete

I thought it was weird that I got an error because I didn't the first time I did it. I looked it up and I ran this command and got this

Code: Select all

[root@csvmmon01 clients]# /usr/local/nrdp/clients/nrds/nrds_updater.sh
-bash: /usr/local/nrdp/clients/nrds/nrds_updater.sh: No such file or directory
what do I do about that?
Can I set up multiple nrds checks for different hosts on the back up server?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRDS

Post by lmiltchev »

I have two nagios servers and I want one to send passive checks to the main one, so I used NRDS is this the right way to do it or is there a better way?
You can use inbound/outbound checks to do this.

http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDS

Post by scottwilkerson »

For NRDS, you can change the hostname by editing the nagios users crontab on the remote system

Code: Select all

crontab -e -u nagios
you will see something like this

Code: Select all

*/5 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H 'OLD_HOST' 2>&1
change to
*/5 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H 'NEW_HOST' 2>&1
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRDS

Post by slansing »

Just keep an eye on your Unconfigured Objects as I believe a new one will come in under your changed host name.
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

Re: NRDS

Post by rentsys »

I actually did what you suggested before this I just didn't know if that was the proper way to do it, but now how do I remove NRDS from the sever since I should be using inbound and outbound transfers?
I have NRDP set up on the two servers but how do I configure services to be sent to the other server?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRDS

Post by lmiltchev »

I have NRDP set up on the two servers but how do I configure services to be sent to the other server?
Did you enter the IP of the "main" Nagios XI server, that you will be sending checks to, and the authentication token in the "Target Hosts" section under the "Outbound Check Transfer Settings" ("NRDP" tab) on the remote box(es)?

If you no longer wish to use NRDS, you can stop clients from sending the checks to the main server, just by deleting the crontab enties on each remote box:

Code: Select all

crontab -u nagios -e
delete the entry, save and exit.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

Re: NRDS

Post by rentsys »

Yes, I entered in the correct information.
I found this file http://assets.nagios.com/downloads/nrdp ... erview.pdf and was able to use this command on the slave sever

Code: Select all

[root@csvmmon01 clients]# /usr/bin/php /usr/local/nrdp/clients/send_nrdp.php --url=http://10.149.149.38/nrdp --token=v9hq7m04fob2 --host=somehost --service=someservice --state=0 --output="The service looks okay"
I received it in Unconfigured Objects. How do I configure hosts and services to send passive checks to the main server?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRDS

Post by slansing »

To configure forwarding:

Admin > Outbound Transfers > NRDP tab.

Then on the main server Admin > Inbound Transfers > NRDP tab, then they will populate in Admin > Unconfigured Objects.

Edit: NRDS to NRDP, reciting from memory has issues sometimes. :)
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

Re: NRDS

Post by rentsys »

Do you mean NRDP tab?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRDS

Post by lmiltchev »

I believe you are making this more difficult than it is... This functionality is provided in XI and I already sent you links to the two documents you need to use.

On the boxes that are sending traps, follow this document:
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

On the box, receiving traps, use this one:
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf


Once, you see the checks in the "Unconfigured Objects" on the receiving box, select them all and click on the "Configure" action button.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked