Where are the resource variables in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kendallchenoweth
Posts: 195
Joined: Fri Sep 13, 2013 10:43 am

Where are the resource variables in Nagios XI

Post by kendallchenoweth »

Where are the variables defined in resources.cfg stored in Nagios XI?

Thanks!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Where are the resource variables in Nagios XI

Post by abrist »

Same file as core.

Code: Select all

/usr/local/nagios/etc/resource.cfg
Access them as you would in core with $USERn$.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kendallchenoweth
Posts: 195
Joined: Fri Sep 13, 2013 10:43 am

Re: Where are the resource variables in Nagios XI

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Where are the resource variables in Nagios XI

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kendallchenoweth
Posts: 195
Joined: Fri Sep 13, 2013 10:43 am

Re: Where are the resource variables in Nagios XI

Post by kendallchenoweth »

Thanks for your help!!!
Locked