<br><br>
<div><span class="gmail_quote">On 2/1/07, <b class="gmail_sendername">Nedim Bicic</b> <<a href="mailto:nedo72@gmail.com">nedo72@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>yeah i totally forgot about this</div>
<div> </div>
<div>let me ask you in order for nagios to see and compile these host files and services for example for</div>
<div>I would uncomment bellow line in nagios.cfg</div><span class="q">
<div> </div>
<div>#cfg_dir=/etc/nagios/routers</div>
<div> </div></span>
<div>create this extension in nagios give it full permission on the directory folder and file and it hould work ??</div>
<div> </div>
<div>does that sound about right??</div>
<div> </div>
<div>thanks</div>
<div><span class="e" id="q_11080c58c09e553f_3">
<div><br><br> </div>
<div><span class="gmail_quote">On 2/1/07, <b class="gmail_sendername">Josh Yost</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Josh.Yost@epsiia.com" target="_blank">Josh.Yost@epsiia.com</a>
> wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Nedim Bicic wrote:<br>> yeah i can create subdirectory for hosts and services and make a pointer in<br>
> nagios.cfg but let me ask you could you have multiple host.cfg files and<br>> service.cfg files on the local host<br>><br>> for example splitting hosts into areas and serivces into regions<br>><br>> also my cpu is spiking in terms of processing i wonder if thats caused 
<br>> by my<br>> updated of host and services that are in the same files.???<br>><br><br>Hi,<br>If you define a cfg_dir, then it reads anything in that dir w/ a .cfg<br>extension.  So yes, you can split it into as many files as you like. 
<br><br>From the nagios.cfg:<br><br># You can also tell Nagios to process all config files (with a .cfg<br># extension) in a particular directory by using the cfg_dir<br># directive as shown below:<br><br>#cfg_dir=/etc/nagios/servers 
<br>#cfg_dir=/etc/nagios/printers<br>#cfg_dir=/etc/nagios/switches<br>#cfg_dir=/etc/nagios/routers<br><br><br>- Josh<br></blockquote></div><br></span></div></blockquote></div><br>