Page 1 of 1

NRDS Configurations in Linux

Posted: Fri Jan 24, 2020 12:29 am
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. :)

Re: NRDS Configurations in Linux

Posted: Fri Jan 24, 2020 8:34 am
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.

Re: NRDS Configurations in Linux

Posted: Wed Jan 29, 2020 9:38 pm
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.

Re: NRDS Configurations in Linux

Posted: Thu Jan 30, 2020 6:19 pm
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