NRDS Configurations in Linux

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
charmainequek
Posts: 35
Joined: Thu Dec 21, 2017 8:00 pm

NRDS Configurations in Linux

Post by charmainequek »

hi,
i would like to find out if there is any quick way to change the nrds config for some of my hosts which are currently attached to a nrds config?
What i mean is 1 currently have x host that is passively monitored by nrdp using a nrds config x, due to some unique checks that i would like to add to host x but do not want to apply the same check to others hosts using the same nrds config x.
i would like to migrate host x to a new nrds config template but without going through the reinstalling nrdp client step.
May i know if there is any fast / manual way to point the host x to the new nrds config?
i have tried to manually edit the /usr/local/nrdp/clients/nrds/nrds.cfg to change the "CONFIG_NAME" to the new config name i have created in Nagios XI under NRDS Config Manager but it doesn't seem to work.

Please advise if i have missed any steps or how can it be done. Thanks. :)
Last edited by charmainequek on Thu Jan 30, 2020 2:58 am, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDS Configurations in Linux

Post by scottwilkerson »

You would edit /usr/local/nrdp/clients/nrds/nrds.cfg on the client, changing both the CONFIG_NAME AND set

Code: Select all

CONFIG_VERSION="0.0"
The config will only update if the version is lower than the version returned on the server.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
charmainequek
Posts: 35
Joined: Thu Dec 21, 2017 8:00 pm

Re: NRDS Configurations in Linux

Post by charmainequek »

hi scottwilkerson,

thanks for the information. i will try it out.
Can each client only use 1 config template? i have some checks for a particular linux host that i do not want to apply to other linux hosts.
Can i create another linux template and apply it to the client? i.e. apply 2 templates with different checks to 1 client.

Thanks.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRDS Configurations in Linux

Post by Box293 »

This KB article will help understand how the logic works in the backend.

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

By default when nrds.pl is executed (by cron) it uses the default config file nrds.cfg.

You could add a second cron job that specifies a seperate config file, for example:

Code: Select all

*/2 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H 'centos13' -c /usr/local/nrdp/clients/nrds/nrds_custom.cfg > /dev/null 2>&1
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked