Page 1 of 1

Where are the resource variables in Nagios XI

Posted: Mon Nov 11, 2013 12:52 pm
by kendallchenoweth
Where are the variables defined in resources.cfg stored in Nagios XI?

Thanks!

Re: Where are the resource variables in Nagios XI

Posted: Mon Nov 11, 2013 1:20 pm
by abrist
Same file as core.

Code: Select all

/usr/local/nagios/etc/resource.cfg
Access them as you would in core with $USERn$.

Re: Where are the resource variables in Nagios XI

Posted: Mon Nov 11, 2013 1:31 pm
by kendallchenoweth
I want to use the database as the primary storage of templates, etc. Once edited, does this file need to be imported into Nagios? Is this file read dynamically or does something need to be restarted in order to activate the changes?

Re: Where are the resource variables in Nagios XI

Posted: Mon Nov 11, 2013 1:36 pm
by abrist
kendallchenoweth wrote:Once edited, does this file need to be imported into Nagios?
Nope. Nagios (and XI ) use this file in place.
kendallchenoweth wrote: Is this file read dynamically or does something need to be restarted in order to activate the changes?
The file is only read on nagios startup, so any changes to resource.cfg will need to be accompanied by a nagios service restart.

Re: Where are the resource variables in Nagios XI

Posted: Mon Nov 11, 2013 1:56 pm
by kendallchenoweth
Thanks for your help!!!