<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">My understanding is that I should be able to put hostname.cfg files into a<br>directory that I've identified with the cfg_dir directive
<br>"cfg_dir=/usr/local/nagios/etc/hosts".</blockquote><div><br>
Correct. I do the same, but for entire sites in individual files. <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Here is the example in 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=/usr/local/nagios/etc/servers<br>   #cfg_dir=/usr/local/nagios/etc/printers<br>   #cfg_dir=/usr/local/nagios/etc/switches
<br>   #cfg_dir=/usr/local/nagios/etc/routers</blockquote><div><br>
Remove the '#' from the beginning of the 'cfg_dir' lines... <br>
</div><br></div>As to the error about the
'cfg_file=/usr/local/nagios/etc/hosts.cfg' line, make sure that no such
line actually exists in your nagios.cfg file. It it does, either remove
it or put a '#' at the beginning of the line.<br>
<br>
-Dan<br>