Error: Cannot open config file '/usr/local/nagios/etc/hosts.cfg'
scott_yem at agilent.com
scott_yem at agilent.com
Mon May 16 19:22:59 CEST 2005
Try to edit nagios.cfg file to reflect:
cfg_dir=/usr/local/nagios/etc/hosts.cfg
Scott Yem
Research Computing Services
Agilent Laboratories
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
Steve_Schryburt at Mitel.COM
Sent: Monday, May 16, 2005 10:12 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Error: Cannot open config file
'/usr/local/nagios/etc/hosts.cfg'
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
-------------------------------------------------------
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_idt12&alloc_id344&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