Nagios 3 Install confid files


#1

I have tried running the install for both 2.9 and 3 the install generally goes well but when I try to create the config I get the following error

bash-3.00# make install-config
./install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc
./install-sh -c -b -m 664 -o nagios -g nagios sample-config/nagios.cfg /usr/local/nagios/etc/nagios.cfg
install: -b does not exist
*** Error code 1
make: Fatal error: Command failed for target `install-config’

**There are no config file created in the etc directory

I am using Solaris 10 any help would be much ppreciated
Reagrds
Dave Foster**


#2

Not sure why you have no -b… any road up, you can do this all by 'hand’
Copy Files

cp sample-config/nagios.cfg /usr/local/nagios/etc/nagios.cfg
cp sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg
cp sample-config/resource.cfg /usr/local/nagios/etc/resource.cfg
cp sample-config/template-object/templates.cfg /usr/local/nagios/etc/objects/templates.cfg
cp sample-config/template-object/commands.cfg /usr/local/nagios/etc/objects/commands.cfg
cp sample-config/template-object/contacts.cfg /usr/local/nagios/etc/objects/contacts.cfg
cp sample-config/template-object/timeperiods.cfg /usr/local/nagios/etc/objects/timeperiods.cfg
cp sample-config/template-object/localhost.cfg /usr/local/nagios/etc/objects/localhost.cfg
cp sample-config/template-object/windows.cfg /usr/local/nagios/etc/objects/windows.cfg
cp sample-config/template-object/printer.cfg /usr/local/nagios/etc/objects/printer.cfg
cp sample-config/template-object/switch.cfg /usr/local/nagios/etc/objects/switch.cfg

Change owner & group to nagios

chown nagios:nagios /usr/local/nagios/etc/nagios.cfg
chown nagios:nagios /usr/local/nagios/etc/cgi.cfg
chown nagios:nagios /usr/local/nagios/etc/resource.cfg
chown nagios:nagios /usr/local/nagios/etc/objects/templates.cfg
chown nagios:nagios /usr/local/nagios/etc/objects/commands.cfg
chown nagios:nagios /usr/local/nagios/etc/objects/contacts.cfg
chown nagios:nagios /usr/local/nagios/etc/objects/timeperiods.cfg
chown nagios:nagios /usr/local/nagios/etc/objects/localhost.cfg
chown nagios:nagios /usr/local/nagios/etc/objects/windows.cfg
chown nagios:nagios /usr/local/nagios/etc/objects/printer.cfg
chown nagios:nagios /usr/local/nagios/etc/objects/switch.cfg

Modify permissions

chmod 664 /usr/local/nagios/etc/nagios.cfg
chmod 664 /usr/local/nagios/etc/cgi.cfg
chmod 660 /usr/local/nagios/etc/resource.cfg
chmod 664 /usr/local/nagios/etc/objects/templates.cfg
chmod 664 /usr/local/nagios/etc/objects/commands.cfg
chmod 664 /usr/local/nagios/etc/objects/contacts.cfg
chmod 664 /usr/local/nagios/etc/objects/timeperiods.cfg
chmod 664 /usr/local/nagios/etc/objects/localhost.cfg
chmod 664 /usr/local/nagios/etc/objects/windows.cfg
chmod 664 /usr/local/nagios/etc/objects/printer.cfg
chmod 664 /usr/local/nagios/etc/objects/switch.cfg

HTH

/S


#3

Thanks I did copy the existing samples but receated the missing ones and got their content off the internet, I still have a number of issues which I am currently working through
Regards Dave