Page 1 of 1

Installation

Posted: Mon Feb 24, 2014 11:42 am
by Khmerlinux
Hello,

I am very new to linux and nagios and want to learn more and implementation Nagios for a small network in my company. I have installed CentOS 6.5 and install Nagois4.0.2 everything went well doing the installation but I got stuck with the following error. I hope someone could help me.

I login as root and following the document on How-to-install-nagios-on centOS. I performed the following:

make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf

cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers

it returned with cp: target "/usr/local/nagios/libexec/eventhandlers" is not a directory.

Thank you.

Khmerlinux

Re: Installation

Posted: Mon Feb 24, 2014 11:52 am
by abrist
Lets check to make sure the eventhandlers directory exists:

Code: Select all

cd <nagios source dir>
ls -la contrib
ls -la /usr/local/nagios/libexec

Re: Installation

Posted: Mon Feb 24, 2014 12:00 pm
by Khmerlinux
This is what I got

ls -la contrib
ls: cannot access contrib: No such file or directory.

Re: Installation

Posted: Mon Feb 24, 2014 12:07 pm
by tmcdonald
Did you in fact run that command in the nagios source directory?

Re: Installation

Posted: Mon Feb 24, 2014 12:13 pm
by Khmerlinux
Yes I did. I try browse to \usr\local\nagios and I didn't see the contrib folder. Is the correct directory to nagios folder?

Thanks

Re: Installation

Posted: Mon Feb 24, 2014 12:17 pm
by abrist
No. We want the listing from the source directory you compiled and installed nagios from.

Re: Installation

Posted: Mon Feb 24, 2014 12:23 pm
by Khmerlinux
OK. I found it. It is in root/downloads/nagios-4.0.3rc1/contrib. I opened the contrib folder and I I found eventhandlers.

Thanks