Error: Cannot open config file '/usr/local/nagios/etc/hosts.cfg'

Steve_Schryburt at Mitel.COM Steve_Schryburt at Mitel.COM
Mon May 16 19:12:14 CEST 2005


I'm trying to use several host definition files, one for each monitored
system.  I'm not using hosts.cfg.

When I try staring the nagios deamon I get an error that it can't find
hosts.cfg:

Nagios 2.0b3 starting... (PID=425)
Error: Cannot open config file '/usr/local/nagios/etc/hosts.cfg' for
reading: No such file or directory


Location of of host definition files (1 per host):
/usr/local/nagios/etc/hosts/<hostname>.cfg

/usr/local/nagios/etc/nagios.cfg:
cfg_dir=/usr/local/nagios/etc/hosts


I compiled with these options:

./configure --prefix=/usr/local/nagios \
--exec-prefix=/usr/local/nagios \
--bindir=/bin \
--sbindir=/sbin \
--libexecdir=/libexec \
--datadir=/share \
--sysconfdir=/etc \
--localstatedir=/var


Thanks.
Stephen S.




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list